Salad BDD: How to Transfer Scripts?

I am using the Lettuce BDD framework for python, and I am wondering how to run one script from another script.

For example, let's say there is a “registration” script that sets some preconditions that will be used by the subsequent script (say, “action script”) - how can I refer and call the “registration” script from the “action”

+3
source share
2 answers

For lettuce, there is a function "behave_as" that should do this. Although there were some mistakes in the past, I tried to use it. May be fixed now. I discovered a mistake with Gabriel, the author.

+3
source

.

, - , "@world.absorb" . world.yourAction .

yipit, :

http://tech.yipit.com/2011/12/23/lettuce-best-and-worst-practices-1/

, , , - / , , !

+1

Source: https://habr.com/ru/post/1796736/


All Articles