Slowness issue: AWS Device Farm Desktop Testing

0

Hello,

I have configured and testing AWS Device Farm Desktop testing. I found Selenium actions(like getText(), findElementBy(By.ID), etc all simple operations are taking longer time (avg: 120 ms) to complete. My expectation is ~25-35ms for simple actions. I am using t3 large Windows EC2 instance (in US-West_2 Oregon region) for running selenium client (Java) to connect to AWS Device Farm browser testing.

Note: I am testing a very simple single test script with simple web page just to test the time taken for each selenium command, I am not using parallel execution as well.

Actual Issue: Selenium scripts are taking long (Avg: 135 ms / action) to run

Expected: Simple interactions like getText(), getEementBy(By.ID) should may take ~25 ms

Note: I have tested same script (with same scenario and same web page) in other remote provider and I am able to get faster response as compared with AWS Device Farm Desktop.

My Configs: Client system: EC2-t3 Large Windows-US_WEST_2_Oregon Region Selenium Java version: 4.16.1 Programming lang: Java Browser: Chrome Browser Version: latest

Desired Capabilities: DesiredCapabilities capabilities = new DesiredCapabilities(); capabilities.setCapability("browserName", "chrome"); capabilities.setCapability("browserVersion", "latest");

        final ChromeOptions options = new ChromeOptions();
        options.addArguments("--start-maximized");
        options.addArguments("--window-size=1920x1080");
        options.addArguments("--remote-debugging-pipe");
        options.addArguments("--disable-extensions");
     
        options.addArguments("--disable-logging");
        options.addArguments("--disable-network-throttling");         
        capabilities.merge(options);
	    driver = new RemoteWebDriver(testGridUrl, capabilities);

Note: I have tried multiple combinations in desired capabilities to reduce performance issue but couldn't.

Please suggest if there is any missing config or other ways.

Also, Is there a way to disable video recording / logs at AWS Device Farm side , may be that can help in improving performance?

Please suggest. Thanks!

Fahad
asked 3 months ago98 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions