Forum Discussion

Flonestar's avatar
Flonestar
Visitor
9 years ago

Best way to set a property in SoapUI and read from JUnit?

I have a TestCase from where I want to set a property that should then be extracted via the Java API in a JUnit test case. I followed the page that describes the integration between SoapUI and JUnit (http://www.soapui.org/test-automation/junit/junit-integration.html), but that page only describes how to provide property values to SoapUI.

 

 

1 Reply

  • nmrao's avatar
    nmrao
    Champion Level 3
    Not sure how you are using it in junit.
    But you can very well run the same code from within groovy script of soapui. In the groovy script there are some variables available in the scope or context.
    So, if you can pass that information to junit then you will be able to get over it.