Forum Discussion

JimLin's avatar
JimLin
Occasional Contributor
12 years ago

Getting Testrunner/Maven to skip testsuite setup script

Is it possible to get Testrunner/Maven to skip a testsuite setup script?

For my testsuites I have a startup script that brings up a dropdown list to choose which environment to run the tests in (we have 5 different ones). This is intended for running the testsuites manually. Now I'm moving on to initiating these tests with testrunner/Maven, having a manual selection box come up is a pain when doing automated tests and I've temporarily hashed the code out. Is there a way of skipping the setup script?

3 Replies

  • redfish4ktc2's avatar
    redfish4ktc2
    Super Contributor
    out of the box, there is no such an option
    maybe the following workaround could work in your case: the idea is to have a flag set when maven is runned. Your setup script should check if it is set. In this case, log a message (or do whatever you want) and continue without executing any further setup operation
    You could do this with a java system property.

    How do you run soapui as part of your maven build? If you use the plugin, add a soapuiProperties element to your plugin configuration (see https://github.com/redfish4ktc/maven-so ... properties)
  • JimLin's avatar
    JimLin
    Occasional Contributor
    Hi redfish4ktc2,

    Thanks for the suggestion, that works well.

    Cheers,
    James