What are components?

Components are groups of steps that are shared across multiple tests.
So once you MAKE COMPONENTwhen you change something inside that group - it will be changed in all tests where you used that group.

Why use components?

To save time! This can save your life when you want to work with test automation for complex products. With components, you can change your test only once, instead of re-recording the steps hundreds of times or manually copy-pasting them between tests.
How many components do you need? It's better to have more than less. It's not a problem if all your groups are components.
Example: make a component from click action on your "Sign up" button. All your tests that test user registration can now use such a component and if you change the "Sign up" button selector in the future you can do it only once.

How to make a reusable component?

Firstly you need to have a group of steps that are repeatable and useful in many tests.
  1. 1.
    Group steps
  2. 2.
    Make a component from this group
To create a component go to test view and choose the group of steps that will become your one component. Then click MAKE COMPONENTon their group name:

Insert an existing component

You can also add an existing component to the test.
You can browse all your components here and search for a specific one that you want to add.
Important! You can only add one instance of a specific component per test. We are aware of this limitation and we are working to improve it in the future.

Unlinking components

When you unlink a component, it will convert it to a regular group and append a "duplicate" to the group name. This will only unlink it in this specific test! Use it for making small modification that is not required in any other test.

Splitting a component

This works exactly the same as splitting a group. You will get 2 new components after splitting a component and you can immediately rename them. All instances of this component in all tests will also be split.

Deleting components

You can delete the component from one test or all the tests.
  • "Remove from this test" - this will only remove it from this test, but not from other tests.
  • "Delete from all tests" - this will completely remove the component from the project and all the tests
Important! When you remove the last instance of a component, it is not removed from your project and will still appear in the "Insert an existing component".