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

This widget could not be displayed.

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

This widget could not be displayed.

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
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

172 views 1 3
Join discussion

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