Sanyam Thukral
Sanyam Thukral

Reputation: 1

Update the Suite Name at RunTime

Is there any workaround to set the SuiteName at the time of test execution, same as we can achieve for Test Name using ITest Interface.

Upvotes: 0

Views: 128

Answers (1)

Prakash Saravanan
Prakash Saravanan

Reputation: 656

This works perhaps. I have not tested it yet.

Reporter.getCurrentTestResult().getTestClass().getXmlClass().setName("NewName");

Upvotes: 1

Related Questions