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
Name | Value | Description |
---|---|---|
Release Client | boolean | If 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.
- Public Continuous Testing Cloud - https://cloud.seetest.io/wd/hub/.
- Dedicated Continuous Testing Cloud environment - Your own domain. For example: https://company.experitest.com/wd/hub/
- On-premises Continuous Testing Cloud environment - Your designated URL. For example: https://company.com/wd/hub
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();
}
}