AnsweredAssumed Answered

LISA property not Empty on sending no xml tag value for Xpath filter

Question asked by Ankush_Panday on Dec 15, 2014
Latest reply on Dec 16, 2014 by Ankush_Panday

Hi Everyone,


I am currently facing an issue with LISA property value, which is empty in ITR. But when writing a Java code for the same property (if condition set as "is empty") not working, but on  the other hand when changing it to (if condition set as "is not empty"), which explains that property is not empty. Also couldn't able to get the length of the property value using object.length() / object.length.


Below is the code used to get the length of the property value, though it is working for hard-coded values but not for testExec class.


Approach 1: Hard coded value - working fine

String Test;

Test = "asdasfs";


testExec.setStateValue("flNote28", Test.length());


Approach 2: Using testExec.getStateObject("Property") - Not working


str_Count = (String)testExec.getStateValue("flNote");

testExec.setStateValue("flNote28", str_Count .length());


Please let me know if there is any other way to get the length of the LISA property.