简体   繁体   English

如何使用pycharm professional运行多个功能文件

[英]How to run multiple feature file in behave using pycharm professional

I have created multiple feature file using python language in pycharm professional. 我在pycharm专业版中使用python语言创建了多个特征文件。

So whenever i try to run multiple feature file simultaneously it shows ConfigError while I'm using tags. 因此,每当我尝试同时运行多个功能文件时,它会在我使用标签时显示ConfigError。

In which way I need to do, to run specific scenarios and multiple feature file in behave using python 我需要做哪种方式,使用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. 在Pycharm终端中,您必须在继续运行特定方案之前更改“功能”文件夹的目录路径。 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 C:\\ Users \\ MSTEMP \\ PycharmProjects \\ ORE_DEMO> cd提到你的路径到功能文件夹

Once you switched to the Features folder.Use the following commands 切换到功能文件夹后。使用以下命令

To run a specific scenario: behave -n "scenario name" 要运行特定方案: 表现-n“方案名称”

To run a feature file: behave "feature name.feaure" 要运行要素文件:请执行 “feature name.feaure”

To run multiple feature file behave " feature name one .feature " " feature name two .feature " 要运行多个功能文件,请执行功能名称一 .feature ”“ 功能名称二 .feature

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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