Skip to main content

SetReporter

Description

Use this command to set the reporter for a test case. This is generally called at the beginning of each test case, and its configuration will define the report that will be generated at the end of the test.

Use this command with GenerateReport to generate the report.

Parameters

Report TypeStringFormat of the generated report. Optional formats are "XML" or "pdf".
Report PathStringPath where the report and all its content will be stored. The default path in Windows is C:\Users\<User name>\seetest-reports\ folder.



Note: This parameter is ignored currently and the report is notgenerated in the local path.



The generated path of the report is returned by GenerateReport.
Report NameStringName of the report in the Report summary page.

Example

info

Replace <server> with the appropriate URL.

SetReporter

DesiredCapabilities dc = new DesiredCapabilities();
driver = new AndroidDriver(new URL("<server>"), dc);
seetest = new SeeTestClient(driver);
seetest.setReporter("pdf", "" , "<ReportName>");
dc.setCapability(MobileCapabilityType.UDID, "<deviceid>");

...
...
seetest.setReporter("pdf", "C://NEWPRJ//SeetestExtenstion//reports" , "Untitled");