Forum Discussion

Scripter's avatar
Scripter
Occasional Contributor
10 years ago

Passing testcase property from command line

Hi All,

 

I am running soap ui via command line and trying to set the testcase property . Doesnt work using -P, since it sets project property and not testcase property.

  • P : Sets project property with name=value, e.g. -Pendpoint=Value1 -PsomeOtherProperty=value2

but I need to set the testcase property. Is it possible?

 

 The sample excerpt is as below:

 

export SOAPUIProject=/home/SoapUi/project.xml


./testrunner.sh $SOAPUIProject -s"Database TestSuite" -cTableUpdate -PChosenDB=$database

 

Where $database is the dynamic variable I  intent to pass to testcase.

  • nmrao's avatar
    nmrao
    Champion Level 3
    You can't pass it like that. No soapui documentation saying one can achieve that. If you want to pass it from command line, then why do you consider it as project property?