Forum Discussion

anbeek's avatar
anbeek
Occasional Contributor
13 years ago

Detect where tests are run from

Hi

In my tests I use startup scripts, both at test suite level and test case level.
We are now trying to automate regression tests via Maven.
When running tests from soapUI I show a java window, letting the tester choose test environment.
When running from maven i dont want this window to show (nigthly regression tests).
How can I in my setup script detect if the test(suite) is started from outside soapUI?

1 Reply

  • anbeek's avatar
    anbeek
    Occasional Contributor
    As usual, 5 mins after I posted this I found the answer:
    if( com.eviware.soapui.SoapUI.isCommandLine() )
    {
    log.info "This code is executed by Command Line soapUI"
    }

    Sorry to bother you.

    Regards
    /Anders