As your test suites grow, you will inevitably end up with writing the same sequences of steps over and over. Think about the steps required to login into your application. Frontend Robot allows you to reuse these steps sequences with Fragments.
To create a fragment simply go to the standard test case editor and click on the three dots at the top right corner, then select Create Fragment, as shown in the screenshot below:
At the moment you cannot create fragments from the Live Editor.
You are now able to select the steps to include in the Fragment. Once finished, click on Create Fragment and give it a name.
The Fragment should now be created and automatically embedded into the source test case.
To reuse and existing Fragment, simply add a
Fragment instruction and select or search the Fragment name from the list:
After clicking Save, the fragment will be added to the test case:
NOTE: Editing a Fragment from within a test case will modify all the instances of the same Fragment used in other test cases.