Configure Postman Automated API Tests in Bamboo

I have an exported Postman Rest API Test json file. How can I configure this in Bamboo to run automated tests?

2 answers

1 accepted

2 votes
Accepted answer

1) Copy the json file to a location in bamboo server

2) Install newman using the command : 

$ npm install newman --global;

3) Add a script task in Bamboo with this script :

$ newman run examples/sample-collection.json;

[Note: you need to install npm first]

Capturebamboo.JPG

Hi there,

I followed your steps, but got following error:

'newman' is not recognized as an internal or external command

 

Cheers,

Larry

Hello @Larry Zhang,

Could you please confirm the user running Bamboo is able to execute newman? Open up Terminal with the same user running Bamboo and attempt on running the script added to Script task.

If running build on a Bamboo remote agent, please make sure the agent has newman installed and available to be executed by the user running the remote agent.

Kind regards,

Rafael

Thanks Rafael,

I used the same user, I've resolved the issue by following steps:

  1. Upgrade Node.js to latest version
  2. Add nodejs folder to environment Path
  3. Reboot Bamboo server

After that the issue was resolved.

 

Cheers,

Larry

Suggest an answer

Log in or Sign up to answer
Community showcase
Asked Thursday in Jira Ops

I'm John Allspaw, Ask Me Anything about incident analysis and postmortems

I'm John Allspaw, co-founder of   Adaptive Capacity Labs, where we help teams use their incidents to learn and improve. We bring research-driven methods and approaches to drive effective inciden...

4,320 views 20 12
View question

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you