Test Case Data Dynamic Loading

We can use BAW services to integrate with external applications and load dynamic test data (for example unique ids generated from external systems), then use the loaded data as input parameters of the test case. An example is given below.


Create a dynamic test data loading toolkit and add service to fetch data from external systems

  1. Create a common tookit for loading any dynamic test data

  2. Implement a service flow that can fetch the dynamic test data and save the data in output variable

Update the process application to include the dynamic test data loading toolkit

  1. Add dependency to the test data loading toolkit

  2. Suppose the process application has a process with input variable as follows:

Write the test case with dynamic test data input

  1. Write a test cases with below test steps in sequence.

  2. The first test step will start service flow in toolkit and save the output data into test case context with variable name output. You can use JSON Path to select the output data.

  3. The third test step launches process and uses the output data from previous step as input parameter’s value.

  4. The process will be launched with correct dynamic test data.

Categories:

Updated: