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.