Opened 8 months ago

Last modified 8 months ago

#7166 new defect

Automated tests no longer just run on Windows

Reported by: Ross Assignee:
Priority: P2 Milestone:
Module: Automation Keywords:
Cc: sebastian, kzar, tlucas, geo Blocked By:
Blocking: Platform: Unknown / Cross platform
Ready: yes Confidential: no
Tester: Unknown Verified working: no
Review URL(s):

Description

Environment

adblockpluschrome / master / 2207:96eda29ae585

How to reproduce

  1. Clone/update repository.
  2. Run ./ensure_dependencies.py (from WSL command prompt)

Method 1:

  1. Run npm install from a Windows command prompt.
  2. Run npm test from a Windows command prompt.

Method 2:

  1. Run npm install from a Windows command prompt.
  2. Run npm test from a WSL command prompt.

Method 3:

  1. Run npm install from a WSL command prompt.
  2. Run npm test from a WSL command prompt.

Observed behaviour

Method 1:
Install the Windows version of webdriver but both Chrome and Gecko driver are not in the PATH env:

Error: The ChromeDriver could not be found on the current PATH
Error: The geckodriver.exe executable could not be found on the current PATH.

Method 2:
Both Chrome and Gecko tests fail at the start with:

Uncaught Error: Server terminated early with status 2
at earlyTermination.catch.e (node_modules/selenium-webdriver/remote/index.js:252:52)

Method 3:
Running npm install from the WSL prompt causes the Linux version of the webdriver binaries to be installed, which obviously don't run:

Uncaught Error: Server terminated early with status 127

Expected behaviour

The automated tests to run successfully. Method 1 and 2 were what I was using previously to run automated tests. Method 1 works if I manually add the webdriver paths in node_modules to my PATH env. However I didn't need to do that before and am unsure what has changed.

Change History (2)

comment:1 Changed 8 months ago by kzar

  • Cc tlucas geo added
  • Priority changed from Unknown to P2
  • Ready set

Ross if you have time, please could you bisect this for us? It would be interesting to know which commit introduced the regression. In other words, please could you find the last commit where the tests run OK on Windows?

comment:2 Changed 8 months ago by Ross

Of course. I'll see if I can do that this afternoon.

Note: See TracTickets for help on using tickets.