Forum Discussion

IDT_vcarluccio's avatar
IDT_vcarluccio
Occasional Contributor
8 years ago
Solved

Setting/using properties in the cmd

I have properties set in my Testcases, I am trying to automate my test at work so two of these properties now need to be set using the cmd properties. I have origianly set these properties via the TestSuite so I can use them in multiple TestCases. for instance:

 

testRunner.testCase.testSuite.addProperty('analysisId')

testRunner.testCase.testSuite.setPropertyValue('analysisId','"Testing_01_11_17_05"').

 

i think later use the property using this line:

"analysisId": ${#TestSuite#analysisId}, 

in a put json payload.

 

I have tried using this cmd command as follows and it is not working:

"testRunner.bat" "project" -PanalysisId='"Testing_01_11_17_05"'

 

It seems that the property is not being saved. 

 

Thanks for your help