简体   繁体   中英

How can I run the same spec file multiple times with Gauge?

I am using Gauge + Python and I want to run the same spec files multiple times. In other words, I want to run the same spec file in a loop for x number of times. How can I do this?

Just add a table as following in the scenario level. This will run my code for 5 times. You can add/remove numbers to your desired.

## Test Hard Reset
Tags: reset

|no of times|
|1          |
|2          |
|3          |
|4          |
|5          |
* Hard reset
* Wait "5"

In the output terminal you will see your code running for 5 times.

   |no of times|
   |-----------|
   |1          |

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