Opened on 12/13/2018 at 12:12:34 PM

Closed on 08/29/2019 at 06:02:39 PM

#7166 closed defect (rejected)

Automated tests no longer just run on Windows

Reported by: Ross Assignee:
Priority: P2 Milestone:
Module: Automation Keywords: closed-in-favor-of-gitlab
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.

Attachments (0)

Change History (3)

comment:1 Changed on 12/13/2018 at 12:22:37 PM 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 on 12/13/2018 at 12:50:13 PM by Ross

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

comment:3 Changed on 08/29/2019 at 06:02:39 PM by sebastian

  • Keywords closed-in-favor-of-gitlab added
  • Resolution set to rejected
  • Status changed from new to closed

Sorry, but we switched to GitLab. If this issue is still relevant, please file it again in the new issue tracker.

Add Comment

Modify Ticket

Change Properties
Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none).
 
Note: See TracTickets for help on using tickets.