Forum Discussion

johnchang7474's avatar
15 years ago

DataSource property value not working with teststep

I am using a licensed SoapUI Pro right now. If I run my test case with soapUI tool, it works but if I use Java-based eclipse, it doesn't work.
I created a datasource test step with one property value. Then another test request will get this property value for its request using ${dataSource#testValue} within a field on the request. If I click Raw data with soapUI tool, I can see the test value displaying properly and its execution is done correctly. However if I run the same test case with my Java-based eclipse using SoapUIProTestCaseRunner API, the field is blank on the log request.

SoapUI Pro tool on XML tab: <act:SIM>${DataSource#SIMValue}</act:SIM>
SoapUI Pro tool on Raw tab: <act:SIM>89302720400990879947</act:SIM>

but

If I run this with Java-based eclipse using SoapUITestCaseRunner, the log request displays as below.

<act:SIM></act:SIM>

The soapUI Java API used are SoapUITestCaseRunner, WsdlTestCaseRunner, WsdlTestSuite, WsdlTestCase, WsdlTestStep, WsdlTestRequestStepResult, WsdlDataSourceTestStep.

Please let me know asap if you figure this out.

Thanks,

John

2 Replies

  • I could not find that and all things related to datasource is not enabled. For example add test step datasource is not in the menu.

    Where did you configure the license file?

    Are the Pro features even supported in Eclipse?
  • Hi!

    the pro features are not available in the eclipse plugin, but here it seems you are trying to run the tests from Java via the SoapUITestCaseRunner class, which won't work since you will need to use the SoapUIProTestCaseRunner (in the soapUI Pro jar) for enabling pro-related teststeps.

    Hope this helps,

    regards,

    /Ole
    eviware.com