mardi 13 avril 2021

How can I configure my selenium project to run in a non local jenkins?

My current situation is the next:

I have a Selenium project upload to BitBucket and I integrate with Jenkins. My actual Jenkins is not locally so I will need to run that code from Bitbucket in the Jenkins server, but when I do it I received this error message:

java.lang.NoSuchMethodError at LinuxEphemeralPortRangeDetector.java:36

and in my BitBucket code I have the driver configured like this:

    System.setProperty("webdriver.chrome.driver", "src/test/resources/drivers/chromedriver");
    ChromeOptions chromeOptions = new ChromeOptions();
    chromeOptions.setCapability("marionette", true);
    driver = new ChromeDriver(chromeOptions);

I'm not sure if the main issue is that is trying to run the test locally and can't do it or if I really need a Virtual Machine to run them or even configure Dockers for it. Can anyone help me with this? I accept any advice or tip about it. Thanks

Aucun commentaire:

Enregistrer un commentaire