How to reuse some steps from one yaml to another in Opentest

83 views Asked by At

Lets suppose we have 2 yaml for android app containing:

  1. Login
  2. Performing some operation after Login

I want to reuse the Login yaml in yaml 2 , is it possible to achieve this in opentest somehow.

1

There are 1 answers

0
Adrian Theodorescu On BEST ANSWER

The proper way to reuse the same logic in multiple tests is to create a macro action and call that macro in all the tests that need to run that logic. For more information on creating and using macros, please see the OpenTest documentation.