TABLE OF CONTENTS
2. Configuring Form-Data in the Request Body tab leveraging algoQA
1. Overview
In API testing, form data refers to the data submitted to an API endpoint, in a structured format, as part of a request. This data is used to mimic the user input and interactions with the API without manual intervention.
Example of using form-data
When testing an API endpoint that accepts user registration information, you might send form data such as:
- Username: johndoe
- Password: securepassword123
- Email: [email protected]
The API will process this data, perform necessary operations (such as creating a new user), and return a response indicating success or failure.
2. Configuring Form-Data in the Request Body tab leveraging algoQA
When performing API automation with algoQA, you can upload the form data to manage API details.
Perform the following:
- Navigate to the API testing screen. After creating the Request Names in the left pane, select the Body tab.
- Select the form-data option.
- Select plus icon to add required key and values.
- Select the File option in the Key dropdown options.
- Click Upload button to upload the user input file.
- Uploaded file will be displayed corresponding to the Value text box.
- Click Save.
- Navigate to the Script Generation screen by clicking the Generate Scripts button in the Side Panel window.
- Click Edit icon corresponding to the Request Name (Create a User) to view the Edit API window.
- In this window, select Body tab to view the file path, as shown:
3. Related Topics
API Automation Leveraging algoQA
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article