Forum Discussion

sergeykh's avatar
sergeykh
Occasional Contributor
6 years ago
Solved

can I know in the project load Script if the soapUI project executed from from command line

I would like to control the flow in project load script and do something only if its executed from the command line. Is there anything on the Project varible that I have in this context that can in...
  • nmrao's avatar
    nmrao
    6 years ago

    sergeykh 

    I mean system arugument such as "-Dkey=value"

     

    testrunner.bas <options to execute the project> -DIS_INVOKED_COMMANDLINE=true

     

    In Load script

     

    if ('true' == System.getProperty('IS_INVOKED_COMMANDLINE')) {
    //You business logic here
    }