How can my addon set result message in the Step?

  • 2 Replies
  • 540 Views
How can my addon set result message in the Step?
« on: July 30, 2018, 10:37:01 am »
Hello again!
 
I developed some addon and I see that there is place to write result massage from the addon:
http://prntscr.com/kcohg2

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

Thanks.
« Last Edit: August 07, 2018, 17:02:21 pm by Marat Strelets »

*

Gil

  • *
  • 3
Re: How can my addon set result massage in the step?
« Reply #1 on: July 30, 2018, 13:48:34 pm »
Hello,

At first you should get report object using:
Code
// Get report object
ActionReporter report = helper.getReporter();


Then, to add message to the step, you can write the following:
Code
    report.result("Write here another custom message");        
   

After then you should always return ExecutionResult


Example:

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

« Last Edit: July 30, 2018, 14:35:50 pm by Marat Strelets »

Re: How can my addon set result massage in the step?
« Reply #2 on: August 01, 2018, 17:54:08 pm »
Locked due to inactivity.

 

Sitemap 1 2 3 4 5 6 7 8