marketguard
8 years agoOccasional Contributor
Solved
PropertyTransfersTestStep.PropertyTransferResult Java API - How to Get transferred Value?
<groupId>com.smartbear</groupId>
<artifactId>ready-api-runners</artifactId>
<version>1.7.0</version>
Hi ,
I'm trying to get the transferred Value via the Java API, in a former Version of SoapUI Pro NG it was possible to use:
PropertyTransfersTestStep.PropertyTransferResult.class.getDeclaredField("values")
however in newer versions of the api this field is null, altough the proper transfer has been done successfully.
Is there a possibilty to get the transferred value in another way?
I ended up with this:
WsdlProjectPro project = new WsdlProjectPro("PATH_TO_XML");
for (TestProperty projectProperty : project.getPropertyList()){
System.out.println("Key: " +projectProperty.getName() + " Value: "+project.getPropertyValue(projectProperty.getName()));
}Works also fine on, TestSuite, TestCase and TestStep Level.