If your want to building your skills on BDD style automation development especially with python language. First you will need a Run/Debug configuration that can execute feature files. Here is a little configuration info for PyCharm IDE. In example i just configured for behave framework (very popular in python bdd projects).
Don't worry about the error its just saying you should map a .py file to execute but behave executing that files instead of you
Lets say you have 100 scenarios in your feature file and you want to run tests for specific set.
Until now TAGS are best option for this purpose.
Ofcourse you can run your tests with console
Don't worry about the error its just saying you should map a .py file to execute but behave executing that files instead of you
Lets say you have 100 scenarios in your feature file and you want to run tests for specific set.
Until now TAGS are best option for this purpose.
I used @wip (work in progress) tag in exampe which is one of the common used tags in BDD. So when i'm develpoing some scenarios , now i can run only @wip tagged scenarios to check my code by a simple configuration generation. Here is an example run/debug config for specific tag in PyCharm IDE:
@wipScenario: Case_94441 Given Enter "94441" specific url When Select specified options from listbox Then Check success pop-up
Ofcourse you can run your tests with console
0 comments :
Post a Comment