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 a service to fetch data from external systems

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

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

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

  1. Add a dependency to the test data loading toolkit.

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

Write the test case with dynamic test data input

  1. Write test cases with the following test steps in sequence.

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

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

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

Categories:

Updated: