AnsweredAssumed Answered

Need help Scripted Assertion in JavaScript

Question asked by Ram2010mech on May 2, 2017
Latest reply on May 2, 2017 by Ulrich_Vogt

Hi All,

 

I am need to DevTest , am working in a project which need service testing ,we are trying to do with the help of DevTest. In which i need to compare the response with multipe match criteria to perform the next specific operation based on the response. to achive that i need to write Javascript. 

Script given below

if(testExec.getStateValue("ResponseValue1").equals(testExec.getStateValue("Expected_Result1")))
{
Return True;
}
else
{
Return False;

this is a sample here getting syntax error in the return statement. 

 

Kindly help on this.

Outcomes