> For the complete documentation index, see [llms.txt](https://help.autify.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.autify.com/nocode-web/en/autify-university/advanced/best-practice/best-practices-for-creating-and-using-step-groups.md). Agents can also search and read this documentation through its [MCP server](https://help.autify.com/~gitbook/mcp).

# Best Practices for creating and using step groups

## What kinds of things should be in a step group?

Cut out "steps that are used over and over again" or "parts that are common to multiple scenarios" and put them in a step group. This will allow you to create and manage scenarios more smoothly and efficiently.

For an overview of step groups and their basic usage, please refer to [this help page](https://help.autify.com/nocode-web/en/autify-university/foundation/step-groups.md).

## Points to keep in mind when creating and editing step groups

* Keep step groups as short and concise as possible.
* Use an easy-to-understand naming convention for step group names. Also, be sure to include labels and explanations so that everyone can visualize what is being done.
* Avoid creating step groups ahead of time that may or may not be reused. Create a step group when you are sure it will be reused and when you need it.

## Use Cases

* Find steps that will be used repeatedly in the test, such as login/register/exit, and group them into step groups. Also, if users have different privileges, you can create and manage scenarios more efficiently by creating separate login step groups for each privilege (e.g., General Member/Premier Member, etc.).

***

* For example, step groups are effective for steps such as entering data into a form. By grouping together steps that are used repeatedly in multiple scenarios, such as membership information entry and data registration, scenario creation can be made more efficient.

  ![](https://1964297753-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVdZPTgwISYb3LhjgKnw6%2Fuploads%2Fgit-blob-066e45aef6c670250169605803c034646ebe7357%2FBest%20Practices%20for%20creating%20and%20using%20step%20groups1.png?alt=media)

***

* By making the creation/deletion of data necessary for testing also a step group, the test can be prepared by simply adding step groups at the beginning and end of the scenario. For example, you could use a step group to create a user at the beginning of the scenario, and then use a step group to delete that user when the test is finished. In this way, it is also possible to prepare multiple scenarios by using \[step group for data registration] + \[verification perspective] + \[step group for data deletion] to cut out the parts that can be shared among the step groups.

  ![](https://1964297753-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVdZPTgwISYb3LhjgKnw6%2Fuploads%2Fgit-blob-5acf8e7479c3e9a3147f33d49ac84fefad5a6b4e%2FBest%20Practices%20for%20creating%20and%20using%20step%20groups2.png?alt=media)

***

* As an advanced use case, it is also possible to pass values between step groups. It is possible to use a JS step within a step group to obtain a value, and then use that obtained value within another step group.

  ![](https://1964297753-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVdZPTgwISYb3LhjgKnw6%2Fuploads%2Fgit-blob-46e4cd18091f404d759ab7e380cfac91af891ff8%2FBest%20Practices%20for%20creating%20and%20using%20step%20groups3.png?alt=media)

***

* For testing abnormal systems such as errors, there are cases where scenarios can be created that take into account "cases where elements are not displayed correctly" by combining screen reloads in the wait step and JS step.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.autify.com/nocode-web/en/autify-university/advanced/best-practice/best-practices-for-creating-and-using-step-groups.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
