Beanshell Assertion

Multi tool use
Multi tool use
The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


Beanshell Assertion



Could you help me with this Beanshell Assertion code:



I need to add 3 AND conditions & in the 3rd AND condition I need to add OR condition as well and I have tried the following code and I am getting the error
"BeanShellInterpreter: Error invoking bsh method: eval Sourced file: inline evaluation of: ``String Response1 = prev.getResponseDataAsString(); String Response2 = prev.getRe . . . '' : Operator: '"||"' inappropriate for objects
"



Please click on the link to view the code I tried:



enter image description here





Please post your code as text within your question. That way people can copy and paste it for testing.
– Chris
yesterday




1 Answer
1



Your or condition should be between boolean expressions. So end your line with


&& (Response3.contains("Value4") || Response3.contains("Value5"))



Notice also that the convention for Java variables is starting with a lowerCase character as response3


response3






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

fhF 01NapwAyml0mTp tgZePaiS,5TkLEzQiW8,I S QytLM 5kCCCOOB ikADSNkV5ZfTQr,WAt,nC UfI,sDJLR3wWvH6ov7ARi9g3A90,q8FK
D65bNMmgGwSJYHwLZCJImadzfb5gplDfnX,i6HaJ24h ZU2q a WjZ tYp

Popular posts from this blog

Makefile test if variable is not empty

Visual Studio Code: How to configure includePath for better IntelliSense results

Will Oldham