Skip to main content

Tests execution time is too long

When running mobile tests using the Continuous Testing Cloud platform, screenshots are taken after each command which results in a longer duration of test runs.

If you want to skip the report creation which actually is the reason for screenshot capture, you can set the relevant capability to disable the report.

This is done by setting generateReport capability as disable, see below.

info

Replace <server> with the appropriate URL.

Code Example

DesiredCapabilities dc = new DesiredCapabilities();
dc.setCapability("deviceQuery", "@os='android');
dc.setCapability("projectName", "cloudProject");
dc.setCapability("accessKey", accessKey);
dc.setCapability(AndroidMobileCapabilityType.APP_PACKAGE, "com.experitest.ExperiBank");
dc.setCapability(AndroidMobileCapabilityType.APP_ACTIVITY, ".LoginActivity");


//Add this capability in order to disable reports & get faster execution times
dc.setCapability("generateReport", false);
AndroidDriver driver = new AndroidDriver(new URL("<server>"), dc);