简体   繁体   中英

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

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.

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM