I wanted to use the logical operations AD and OR for making decisions. One of my scenarios is using AND operation for Assert operations .
My scenario is I want to check the response text contains 2 pieces of information:
1. Text like “Library”
2. Date value
For this I wold like to write
assert responseData.getResponseText().contains(‘Library- Ask a question’)
assert responseData.getResponseText().contains(‘01/05/2018 2:21 PM’)
But this ends up being an script error. I could NOT find any reference on how to use Logical AND/OR operators.