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
gefragt vor 4 Monaten107 Aufrufe
Keine Antworten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen