Forum Discussion

Liberty_Informa's avatar
Liberty_Informa
Regular Contributor
13 years ago

Command line parameters reading

Hi Ole

Is it possible to read command line parameters in the soapUI project's load script?

We use web interface on top of automated scripts. On the web page, user can select 'target environment' and 'soapUI project' to run. We pass in these selections as command line project properties as they are project properties in the soapUI projects. However within soapUI project based on that selection I need to take certain decisions like what test data files should I read. For that purpose, I want to know what has passed in through command line parameters.

Can you suggest how should we deal with this?

1 Reply

  • Hi!

    Well, it's hard to know if a project property has been initialized from the command line or from somewhere else.
    Maybe you could use different properties for command line arguments? Then you'll know that these properties must've been set on the command line.

    --
    Regards

    Erik
    SmartBear Sweden