Can one of you help me figure out how to configure my bitbucket pipeline to use Autify test scenarios?
I have read Autify's documentation for Github, Azure, and AWS, but I haven't been able to configure Bitbucket appropriately.
Hello @Dan Pendergrass and welcome to Atlassian Community!
I haven't really used Autify in the past, but based on the documentation and examples you shared, I think you will just need to add a command in your bitbucket pipelines build to install Autify's CLI, so you can execute Autify commands.
Following is an example bitbucket pipelines YML file :
pipelines:
default:
- step:
name: Download and run autify
script:
- curl https://autify-cli-assets.s3.amazonaws.com/autify-cli/channels/stable/install-standalone.sh | sh
- autify web test run https://app.autify.com/projects/00/scenarios/000 --wait
In the above example we are first installing the autify CLI into the build container, and then triggering an autify test and waiting for it to finish. You will need to update the autify URL (https://app.autify.com/projects/00/scenarios/000) with your own test plan/scenario URL.
Also, you will need to create a personal access token on Autify side, and save this access token in a Repository variable (Repository settings > Pipelines > Repository variables) in Bitbucket pipeline with the name AUTIFY_WEB_ACCESS_TOKEN. This is the variable autify CLI will look for to get the credentials to authenticate the request.
Hope that helps! Let me know in case you have any questions.
Thank you, @Dan Pendergrass !
Patrik S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.