Hi
I have a selenium cucumber project with some tests.
The tests worked and the chromeDriver had launch when I run the -mvn clean compile test in my IDE.
I created this .gitlab-ci.yml in my project’s root:
image: markhobson/maven-chrome:jdk-11
stages:
- build
- test
variables:
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository"
cache:
paths:
- .m2/repository/
- target/
build:
stage: build
script:
- mvn $MAVEN_OPTS clean package
- mvn compile
test:
stage: test
script:
- mvn test
When I run the pipeline, I face this error in the console:
Unable to load browser: Could not start a new session.
Possible causes are invalid address of the remote server or browser start-up failure.
Build info: version: '4.0.0-beta-1', revision: '9c03156c2b'
System info: host: 'runner-fa6cab46-project-25183469-concurrent-0', ip: '172.17.0.4', os.name: 'Linux', os.arch: 'amd64', os.version: '4.19.78-coreos', java.version: '11.0.10'
Driver info: org.openqa.selenium.chrome.ChromeDriver
what can I do for running the tests?