Forums

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

Implementing Selenium (java + maven) tests into build pipeline of another BitBucket repository

Deleted user August 27, 2018

Good day,

 

I just started on an existing project that uses BitBucket and pipelines for their deployment. For reference, we'll call the primary project 'Project A', and Project A is based on Node.js, written in Javascript. 

I have created another BitBucket repository with my Selenium tests, which are written in Java and use Maven to execute, ie: mvn clean verify

 

 

All things aside, what is the best way to instantiate my Selenium tests in Project A's build-pipeline.yml to ensure that they are ran properly against Project A?

Seeing as Project A does not use Maven (and generally does not have a concept of java artifacts), I'm a bit confused as to how to accomplish this.

It should be noted that I'm using an outside service (ie: SauceLabs) to run the actual Selenium tests. 

 

 

1 answer

0 votes
Steven Vaccarella
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 13, 2018

Hi Brandon,

Without digging into the particular tools you're using it sounds like you might want to run your Selenium tests in a separate step in Project A, using a docker image that contains all the dependencies needed for those tests. You can transfer the artifacts that you're testing from a previous step: https://confluence.atlassian.com/bitbucket/using-artifacts-in-steps-935389074.html

If that doesn't answer your question perhaps you could provide a bit more detail about the specific tasks you need help with.

Perhaps the answer to this other question will also help. It discusses some options for transferring dependencies between repositories. https://community.atlassian.com/t5/Bitbucket-questions/Pipeline-build-depends-on-another-development-package-in-a/qaq-p/693365

Cheers,
Steven

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events