momentum.sh
  • 💡Introduction to Momentum
    • Overview
    • How can momentum help you?
    • Why is it open source
    • Contributing to momentum
    • Troubleshooting & Feedback
  • Getting Started
    • Hers's what you will need
    • Installation
      • Cloud Integrations (Optional)
        • Portkey
        • Firebase
        • Setting up Github App
        • Enabling Github Auth on Firebase
        • Google Cloud
    • Running Momentum
    • Known bugs & fixes
  • Using Momentum
    • Underlying API structure
    • Auth
    • Logging in
    • User Registration
    • Parsing codebase
    • Getting list of all parsed projects
    • Getting list of all branches in a project
    • Listing all endpoints of a branch
    • Understanding Changes & Impacts
    • Generating Blast Radius
    • Get Flow Graph
    • Get Dependencies
    • Get More Dependencies (AI)
    • Getting code of a specific node
    • Testing your code
    • Generating a test plan
    • Setting up the test plan
    • Preferences
      • Setting preferences of a specific endpoint
      • Getting preferences for specific endpoint
    • Generating tests
  • Using Momentum CLI
Powered by GitBook
On this page

Was this helpful?

  1. Using Momentum

Setting up the test plan

PUT /test/plan

Once the test plan is ready and you're good to go forward with it, it is time to let momentum set it up for execution.

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body

Name
Type
Description

plan

Object of arrays, containing happy_path and edge_cases

The plans generated in the last step

project_id

number

The project id generated during parsing of the code

identifier

string

The id that points to the specific endpoint you want to set test plan for, ex : /server.py:search

Response

null //empty response with 200 success code indicating the test plan has been set up
{  // Usually happens with invalid parameters
    "status_code": 400,
    "detail": "Project Details not found." 
}
PreviousGenerating a test planNextPreferences

Last updated 10 months ago

Was this helpful?