setNext?
Tanjim
Thank you for your feedback! We appreciate your input. Regarding your question, in Apidog you can achieve similar functionality through the Test Scenario feature within the Testing option. This allows you to control the flow of requests based on conditions, creating dynamic request sequences. Here's how you can use it:
1) Create a Test Scenario:
In your Apidog project, navigate to the "Testing" section.
Create a new test scenario or edit an existing one.
2) Add Conditional Branches:
Within the test scenario, you can add conditional branches using the "If" condition.
For example, if you want to perform a specific request conditionally based on the response of a previous request, you can add an "If" condition.
3) Define Conditions:
In the "If" condition, specify the variable or response value to evaluate.
Choose the condition (e.g., "Equals," "Contains," etc.).
Set the comparison value (e.g., true, false, a specific value).
4) Configure Sub-Steps:
If the condition is met, the sub-step under the "If" condition will be executed.
If the condition is not met, you can add an "Else" condition and specify sub-steps to execute in that case.
5) Organize Your Flow:
You can drag and drop test steps to arrange the flow of execution based on conditions.
By utilizing the "Testing Process Control" feature in test scenarios, you can achieve the dynamic request chaining and conditional execution similar to what you can do with "setnextrequest" in Postman.
For Example: The pet store owner determines that the pet is sold based on yesterday's sales and sets the pet's sale status to "Sold". Otherwise, query the list for sale.
i. Click the button "Tests Step" at the bottom and select Conditional branch.
ii. In the input box behind the lf condition, fill in the variable saleStatus obtained by the request API, select the condition "Equals", and finally enter the comparison value as true. (When the sales status is judged to be true, change the pet information to "Sold")
iii. Hover over the conditional branch to stop "+ Else", click and add the "Pet List for Sale" step (otherwise, query the list of pets on sale).
iv. Drag the test step into the appropriate conditional branch.
For more detailed instructions and examples, you can refer to the official documentation on Testing Process Control : https://apidog.com/help/automated-testing/test-scenarios/testing-process-control.
This feature allows you to build complex test scenarios with conditional logic, making your testing process more versatile and powerful.
I hope this helps clarify how to achieve this functionality in Apidog's testing process. If you have any further questions or need assistance, please don't hesitate to ask.