Forum Discussion

samirc23's avatar
samirc23
Contributor
8 years ago

update xpath assertion in ready api

Hi,

 

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 ?

 

Many Thanks,

Sam

3 Replies

    • samirc23's avatar
      samirc23
      Contributor

      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 ? 

      • nmrao's avatar
        nmrao
        Champion Level 3
        Do 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.