Skip to content

ProjectSprint/Batch3Project2TestCase

Repository files navigation

FitByte Test Cases!

ProjectSprint Batch 3 Project 2

Status

  • ✅ Register
  • ✅ Login
  • ✅ Get Profile
  • ✅ File Upload
  • ✅ Patch Profile
  • ✅ Post Activity
  • ✅ Get Activity
  • ✅ Patch Activity
  • ✅ Delete Activity

Prerequisites

How to start

  • Navigate to the folder where this is extracted / clone in terminal
  • run
    BASE_URL=http://localhost:8080 make pull-test
    ⚠️ Adjust the BASE_URL value to your backend path

How to load test

  • make sure that you have redis installed and exposed in port 6379
  • run
    BASE_URL=http://localhost:8080 k6 run load_test.js
    ⚠️ Adjust the BASE_URL value to your backend path

Cookbook 🍳

  • How can I know what's the payload that k6 give and what it receives? Run in debug mode:
        DEBUG=true BASE_URL=http://localhost:8080 make pull-test &> output.txt
    For easier searching, you can run this to record the output to output.txt for easier searching
        DEBUG=true BASE_URL=http://localhost:8080 make pull-test-out

Environment Variables

  • BASE_URL (string,url) sets the base url of the backend
  • DEBUG (boolean) show what was sent to the backend, and what is the response

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors