Forum Discussion

thinker's avatar
thinker
Occasional Contributor
9 years ago
Solved

[Ready! API 1.3.1]DataSource file path works in UI, failed from java runner with project properties

Hi Team,   I am using SoapUI Pro, Ready! API 1.3.1.   Currently I want to pass the file path from jUnit to SoapUI project properties and use that value in DataSource input file path.   JAVA:  ...
  • thinker's avatar
    thinker
    9 years ago

    I figured it out.

     

    Since datasource is pro-related function. SoapUIProTestCaseRunner should be used. That is why the testcase is working in SoapUI, but failed when it is called from jUnit.

     

    import com.eviware.soapui.tools.SoapUITestCaseRunner;

    -->

    import com.eviware.soapui.SoapUIProTestCaseRunner;