TestProject Forum
Powered by leading experts in the test automation community

How can my addon set result message in the Step?

Hello again!

I developed some addon and I see that there is place to write result massage from the addon:

But I did not found in the docs how to do this…

Thanks.

Hello,

At first you should get report object using:

// Get report object ActionReporter report = helper.getReporter();

Then, to add message to the step, you can write the following:

    report.result("Write here another custom message");        

After then you should always return ExecutionResult

Example:

if (target == actual) { // report.result("Write here your custom message"); return ExecutionResult.PASSED; } else { report.result("Write here another custom message"); return ExecutionResult.FAILED; }

Locked due to inactivity.