by  inflectra.adam Saturday, August 22, 2015
By default, the reports displayed within Rapise report back each test activity and assert statement as a line in the report with all of the activities and events being displayed in a single flat list regardless of whether they happen inside the main Test() function or a sub-function. This articles explains how you can extend the reporting.
For example in our main script, we have these 3 test cases:

function Test()
{
  Scenario1()
  Scenario2()
  Scenario3()
}

Now, what we want to do is have a hierarchical report:
  • The report we want should be high level details first i.e
    • TestName Results
      • Scenario1 PASS
      • Scenario2 PASS
      • Scenario3 FAIL
  • Then upon click on the + sign, all the low level details (such as steps, images) are present.

An example of how to extend the reporting is provided with Rapise called "Using Reporting", if you go to the Start Page in Rapise and click on the "Browse Samples"
then you will see a fully created example with embedded comments that explains how to do this.

In this example, it generates a hierarchical multi-level report with custom columns using:

        Tester.BeginTest("Nested Test");
        ...
        Tester.EndTest();


This sample also demonstrates how to use a:

  Tester.IgnoreStatus(true);
  ...
  Tester.IgnoreStatus(false);

block that forces Rapise to ignore failures within some sequence of actions.

Together these allow you to have much more control over the reporting, and have the report include/exclude certain elements as well as display the data in a hierarchical manner.



Attachments

Selected files will be attached to any email sent on saving ticket.

file selected files selected  () Delete Selected

  • Created:
  • by:

Select files to upload

Or drag and drop files here

Uploading …
Done!
Upload More?
There was an error.
Try again?

Save to upload the selected file(s)

Article Info
  • Last Updated: 8/22/2015
  • Article ID: KB168
  • Views: 927