Bulk Replacing Component Test Data in Multiple Flows
The Replace Test Data feature allows to replace/edit value of one or more elements of a component in multiple flows, at once. If the component is used in multiple flows, select all or specific flows in which the test data needs to be changed for the component. This feature allows an easy way to change an existing test data value in several flows to a new value to reflect change in test data setup.
- Access the option to replace component test data. Navigate to the Component menu and right-click the component whose test data needs to be edited/replaced. Click Find Component Usage.
- In the Find Component Usage interface, select the flows under which the component test data needs to be replaced. Select the checkbox next to the flow name(s) and click Replace Test Data.
- Click Add Row to add a row to choose the element of the component whose specified existing test data value needs to be replaced with a new value. To replace the test data of multiple elements of the component, add multiple rows that specify the xpath of the element whose test data value needs to be replaced.
- Set an existing element value to blank or enter test data for component element whose current test data value does not exist. Use #EMPTY as the value in appropriate field (Existing Value/New Value).
- Specify a particular occurrence of an element in a group element. Indicate the index of the element in the group. To replace the zip code of second address group element, specify similar to /user/address[2]/zipCode and specify the Existing Value and New Value.
- Use wildcard "%" in the Existing Value field to indicate replacing of any existing value that matches the pattern. Example: To replace a field value that contain anything that starts with a “Building” to “Apartment 123” specify the Existing Value as “Building%” and New Value as “Apartment 123”.