Forum Discussion

kamahade's avatar
kamahade
Regular Contributor
14 years ago

usuage of commandline option -P

Hello there,

How one should use commandline option -P. ? I read http://www.soapui.org/Test-Automation/functional-tests.html.
it says

G : Sets global property with name=value
P : Sets project property with name=value


Does it means, if I want to set a project level property(like jdbcname) I should use it Or if I have a testcase level property ( if property name is unique) , I could set with that option ?

How one should use this option -P, if I want to set more than one option. Should I use , or ; to distinguish

/C testrunner.bat -swebtestsuite -cwebtestcase -Piid=12345,endpoint="Myvalue",anotherproperty="anothervalue" ?
  • kamahade's avatar
    kamahade
    Regular Contributor
    I just learned that I should supply -P for every property that I set !

    Thu Sep 29 13:11:41 BST 2011:INFO:command: cmd.exe /C testrunner.bat -swebtestsuite -cwebtestcase -Pendpoint=Value1 -Piid=value2 C:\soapui-project-files\PMAPI-WEB-soapui-project.xml
  • kamahade wrote:
    I just learned that I should supply -P for every property that I set !

    Thu Sep 29 13:11:41 BST 2011:INFO:command: cmd.exe /C testrunner.bat -swebtestsuite -cwebtestcase -Pendpoint=Value1 -Piid=value2 C:\soapui-project-files\PMAPI-WEB-soapui-project.xml

    Glad you figured out! It's definitely not well explained by us, I'll update the documentation with some examples right away.

    Thanks

    Henrik
    SmartBear Software