Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Selenium on bitbucket, chrome driver starts a session and removes it immediately

Sharada Bethapudi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 18, 2021

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.

  

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 19, 2021

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events