bdd - How to call a scenario several times without tableized items in a behave test? -


i 'd call scenario -let's 500 times- in gherkin test without tableized items. reason 'd use randomized variables instead of written myself. know how implement random functionality tests called once.

for example :

scenario outline: want test speed different values     when set speed <speed>     , wait 5 seconds     plays @ <speed>      examples:     | speed       |     | 10   |     | 20   |     | 30   |     | 40   |     | 50   | 

import random

speeds = ['10', '20', '30', '40', '50']

def next_speed(): return random.choice(speeds)

if use random functionality this, how can call scenario 500 times?

thanks in advance.

if try use gherkin scripting tool, you're gonna have bad time. there better tools that, python or robot framework. ask advantage expect gherkin test. gherkin should answer 'why' doing something, should have examples explain sufficiently different cases - , preferably interesting ones.


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -