Forum Discussion

sergeykh's avatar
sergeykh
Occasional Contributor
7 years ago

Project Load Script executed before the command line arguments are used.

Hi I`m using the option to execute the soapUI project from command line and using the P argument to pass project level properites.   <Quote> P : Specifies a value of a project property for the te...
  • JHunt's avatar
    7 years ago

    Seems you could do some creative workaround, such as:

     

    test.bat

    echo ENV123 > C:\env_name.txt
    testrunner "myproject.xml"

    Project Load Script:

    project.setPropertyValue( "ENV_NAME", new file("C:/env_name.txt").text )
    assert project.getPropertyValue("ENV_NAME") = "ENV123"

     

    I could have some typo since I haven't run this, but just to give you an idea...