Skip to content
  • ZipCode Api
  • Blog
  • About RedLine13
RedLine13
RedLine13
Primary Navigation Menu
Menu
  • Start Testing
  • Demo
  • Pricing
  • JMeter
  • Partners
  • Docs
    • Documentation Home
    • AWS Set Up for load testing
    • AWS Approval for Large Tests
    • PHP, NodeJS, Python Load Tests
    • Scalability
    • Jenkins Plugin Setup
    • Premium Features
    • Knowledge Base

Postman Load Testing in the Cloud

By: RedLine13

Postman is used for building, testing, and delivering API’s. To do the testing in the cloud we integrated Postman with RedLine13 to run any Postman collection inside RedLine13 as a performance test. The Postman Load Testing project is available on github.

Postman Collections

In Postman, a collection is used to allow you to bundle many different requests into one group. Collections are a great way to organize requests so that they “accurately mirror your API”. Postman users also have the ability to add metadata to requests, store sample responses, filter through requests, and more. Postman collections are great ways to manage and organize your API’s and all of their requests, and now you can test those collections on RedLine13 as collections can be downloaded as a JSON file.

Postman Load Testing with RedLine13 – Postman Integration

Postman collections are easy to run on RedLine13. It all starts by modifying a custom load test.

There are 4 easy steps:

  1. Export Postman Collection
  2. Clone the RedLine13 Example Project To Your Local Environment
  3. Package Your Test
  4. Run Your Test

Step 1: Export Postman Collection

Export your Postman Collection for Postman Load Testing

To get started, we first need to export a collection from Postman:

  1. Navigate to the collection that you want to test, click the three dots to expand the menu, and then hit “Export”.
  2. You will then be prompted to select collection type: Collection v1, Collection v2 or Collection v2.1, choose which one works best for you.
  3. Export your collection to your file directory of choice.

Step 2: Clone the RedLine13 Example Project To Your Local Environment

  1. Clone the repository locally
    git clone https://github.com/redline13/plugin-postman.git
    cd plugin-postman
  2. Modify CustomTest.js in the constructor to override the defaults. These options are the API options defined in newman
  • this.newmanCollection = ‘./Echo.postman_collection’;
    • Specify the collection file that you will be attaching to the test. The file will be in the same directory which test is run from, use ./COLLECTION
  • this.newmanEnvironment = null;
    • Specify environment file (or url to environment file)
  • this.newmanGlobals = null;
    • Postman Global Variables can be optionally passed on to a collection run in form of path to a file or URL.
  • this.newmanIterations = 1;
    • Specify the number of iterations to run on the collection.

Step 3: Package Your Test

  1. RedLine13 requires the package.json which is provided and includes newman. For this reason RedLine13 needs to package the test run.
    tar cvf postman.tar CustomTest.js Echo.postman_collection package.json
  2. Include your test(CustomTest.js), collection(Postman collection), package.json

Step 4: Run Your Test

Login to https://www.redline13.com/Service,

  • RedLine13 enables load tests on your cloud. You need to first setup AWS Keys.

  • This test requires the NVM plugin. Add to your account: RedLine13 Plugin Manager

Add the NVM plugin for Postman Load Testing

  • Add the plugin by hitting the “+”

  • Navigate back to Tests module, click “Start a New Test” then select “Custom test”
  • Click “Upload Custom” and select the .tar file we packaged earlier
  • Specify Number of Users to simulate

Advanced Custom Test Options for Postman Load Testing

  • Required: Advanced Custom Test Options
  • Select plugin “Node Version Manager”
    • Select 6.* as the node version
    • Note: the Load Agent Language should have changed to Node.js

  • Advanced cloud options such as Create EC2 IAM Instance Profile and Attaching AWS Instance Profile to a load agent are available via plugins on RedLine13.
  • Optional: Modify Advanced Cloud Options to control the number and location of servers.

Control the number and location of AWS Servers for Postman Load Testing

Once completed, review your parameters, then name and run your Postman load test. The servers will spin up and display your data in real-time. From there, you can view your results as needed. You’re Postman Load Testing!

For more, visit the Postman Plugin GitHub Page.

You can try for yourself and quickly run your own test on RedLine13.

2019-03-19
Previous Post: Load Testing Online with RedLine13
Next Post: Introducing RedLine13 Services Partner KeenEthics

Recent Posts

  • JMeter XML Format Post Processor
  • Order of Elements in JMeter
  • The JMeter Synthesis Report
  • Using the JMeter Plugins Manager
  • JMeter Rotating JTL Listener

Related

  • JMeter XML Format Post Processor
  • Order of Elements in JMeter
  • The JMeter Synthesis Report
  • Using the JMeter Plugins Manager
  • JMeter Rotating JTL Listener
  • Using Test Fragments in JMeter Tests
  • Step-by-Step Guide to Testing with JMeter
  • Functional Testing vs Performance Testing
  • A Gentle Introduction to Load Testing
  • Using the JMeter Counter Element

© RedLine13, LLC | Privacy Policy | Contract
Contact Us: info@redline13.com

Designed using Responsive Brix. Powered by WordPress.