Hi All,
I have below issue when in the virtual responder step after a proper response is returned by REST step.
Problem statement : Rest step triggers request to Live application.Live applicaion responds with a response.This response is then passed to virtual responder and then finally posted to Listener.
Issue : Proper response is retuerned by Live application.But when Virtual responder is returning the the response, there is some error.
Error description :
============================================================================
| java.lang.ArrayIndexOutOfBoundsException
============================================================================
| Step: Virtual HTTPS Responder - Live
----------------------------------------------------------------------------
| Trapped Exception: null
| Trapped Message: java.lang.ArrayIndexOutOfBoundsException
----------------------------------------------------------------------------
STACK TRACE
java.lang.ArrayIndexOutOfBoundsException
============================================================================
The JSR code fragment above is Beanshell not Javascript so please check that.
It is possible I injected a typo. But, I have seen Microsoft quotes (which are not the same hex characters as ASCII quotes) throw exceptions. And, I have seen misleading exceptions caused by errors elsewhere in the script. I doubt that getStateString(<String>, <String>) is an issue, but you can also try testExec.getStateValue("<thePropertyName>").
A JSR step can return pretty much anything including return true -- so changing to return true is also an option.
The Java Script Step that is after the VS Image Selection step did not set any objects in the lisa_vse_response response property did it?