Forum Discussion

wula007's avatar
wula007
Occasional Contributor
9 years ago

project.getPropertyValue does not work when pass property from command line

Hi

 

When I upgrade my readtyAPI from 1.3.1 to 1.4.1, project.getPropertyValue() does not work  in my script.

 

I passed two propertie (errorFolder and debug) from command line. for example:

 

cmd /c call "D:\Program Files\SmartBear\ReadyAPI-1.4.1\bin\testrunner.bat" -sAdvisorGridTestSuite -r  -EAdvisorSTG  -a  -PerrorFolder=D:\Jenkins_Slave\epjenkins81\workspace -Pdebug=true -R"TestSuite Report" -FHTML -I  AdvisorMobServiceTest-soapui-project

 

In my  afterRun(TestSuiteRunner testRunner,TestSuiteRunContext runContext) method, both value of 

testRunner.testSuite.project.getPropertyValue("errorFolder") and testRunner.testSuite.project.getPropertyValue("debug") are NULL.

why this way can work in 1.3.1? 

Is it the bug of 1.4.1?

2 Replies

  • nmrao's avatar
    nmrao
    Champion Level 3
    Are you sure that 'errorFolder' and 'debug' - project properties exists?
    • wula007's avatar
      wula007
      Occasional Contributor

      Screen Shot 2015-12-01 at 11.54.36 AM.png

       

      you can see the two customer properties I defined in the project properties.