Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,557,532
Community Members
 
Community Events
184
Community Groups

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

4 votes
Answer 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

rsperafico
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Feb 26, 2018

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

Can we also run it using collection URL ?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events