BitBucket Pipelines - Selenium

ismail hussein September 18, 2017

Is it possible to execute Selenium in a BitBucket Pipeline for automated functional testing. I'm not sure if this is possible and if it is how a browser is called from a docker image? or do we have to integrate with another system from pipeline such as Browserstack?

 

Thank You,

2 answers

2 votes
StannousBaratheon
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 27, 2018

This article may also help users attempting to run Selenium tests in Pipelines without an external service like Browserstack: https://medium.com/@yiquanzhou/run-selenium-ui-tests-in-docker-container-78be98e1b52d

2 votes
SebC
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 7, 2017

Hey @ismail,

It's absolutely possible to run Selenium inside Bitbucket Pipelines, in fact we test bitbucket pipelines itself in this way. I would consider this an advanced setup however and we haven't put together many great resource to help everyone through it.

For the best experience however I would recommend using one of our partners like Browserstack; they even have a repo ready to go https://bitbucket.org/browserstack/bitbucket-pipelines

 

cheers,

Seb

Christine_Pinto January 19, 2018

executing the functional tests in a docker container where the selenium server runs should work in the pipeline without any problems. Did you try out this approach already?

Lucien Minot September 24, 2018

@SebC might you have a link to the actual bitbucket-pipelkines.yml. I'm trying to configure the pipeline to execute selenium tests using java for the driver configuration.

Like # people like this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events