H
H
hudrogen2016-11-21 10:18:04
Python
hudrogen, 2016-11-21 10:18:04

How to map a script file to a method implementation file?

Hello! I use lettuce + selenium to write autotests in the PyCharm environment.
I follow this manual https://habrahabr.ru/post/189778/
In the examples, all *.feature scripts refer to one *.py file where the test methods are implemented.
In my tests, I plan to create my own file with implementations for each script file, so as not to dump everything in one heap
. I need each script file to access and use methods only from its implementation file.
Example
script described in Auth.feature refers to methods found only in Auth.py
Auth.feature >Auth.py
script described in SendTicket.feature refers to methods found only in SendTicket.py
SendTicket.feature > SendTicket.py
etc.
How to make such a comparison?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeniy _, 2016-11-21
@GeneD88

Just. Describe all the steps used in your feature file in an appropriate separate py file. That's all the separation for you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question