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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,786 views 0 6
Read article

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