cancel
Showing results for 
Search instead for 
Did you mean: 

PropertyTransfersTestStep.PropertyTransferResult Java API - How to Get transferred Value?

SOLVED
marketguard
Occasional Contributor

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? 

1 ACCEPTED SOLUTION

Accepted Solutions
marketguard
Occasional Contributor

Re: PropertyTransfersTestStep.PropertyTransferResult Java API - How to Get transferred Value?

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. 

View solution in original post

1 REPLY 1
marketguard
Occasional Contributor

Re: PropertyTransfersTestStep.PropertyTransferResult Java API - How to Get transferred Value?

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. 

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors