update xpath assertion in ready api
we have 100+ test cases and in most of the test cases we have xpath assertion, but now due to requirement change we need to update all the xpath assertion.
so i was wondering that is there anyway we can update any assertion file/something that will change xpath assertion response ?
OR do i need to update in each test cases ?
Please see script provided in Message #11 of the below thread for similar case
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 ?
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.