I have tried running selenium side runner via Jenkins using below command:
selenium-side-runner -c "browserName=chrome goog:chromeOptions.args=[disable-infobars,headless]" myfile.side
Not sure how to run my tests in the pipeline, however, I tried below approach, but pipeline is failing:
Hi
did u find the solution?
@Divyanka hi. Thanks for your question.
Try to use docker image with selenium-side-runner. As an example this image.
- step:
name: 'Security scan'
image: nixel2007/docker-selenium-side-runner:latest
script:
- selenium-side-runner -c "browserName=chrome goog:chromeOptions.args=[disable-infobars,headless]" ./myfile.side
Regards, Igor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Divyanka hi. Try this one:
image:
name: atlassian/default-image:3
test: &test
parallel:
- step:
name: 'Build and Test'
script:
- echo "Your build and test goes here..."
- step:
name: 'Lint'
script:
- echo "Your linting goes here..."
- step:
name: 'Security scan'
image: nixel2007/docker-selenium-side-runner:latest
script:
- selenium-side-runner -c "browserName=chrome goog:chromeOptions.args=[disable-infobars,headless]" ./myfile.side
pipelines:
default:
- <<: *test
branches:
master:
- <<: *test
Also additionally you can try this guide or this guide.
Regards, Igor.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks I tried, I was getting error: ChromeDriver not found, then I tried pulling headless chrome, still getting this error:
YML file:
image: atlassian/default-image:3
pipelines:
default:
- step:
name: Build and test
image: zenika/alpine-chrome
caches:
- node
script:
- docker version
- docker pull browserless/chrome:latest
services:
- docker
- step:
name: 'Test'
image: nixel2007/docker-selenium-side-runner:latest
script:
- selenium-side-runner -c "browserName=chrome goog:chromeOptions.args=[disable-infobars,headless]" ./ConsoleTesting.side
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.