Ask a Question

Conditional GOTO : How to check 2 conditions together

Neha3
New Contributor

Conditional GOTO : How to check 2 conditions together

Hi,

 

I'm wondering how can I check the 2 conditions together.

 

For Ex: I want to check if status code of response is 200 && Value of the condition is STOP.

 

In normal IF condition we write :  if(StatusCode == 200 && Condition=="STOP")

 

How can we do that in ReadyAPI ?

 

Thank you.

1 REPLY 1
KarelHusa
Champion Level 2

@Neha3.,

you can use the and operator from XPath.

 

An example could be: 

exists(//ns:TemperatureInFahrenheit) and ${#TestCase#resultCode} = 200

 

Karel@apimate.eu
https://apimate.eu
cancel
Showing results for 
Search instead for 
Did you mean: