Hi Rajeswari,
1- There is a type mismatch inyour script:
if(testExec.getStateValue("lisa.getWarrantyeligibility.http.responseCode").equals("4/d/d") || (testExec.getStateValue("lisa.getWarrantyeligibility.http.responseCode").equals("5/d/d")))
(testExec.getStateValue("lisa.getWarrantyeligibility.http.responseCode") is returning the Integer value, but you comparing as String
Solution: Compare them as integer value only.
2- You comparing with "4/d/d" which is a regular expression, response code is 200,400,500 etc are pure integer value, these can not be compared against Regular expression directly.
Solution:
Apply a Java method that compare characters against the regular expression.
Or,
Give constant values like 400,500 etc as expected.
e.x:
if(testExec.getStateValue("lisa.getWarrantyeligibility.http.responseCode") == 400 || (testExec.getStateValue("lisa.getWarrantyeligibility.http.responseCode") == 500)))
Check if it helps.
Thanks,
Dinesh Kumar