Forum Discussion

marketguard's avatar
marketguard
Occasional Contributor
8 years ago
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. 

1 Reply

  • marketguard's avatar
    marketguard
    Occasional Contributor

    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.