Skip to content

tediyo/Performance-testing-Scripts-and-reports-for-lambda-server-configuration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Postman Collection for Newman

This directory contains a merged Postman collection that combines both the collection and environment variables, making it ready to run with Newman.

Files Created

  1. merged_collection_for_newman.json - The merged collection file that includes:

    • All environment variables from DC_Dev_Setup.postman_environment.json
    • All requests from New Presigned.postman_collection.json
    • Test scripts and authentication
  2. run_with_newman.bat - Windows batch script to run the collection

  3. run_with_newman.ps1 - PowerShell script to run the collection

  4. README.md - This instruction file

How to Run

Option 1: Using the Batch Script (Windows)

run_with_newman.bat

Option 2: Using the PowerShell Script (Windows)

.\run_with_newman.ps1

Option 3: Manual Newman Command

newman run merged_collection_for_newman.json --reporters cli,html --reporter-html-export report_newman.html

Prerequisites

  1. Node.js - Make sure Node.js is installed on your system
  2. Newman - The scripts will automatically install Newman if it's not already installed

What the Collection Does

The merged collection contains two requests:

  1. "OneTime and manual" - A POST request that:

    • Sends farmer data to the staging environment
    • Uses Bearer token authentication
    • Extracts the presigned URL from the response
    • Runs various tests to validate the response
  2. "presigned" - A PUT request that:

    • Uploads a file using the presigned URL from the previous request
    • Uses form-data to upload the file
    • Runs performance and validation tests

Environment Variables Included

The merged collection includes all environment variables:

Output

After running the collection, you'll get:

  • Console output showing test results
  • An HTML report file (report_newman.html) with detailed test results

Notes

  • The collection uses the staging environment by default (STAGINGHOST)
  • The file upload uses dc_large_83.zip from the files/ directory
  • All authentication tokens and sensitive data are preserved in the merged file
  • The collection will run both requests in sequence, with the second request using the presigned URL from the first request's response

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages