Loadmill
Learn moreSchedule a demo
  • Introduction
    • Loadmill - AI - Powered Solution
    • Deviceless mobile testing
      • Capturing traffic with Loadmill MITM Proxy
      • Loadmill desktop recorder
        • Generating test flows
      • Installing certificate on mobile devices
        • iOS certificate installation
        • Android certificate installation
      • Configuring proxy on mobile devices
        • iOS Wi-Fi settings
        • Android Wi-Fi settings
      • Troubleshooting
    • What is an API
      • API - Data Fetching
      • Quick examples of API requests
      • What is an API endpoint?
    • API Server Testing
      • Contract testing
      • Regression Testing
  • Quick Guide
    • Create Account
    • Download Test Composer
    • Register your first API flow
    • Running Your API Test
  • Loadmill Test Composer
    • Quickstart
    • Composer Layout
    • Filter Settings
  • Test Editor
    • Layout
    • Flows
      • Generated Flow Code
      • Test Flow editor
      • Flow Controls
      • Add CSV to Flow
      • Flow Execution
    • Steps
      • Request step
      • Code step
      • Extraction & Assertion step
      • Web Socket step
    • Extractions - Set Parameters
    • Assertions - Verify Response
    • Parameters
      • Parameter Execution Order
      • Test Suite Parameters
      • Parameters Sets
    • ⨍(⨯) FUNCTIONS
    • Postscript
      • Running Postscript
      • Accessing w/ Postscript
      • Validating Postscript
    • Login/Authentication Flow
    • Before & After Hooks
  • Load Testing
    • Load Test Editor
    • Load Testing Guide
    • Analyzing Load Test Results
    • Parameterized Load Test
    • Domain Verification
    • Configuration Files
    • Load Testing FAQs
    • Load Testing Troubleshooting
  • User Behavior Testing
    • Overview
    • Setup
    • Recording troubleshooting
    • Additional recording methods
    • Recording settings
    • How to work with Recordings
  • Auth
    • Okta SSO integration
    • API Tokens
    • Testing with CORS
    • REST API
  • Integrations
    • Loadmill Agent
    • CI integration
    • GitHub
      • CI integration
      • Data sync
    • GitLab
    • Bitbucket
    • Jira
    • New Relic
    • Slack integration
    • TestRail integration
    • Database Testing
    • Kafka Testing
    • Datadog Integration
    • ✉️Email Testing
    • Webhook Testing
    • Integrations FAQs
    • XRay
    • TestRail
    • gRPC Support
  • Collaboration
    • Collaboration
    • Teams
    • Groups & Reports
    • Test Suite Collaboration
    • Reviews
    • Shared Flows
    • Labels
  • Reporting
    • API Catalog & Coverage
      • API Catalog
        • Unique Entity ID's Mapping
        • Domain Mapping and grouping
        • Endpoints grouping
        • OpenAPI upload
      • Test Coverage
        • Generating API test coverage report
  • General
    • Billing
      • Usage report
    • Settings
      • 📈Analytics
        • Flow Run History
      • 🧳Import & Export
    • General FAQs
    • General troubleshooting
    • Comparisons
      • Loadmill vs. SoapUI
      • Loadmill vs. JMeter
      • Loadmill vs. Blazemeter
      • Loadmill vs. WebdriverIO
      • Loadmill vs. Potato
    • Miscellaneous
      • Running a Test Suite
      • Test Plan
      • API Testing troubleshooting
      • API Testing FAQs
      • Test Editor
        • API Tests - Data from CSV files
Powered by GitBook
On this page
  • Request sections
  • The Request Handling section
  • The Response Handling section
  1. Test Editor
  2. Steps

Request step

PreviousStepsNextCode step

Last updated 3 months ago

Request is the main building block of tests. It represents a single API call or a user action.

Request sections

The Request Handling section

  • The Method and URL fields are the most basic requirements for a valid request.

  • It is recommended to set the Request description in a way that describes its action. This will make it easier for you to debug your tests later if this request fails.

  • Some requests require a body. Selecting the right content-type for your request will help us highlight the syntax of your request body (i.e. JSON or XML).

GraphQL requests

A standard GraphQL POST request should use the application/json content type, and include a JSON-encoded body of the following form:

{
    "query": "...",
    "operationName": "...",
    "variables": {
        "var1": "value",
    }
}

operationName and variables are optional fields. operationName is only required if multiple operations are present in the query.

The response should return the queried data in a JSON. i.e.,

{
  "data": { ... },
  "errors": [ ... ]
}

The Response Handling section

The Extractions - Set Parameters section allows you:

  • To extract values from the response body into an existing or a new parameter using JSONPath, Closure, jQuery, RegExp.

  • To extract an HTTP header value into a parameter using the Header extractor.

The Assertions - Verify Response section allows you to validate the request response.

The Flow Control section allows to repeat the request until the parameter's value meets the requirement or number of iteration reached:

You can also set Skip and Stop conditions between requests within this section:

When we expand the request editor by clicking at the top-right of the request, we can see that a test request includes two main sections - Request and Response Handling sections.

Black input fields are fields in which you can use and .

The Headers section allows to see and set the request headers. You can add header to all requests or as a Global Header so that it will be added to all of the test flow requests and appear in .

Based on ().

The response handling section includes 3 sections: , (disabled by default), and Flow control.

To assign a static value or using the "Assign" option.

To add an extraction from . Team admins configure the repository within Settings - Suggestions.

parameters
functions
the Global Login tab
graphql.org
Extractions - Set Parameters
Postscript - run code
Assertions - Verify Response
apply a function on another parameter
the Suggestions repository
The request handling section
The response handling section