简体   繁体   中英

How to run multiple feature file in behave using pycharm professional

I have created multiple feature file using python language in pycharm professional.

So whenever i try to run multiple feature file simultaneously it shows ConfigError while I'm using tags.

In which way I need to do, to run specific scenarios and multiple feature file in behave using python

How to set the feature file path or how to change the default feature path?

Config error

Default path error

In your Pycharm terminal, you have to change the directory path to your Features folder before proceeding to run a particular scenario. Because it searches the features file under wrong path.

Change your path as mentioned below.

C:\\Users\\MSTEMP\\PycharmProjects\\ORE_DEMO> cd mention your path upto features folder

Once you switched to the Features folder.Use the following commands

To run a specific scenario: behave -n "scenario name"

To run a feature file: behave "feature name.feaure"

To run multiple feature file behave " feature name one .feature " " feature name two .feature "

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM