- web apps
Why Install Chrome Extension?
Steps to Test Locally Hosted Apps
How to Turnoff Onboading Tutorial?
Non-Text Keys in Test Cases
Basic Authentication for Web
Why Bypass CAPTCHA?
Test Case Failures Due to Link Text Capture Issues
Why Is a Single Video for All Test Cases in a Test Plan Unavailable in Some Cases?
How to Handle Browser-Related Permission Issues?
Why Can’t Selenium ChromeDriver Interact With 3DS Authentication Pages?
How Do I Fix the Try Again Error When Opening the Testsigma Desktop App?
Why Am I Getting an Error While Registering the Agent?
Why Does the Try Again Error Appear While Installing the Testsigma Agent in a Proxy Environment?- mobile apps
Apple Pay Automation with Testsigma
How do I Enhance the Execution Speed for Mobile Native Apps?
Why am I Facing Permission Error During Local Test Execution?
How to Resolve App Launch Issues?
Why does the iOS App Close Right After Opening in Testsigma?
How to Execute Android/iOS Tests in Emulators/Simulators?- general
Why am I Unable to Download the XLS File from the Edge Browser?
How to Handle Browser-Related Pop-Up Issues?
How to Handle Text-Based CAPTCHA in Testsigma?
Why does Test Execution Fail with the Error No Route to Host?
Why do Errors Occur When I Try to Download Files from The Exports Page?
How to Test Flutter Apps Using Accessibility Mode?
How to Add Multiple Runtime Variables in Data Generator Functions?
How to Insert Test Data in RAW Body for POST API?
What is Chrome for Testing and How Does it Work?
How Can I Set Up Authenticator-Based Authentication in Testsigma?
How to Update an Excel File in Testsigma Uploads?
What Causes Longer Automation Test Execution Times in a Test Plan?
How Do I Retrieve the OTP When it’s Embedded within HTML Tags?
How to Configure the OracleDB Add-on in Testsigma?
How to Insert Test Data in RAW Body for POST API?
You can insert test data into the raw body of a POST API request by using Test Data Profiles (TDPs) and Data Generators. This allows you to send dynamic values instead of hard-coded data.
To quickly help you understand, this video demonstrates how to insert test data in RAW Body for POST API request.
Test Data References
- To reference a parameter from a Test Data Profile, use: "@|<ParameterName>|"
- To generate dynamic data at runtime, use: "!|<FunctionName>(arguments)|"
Example: Posting a Pet to Swagger Petstore
{
"id": "!|Number.digits(int:3)|",
"category": {
"id": 1,
"name": "dog"
},
"name": "@|DogName|",
"photoUrls": [
"https://example.com/photo1.png"
],
"tags": [
{
"id": 101,
"name": "friendly"
}
],
"status": "available"
}In this example:
- The id is generated dynamically using the Number.digits function from Data Generators, which creates a random 3-digit number at runtime.
- The name is parameterized with the DogName field from the Test Data Profile.
- Other fields, such as category, tags, and status are static but can also be parameterized if needed.