Conditional GOTO : How to check 2 conditions together
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2023
11:46 AM
06-07-2023
11:46 AM
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.
Labels:
- Labels:
-
Function Tests
-
REST
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2023
12:56 AM
06-21-2023
12:56 AM
@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
https://apimate.eu
