When trying to set up Selenium on bitbucket, chrome driver starts a session and removes it immediatly.
Here is my bitbucket pipeline :
- step: &ui-tests
name: UI Tests
caches:
- dotnetcore
services:
- chrome
script:
- export TestUrl=$TestUrl
- export TestAccountUsername=$TestAccountUsername
- export TestAccountPassword=$TestAccountPassword
- dotnet restore uitests/UITests.sln
- dotnet build uitests/UITests.sln --no-restore
- dotnet test uitests/UITests.sln --no-build --no-restore
-
services:
chrome:
image: selenium/standalone-chrome:latest
ports:
- "4444:4444"
volumes:
- "/dev/shm:/dev/shm"
Is there anything I am setting wrong, In Local all the tests are fine.
Hi Sharada,
I believe the issue here may be related to the paths in the volumes:
- "/dev/shm:/dev/shm"
Volumes need to be mounted inside $BITBUCKET_CLONE_DIR, we don't support mounting volumes outside that directory and also with a source outside $BITBUCKET_CLONE_DIR. This is for security reasons, as Pipelines use a shared infrastructure.
May I ask why you need to mount /dev/shm in your build?
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.