Forum Discussion

mchelikani's avatar
mchelikani
Contributor
12 years ago

How to Modify Project Properties in Event Handlers

Hello,
I need to modify the project properties in projectRunListener.beforeRun event handler. I tried the below and it complains that testRunner is not defined. Please help.


testRunner.testCase.testSuite.project.setPropertyValue("resultsPath","XXXXXX")

-Madhu.
  • Hi,

    testRunner is defined in the event handler TestRunListener.beforeRun, etc.


    Regards,
    Marcus
    SmartBear Support
  • How do I Modify the Project Property in projectRunListener.beforeRun event handler.

    How to get Handle for Project Properties in projectRunListener.beforeRun.
  • Hi,

    Try projectRunner.project.setPropertyValue("resultsPath","XXXXXX").


    Regards,
    Marcus
    SmartBear Support