Build and Configuration
Global Variables
Global variables offer a streamlined way to simplify test maintenance by creating variables that can be reused across multiple tests within the same project. This is particularly beneficial when a value is reused throughout multiple tests or when variables are required to synthetically generate data.
To get started with global variables:
Select one or multiple APIs.
Under the playground or Testing suite, click on "Global Variable".
Create or manage existing global variables by clicking "New API" and defining the variable name, type, and default values for different environments.
In the "Configurations" section, select "Global Variables" and create new variables or manage existing ones.
Certificates
Certificates act as digital identifications, ensuring secure and authenticated communication between the client and server. By integrating certificates into the testing phase, developers can ensure that their API requests mimic real-world secure interactions, enhancing the reliability and security of their applications.
To use API certificates:
Navigate to "Configuration" and select "Certificates".
Click "New Certificate" and upload the certificate.
Enter a unique domain name, port number, and password.
In the playground or Test Suite, select the API(s) and choose to add the certificate.
Performance and Functional Testing
Performance Testing
Performance testing involves gradually intensifying the workload to observe the API's performance under heavier demand. Within this process, you can track response durations, review status codes, and access advanced reports for a deeper understanding of performance over time.
To run a performance test:
Navigate to the Test Suite and select the suite or specific APIs.
Click the "Performance Run" icon.
Select the number of threads, threshold response time, and environment name.
Functional Testing
Functional testing serves the purpose of testing REST, SOAP, and GraphQL APIs by providing API details, authorization, headers, parameters, assertions, and API-to-DB assertions. Upon executing the test script, users can view the generated report to verify the results effectively.
To run a functional test:
Navigate to the Test Suite and select the suite or specific APIs.
Click the "Functional Run" icon.
Select the environment and execute the test.
By leveraging global variables, certificates, and performance and functional testing capabilities, you can build and configure your API testing environment to meet your specific requirements, ensuring comprehensive and reliable testing of your APIs.
Last updated