How can I setup passwords for selenium tests on bamboo?

vlado123
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!
June 30, 2021

Hi, I have selenium tests andI am using serenity. All passwords for db and website login are saved in the file serenity.conf. I want to remove passwords from this file and setup password on bamboo. How can I setup it and access from my testscript? 

2 answers

0 votes
Alexey Chystoprudov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 30, 2021

You can keep them at Bamboo plan variables and then put them to serenity.conf file with a command 

echo ${bamboo.my.password} >> serenity.conf 
0 votes
Charlie Misonne
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 30, 2021

You can use variables in Bamboo. Variables exist at several levels (global, build, project). See Bamboo variables.

If you include "password" in the name of the variable the value will  be encrypted in Bamboo's database.
Unfrotunately varibales do not come with permissions so be careful at what level you define the variable if you don't want any Bamboo user to use it.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events