ScriptlessAutomation
  • 👋Welcome to Scriptless Automation
  • Discover More About Automation
    • ⚙️Automation platform intro
    • 💡Advantages of Scriptless Automation
    • 🚀Release Notes
      • 📖Open Code
      • 📕License Code
  • Product tools
    • 📪Pre-request Tools
    • 🔧Project Dependencies
  • Automation Architecture
    • 🎨Flow diagram
  • Get Started
    • 🛠️Start with Automation
    • 📖Open Code Automation
      • 🌏Web Automation
      • ↔️API Automation
    • 🏢Maven Configuration
    • 🗜️Setting Up Maven Project in IntelliJ IDEA
    • 🎛️Scriptless Config
      • 🕸️BrowserConfiguration
        • chrome.properties
      • 👥CommunicationConfiguration
        • SlackConfiguration.properties
      • 📧MailConfiguration
        • gmailCredentials.properties
      • 🛂ReportConfiguration
        • extentReportConfiguration.properties
      • 🕵️TestManagementConfiguration
        • testRail.properties
        • zephyrscale.properties
        • testiny.properties
      • ⚙️testNgConfiguration.properties
    • 🍱TestData Configuration
    • 👨‍💼Gherkin Language and Scriptless Automation Framework
  • Automation Import Notes
    • 🎨Points to Remember
  • Automation Platforms
    • 👾ScriptlessApi Automation
      • 🖊️Introduction
      • 🗜️Api Automation Setup
      • 🔃Supported API Request Types
      • 🪧API Automation Template
      • 📚Example of API Requests
        • ⬇️GET
        • ↕️POST
        • ⤵️PUT
        • ❌DELETE
      • 🎯API Response Validation
      • 👨‍👦API Dependent TestCase
      • 📝Store API Variables
      • 📔API with JSON body
      • 🙋‍♂️Api Wait
      • 🗜️API Schema Validation
      • 🏗️API Tailor-Made coding
      • 👨‍🦯API Support Generator
      • ↘️Api Response Store Objects
      • ✍️API Test Report
      • 🚃Api Response Type Validation
    • 🌐ScriptlessWeb Automation
      • 🖊️Introduction
      • 🗜️Web Automation Setup
      • 🪧Web Automation Template
      • 🧮page_object_locators
      • 📜Web Automation Key Phrases
        • 📃PAGE_NAME
        • ⌛WAIT_TYPE
        • 📜SCROLL_TYPE
        • 👨‍💼ELEMENT_NAME
        • 🏎️ACTIONS
        • ⌨️SEND_KEYS
        • ✔️VALIDATION
        • ✅VALIDATION_TYPE
      • 👨‍👦Web Dependent Test Case
      • 🐒MOCK
      • 🛂AutomationAsserts
      • 🏗️Web Tailor-Made coding
      • 📝Store Web Variables
      • 🤼‍♀️Web & API integration
      • 🖇️Dynamic Strings
      • 🗣️ReadFile Annotation for Custom Code
      • 🖼️Page_Comparison
      • 👨‍💼Gherkin Template for Web Automation
    • 📱Mobile Automation
  • 🪶Automation features
    • 🌲Environment and System Variables
    • 🗝️KeyInitializers
      • Types of KeyInitializers
    • ✍️Reporting
      • Dashboard
      • Category
      • Tests
        • Screenshot Section
    • 👯Parallel Testing
    • 🏗️Tailor-Made Coding
  • ⏩Automation Demo
Powered by GitBook
On this page
  • File name:
  • Fields in the Template
  • Conclusion

Was this helpful?

  1. Automation Platforms
  2. ScriptlessApi Automation

API Automation Template

This document provides a detailed explanation of the fields present in the API Test Case Template. The template is structured to capture essential information required for API testing, ensuring that tests are robust, accurate, and comprehensive.

DEPENDANT_TEST_CASE,
END_POINT,
METHOD,
PARAMS:KEY,
PARAMS:VALUE,
AUTH:KEY,
AUTH:VALUE,
HEADERS:KEY,
HEADERS:VALUE,
BODY:KEY,
BODY:VALUE,
RESPONSE:CODE,
RESPONSE:JSON_PATH,
RESPONSE:EXPECTED_VALUE,
RESPONSE:STORE_VALUE,

File name:

The template is added in the file with file name TestCaseID_GroupName.csv. The file TestCaseID_GroupName.csv is a CSV (Comma-Separated Values) file designed to store and organize test case data systematically within a test management framework. It consists of:

  • TestCaseID: This is a unique identifier assigned to each test case, facilitating the tracking of each test's execution status and results throughout the testing lifecycle.

  • GroupName: This specifies the category of the test suite to which the test cases belong, such as sanity, regression, or smoke tests. The grouping aids in organising the test cases by their testing objectives and in streamlining the execution of related test sets.

Fields in the Template

1. DEPENDANT_TEST_CASE

  • Description: Specifies any preceding test case that the current test case is dependent on.

  • Format: Test case ID or name.

  • Example: TestManagementID_GroupName.csv

2. END_POINT

  • Description: Represents the API endpoint that needs to be hit.

  • Format: URL path.

  • Example: https://api-generator.retool.com/8pwBcI/data/

3. METHOD

  • Description: Specifies the HTTP method used for the API call.

  • Format: GET, POST, PUT, DELETE, etc.

  • Example: POST

4. PARAMS:KEY & PARAMS:VALUE

  • Description: These fields capture the key-value pairs for query parameters passed in the API call.

  • Format: Key and corresponding value.

  • Example: filter, active

5. AUTH:KEY & AUTH:VALUE

  • Description: Used for any authentication information, like API tokens or credentials.

  • Format: Type of authentication and its value.

  • Example: Bearer, your_api_token_here

6. HEADERS:KEY & HEADERS:VALUE

  • Description: Represents the key-value pairs for headers passed in the API call.

  • Format: Header key and its corresponding value.

  • Example: Content-Type, application/json

7. BODY:KEY & BODY:VALUE

  • Description: Denotes the key-value pairs to be included in the request body, especially relevant for POST and PUT methods.

  • Format: Key and the associated value.

  • Example: username, john_doe

8. RESPONSE:CODE

  • Description: Expected HTTP status code in the response.

  • Format: Numeric HTTP status code.

  • Example: 200

9. RESPONSE:JSON_PATH

  • Description: JSON path expression to navigate to a specific portion of the response for validation.

  • Format: JSON path expression.

  • Example: data.id

10. RESPONSE:EXPECTED_VALUE

  • Description: The expected value at the specified JSON path in the response.

  • Format: Desired value.

  • Example: 12345

11. RESPONSE:STORE_VALUE

  • Description: If any value from the response needs to be stored for use in subsequent test cases, it can be specified here.

  • Format: Variable name or reference.

  • Example: session_id


Conclusion

This API Test Case Template is structured to ensure thorough and effective testing. By following this template and accurately filling out each field, testers can ensure that APIs are tested comprehensively, with a clear understanding of dependencies, requests, and expected outcomes.

PreviousSupported API Request TypesNextExample of API Requests

Last updated 1 year ago

Was this helpful?

👾
🪧