Steps
Tests are made from a series of steps. If one step fails in a test, the entire test fails. This means that every step must be successful for the test to be a success.
How to add a step to a test
You can create a step by clicking the + Add Step box at the bottom of the Visual editor.
![studio-tests-add-a-step.png 1360](https://files.readme.io/fabd3a8-studio-tests-add-a-step.png)
Below is a list of the step categories and the steps within each category:
-Data Fetch: Http Get, Http Put, Http Patch, Http Post, Http Delete, Database Connector
-Assert: Assert Equals, Assert Different, Assert Exists, Assert Type, Assert In, Json Validate, Assert Greater Equal, Assert Smaller Equal
-Flow Control: Loop ForEach, Set Variable, Logic If, Code Run, Faker Generate, Execute Child Test
-Dynamic Values: JWT Decode, JWT Encode
![studio-add-step.png 750](https://files.readme.io/5f73327-studio-add-step.png)
Note: In the visual editor steps will be color-coded to follow their category.
Creating a group of steps
To simplify the organization of tests, you may want to group steps. When you click the Create Group icon, a dialog will open for you to name your group.
RapidAPI supports using multiple groups and nested groups within a single test. Additionally, you can rename, reorder, and delete groups after creation.
![studio-tests-steps-create-group.png 1344](https://files.readme.io/7177b84-studio-tests-steps-create-group.png)
Create Group icon
Duplicating steps
Clicking the Duplicate Action icon at the top of a step will create an additional copy of that step.
![studio-tests-steps-duplicate.png 1346](https://files.readme.io/bd71057-studio-tests-steps-duplicate.png)
Deleting steps
Clicking the delete action at the top of a step will delete that step. After a step is deleted, there is no option to recover it.
![studio-tests-steps-delete.png 1314](https://files.readme.io/b8da07f-studio-tests-steps-delete.png)
Updated 8 months ago