H
H
hudrogen2016-11-29 09:46:14
Python
hudrogen, 2016-11-29 09:46:14

Is it possible to use double loop in lettuce?

Hello! I use lettuce + selenium to write autotests in the PyCharm environment.
I act according to this manual https://habrahabr.ru/post/189778/
By specifying the Examples block, you can loop the written script. Is it possible to implement a loop within a loop by specifying 2 blocks of examples?
Test example:

Функционал: функционал1

  Структура сценария: сценарий1
    Мы находимся на главной странице
    И мы кликаем на  <Источник  выплат>
    И мы указываем <Тип кошелька>
Примеры:
|Источник выплаты|
|Google adwerbs|
|Яндекс директ|
|Рекламная сеть Вконтакте|

Примеры:
|Тип кошелька|
|webmoney R|
|webmoney Z|
|qiwi|

those. at the step "we click on the payout source" the value is taken from the first block of examples, then the line
"we specify the payout direction" is looped, taking the values ​​from the second block of examples.
Is it even possible to implement this using lettuce?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question