Eran Cohanim - 2017-06-29

Hi,

I am trying to update parameters of runner test (Notification Event (PublishTest) )

i've added notification event to my scenario and i want to change the value of version and build parameters in that event. in the end this notification event is sending email with build=null and version=null (see below email output)

This is automatically email that was sent by the JSystem Scenario Name : default Setup Name : functional.xml Version : null Build : null Station : 1.1.1.1 User Name : Eran Start Time : 6/29/17 3:22 PM

Run Tests : 1
Failed Tests : 0
Warning Tests : 0

This scenario wasn't published to the reports system

i tried the below code but with no success

int maxTestIndex = ScenariosManager.getInstance().getCurrentScenario().getMaxTestIndex();
RunnerTest rt = ScenariosManager.getInstance().getCurrentScenario().getTest(maxTestIndex);

Properties properties = rt.getProperties();
properties.setProperty(XmlReporter.VERSION, bigIqManager.getArbitraryBigIQ().getVersion());
rt.setProperties(properties);

Parameter parameter = new Parameter();
parameter.setName(XmlReporter.VERSION);
parameter.setValue(bigIqManager.getArbitraryBigIQ().getVersion());
rt.setParameterIfExists(parameter);

any idea how to get it working?