Forum Discussion
nmrao
8 years agoChampion Level 3
If there is some pattern to find the value to be replaced, then it is possible to update using groovy script.
Please see script provided in Message #11 of the below thread for similar case
https://community.smartbear.com/t5/SoapUI-Open-Source/Updating-SLA-time-assertion-for-all-the-test-cases-in-a-project/m-p/122674/highlight/true#M21138
Please see script provided in Message #11 of the below thread for similar case
https://community.smartbear.com/t5/SoapUI-Open-Source/Updating-SLA-time-assertion-for-all-the-test-cases-in-a-project/m-p/122674/highlight/true#M21138
- samirc238 years agoContributor
thanks for the prompt reply, but if out of 100 xpath assertion, 20 assertion is having different patter and remaining different pattern ?
do i have to mention that which test cases needs to updated or it just update all the test cases which contains xpath assertion ?
- nmrao8 years agoChampion Level 3Do you mean the below?
20 test steps have one xpath (all have same xpath)
80 test steps have another xpath
Then you can update the xpath conditionally say if current step name is in list1 update xpath1. Similarly if current step name is in list2, then update xpath2.
Hope this helps.
Related Content
Recent Discussions
- 4 days agominhng