Forum Discussion

Raju_Vusirikala's avatar
Raju_Vusirikala
Contributor
16 years ago

Mising property exception - SOAPUI Maven plug-in in maven build

Hi,

We are currently using SOAPUI-pro 2.5.1 and have multiple test suites, and for all test case executions, inputs are setting from property files by loading through java libraries during execution time on SOAPUI tool.

Now i am trying to include my existing SOAPUI automation tests into maven build life cycle using SOAPUI maven plug-in without installing SOAPUI tool.

I placed all the requried steps for SOAPUI maven plug-in in pom.xml, but during execution of testcases using "mvn eviware:maven-soapui-plugin:test" command it was giving me  Missing property exeception. Please help me how to give reference to maven for all my project external resources like test data property files, excel test data doc’s, Groovy files, XML schemas and etc to execute test cases.

Thanks
Raju

2 Replies

  • Hi Raju,

    I'm sorry for the delayed response; maybe you can set the "Resource Root" property on the project (bottom left properties) to specify which folder to use as root for all specified resource files? If you for example set this to ${projectDir} then all resources will be referenced relative to the project folder, so if you have a properties file in that folder, the path to it should be just the name of the file..

    does that help?

    regards!

    /Ole
    eviware.com
  • Hi Ole,

    Thanks for your response, When i save my project as Non-Composite, that project file have this root value as ${projectDir}\tests, and this is the project file i copied into other system which doen't have SOPAUI tool installation, and referencing in maven plug-in, but still i am getting missing property exception while executing maven build using command "mvn eviware:maven-soapui-plugin:test". Please let me know if i am mising anything.

    Also we have one global property file for common for all test cases and this file has been reference to soapui-pro.bat(Which is in SOAPUI installation directory) as below
    -Dsoapui.properties=”%SoapUITests_Home%\properties\CCAPI-SoapUI.properties”, but now we don't have SOAPUI installation,  does ${projectDir}\tests picks this file automatically (Or) do i need to refer this separately.(if yes, please let me know how to refer this)

    Thanks,
    Gopi