Check HTTP Response Code assetion in DevTest is not behaving correctly


Article ID: 102707


Updated On:


CA Application Test Service Virtualization CA Continuous Application Insight (PathFinder)


Setting a value {{result=fail}} in  Log text Field  of " HTTP Response Code Assertion" to PASS or FAIL a test   does not work as expected.


Setting the properties via log text fields is not a reliable way, since it might work in few cases and will not in other cases. Due to this inconsistent behavior we recommend users to always use Javascript step to set and evaluate Lisa properties so that the bean shell script can properly evaluate the code with in the {{ }}.


All DevTest Supported Environments 


Settling properties in Log text field in the assertion  is not recommended and not a good practice to do. 
As per our documentation, the property needs to be set by using a Java Script step in order for the beanshell script to evaluate the property values correctly.

Here are few useful links :
Property expression :
Using beanshell in Devtest :
Scripted Assertion :


Additional Information

In the future release we will be making the "CheckHTTPResponseCode" logging to look similar to  to the assertion "Ensure property" with the  comparison of expected response vs actual response.