Writing to the Report

Purpose

You can write to individual columns, create columns, and add data to the report.

Usage

Writing to and Creating a Column

Use Tester.PushReportAttribute or Tester.SetReportAttribute to set values in specific rows. Tester.PopReportAttribute reverses the effect of Tester.PushReportAttribute:

PushReportAttribute

Tester.PushReportAttribute("columnName", "value");

// ...some test steps...       //the rows corresponding to these steps will have
                               //value in their columnName column

Tester.PushReportAttribute("columnName", "value2");

// ...some test steps...       //the rows corresponding to these steps will have
                               //value2 in their columnName column

Tester.PopReportAttribute("columnName"); //test steps proceeding this will be back to value

If columnName does not exist, it will be added to the report.

SetReportAttribute

Tester.SetReportAttribute("columnName", "value");

If columnName does not exist, it will be added to the report.  Column columnName will be populated with value for rows created after this function call (unless specified otherwise).

Adding Data

Data must be associated with an Assert row or a Message row.

Tester.Assert("description", "expression", "data", "columnValuePairs");
Tester.Message("description", "data", "columnValuePairs");

Example of data array:

[
    new SeSReportText("text"),
    new SeSReportLink("urlString", "linkText"),
    new SeSReportImage("ImageWrapperObject", "imageDescription")
]

See Also