0
votes

I am trying to run protractor test on Azure DevOps pipeline and getting the following error. Notice that jar file path is pointing to my local drive even when the tests are being run from Azure DevOps server. Any idea what I need to do?

Same test works when running from local machine but fails on Azure. I have the selenium-server-standalone-3.141.59.jar in my project's node_modules folder. What I don't understand is that why is it looking at my local machine (C:\Automation) when I am running test from Azure.

[13:33:31] I/launcher - Running 1 instances of WebDriver
[13:33:31] E/local - Error code: 135
[13:33:31] E/local - Error message: No selenium server jar found at
C:\Automation\my_app\node_modules\protractor\node_modules\webdriver
manager\selenium\selenium-server-standalone-3.141.59.jar. Run 'webdriver-manager
update' to download binaries.
1
Did you run the webdriver-manager update on your local node module folder - Gaj Julije
Please show your protractor conf.js - yong
@salis01 Do you use Azure DevOps Service (dev.azure.com/xxxx) or on-premises Azure DevOps Server? Could you share your pipeline definition? Try the sample in the documentation below to see whether you can reproduce this issue: protractortest.org/#. - Cece Dong - MSFT

1 Answers

0
votes

This issue may be caused by:

  1. selenium-server-standalone-3.141.59.jar does not exist in your project's node_modules\protractor\node_modules\webdriver-manager\selenium location.

  2. selenium-server-standalone exists with different version.

Try to add a command line task to Update webdriver.

Useful resources:

  1. Error: No selenium server jar found at "Location"

  2. https://medium.com/@ganeshsirsi/protractor-end-to-end-tests-configure-on-ci-cd-tfs-vsts-azure-devops-publish-html-results-9143846f579f

  3. https://docs.microsoft.com/en-us/azure/devops/pipelines/ecosystems/javascript?view=azure-devops&tabs=code#end-to-end-browser-testing