Skip to main content

GenerateReport

Description

Use this command to generates a report of the tests which have been running by the client.

This command also releases the connection between the client and the controller (connection with the device)

info

This command requires setReporter to be executed first. For more information see

Parameters

NameValueDescription
Release ClientbooleanIf set to true, the command eventually calls releasClient.



If set to false, a report is generated, but the client will not be released.
info

Note: The older overloaded version of this command (without parameters) is equivalent to generateReport(*true*).

Return Value

Returns the path of the report.

Usage

This should be a part of teardown function of the test. 

info

Replace <server> with the appropriate URL.

Example

GenerateReport

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

...
...
}


public void teardown() {
Boolean reportReleaseClient = true;
if (reportReleaseClient)
// Generates and Releases the client.
seetest.generateReport(true);
} else {
// Generates and does not Release the client.
seetest.generateReport(false);
// Releasing specifically.
driver.quit();
}
}