AnsweredAssumed Answered

testExec.getStateValue is coming blank

Question asked by Sabzwari on Mar 10, 2016
Latest reply on Mar 10, 2016 by Josh_Hendrick

I am trying to create a simple java script which will read the value and will change it. For some reason when I am reading the filtered property "select_device_type" its coming as blank or null. Due to this the script always returns android (from else condition) This  property (filter) is captured in the previous Jason to XML step and I am able to log and validate it via ITR or manually running it.  

Script:

String value;

if (testExec.getStateValue("select_device_type") == "android")

    {

       value = "ios";

    }

else {

        value = "android";

    }

return value;

 

Any suggestions will be greatly prevaricated. LISA workstation 7.0.3

~Umair.

Outcomes