Forum Discussion
I use this
def props = testRunner.testCase.testSteps["myprops"] String[] props = new String[props.getPropertyCount()] aprops = props.getPropertyNames(); for (int i=0;i<aprops.size();i++) { props.setPropertyValue(aprops[i],"") }
Above the script also not working
def props = testRunner.testCase.testSteps["SProperty"]//(My property name)
String[] props = new String[props.getPropertyCount()]
aprops = props.getPropertyNames();
for (int i=0;i<aprops.size();i++)
{
props.setPropertyValue(aprops[i],"")
}
correct me if u have any new update for this
- nmrao8 years agoChampion Level 3Are you in need of such script? If yes, not sure why it is repeated? Please clarify exact problem that are facing.
- Sandyapitester8 years agoFrequent Contributor
Problem is am passing the below script in testcase teardown script
def props = testRunner.testCase.testSteps["StreamingProperty"]
String[] props = new String[props.getPropertyCount()]
aprops = props.getPropertyNames();for (int i=0;i<aprops.size();i++)
{
props.setPropertyValue(aprops[i],"")
}once the test execution is completed still exist the existing property transfer value.
Plz correct me if am wrong any where
- Sandyapitester8 years agoFrequent Contributor
Him Any update for this issue
Related Content
- 2 years agoKellyWiegand
- 8 years agozsousa
- 9 years agoJustinM89