问题:这突然停止在 PyCharm 中工作,并且自然语言代码背后的功能只有很小的变化。Behave Runner 出错 - 如果您遇到此问题并已修复,请提供帮助。我已经对整个 repo 进行了编码,但没有看到问题所在。也许我错过了一些东西,之前运行相同的测试从来没有遇到过这个问题
Feature: Opportunity End Point in AWS ~ DEV, SIT - ENVIRONMENT'S
Generate an Opportunity Response
Scenario Outline: Generate an Opportunity Payload for AWS-DEV
Given we have an opportunity request payload in <AWS-ENVIRONMENT>
When we submit the post call for the opportunity response <AWS-ENVIRONMENT>
Examples:
| AWS-ENVIRONMENT |
| AWS_DEV |
Scenario Outline: Generate an Opportunity Payload for AWS-DEV and Extract Div Names and Opportunity Count by Divs
Given we have an opportunity request payload with subset of all accounts in <AWS-ENVIRONMENT>
When we post the string payload with subset of all accounts in nutrien for AWS-DEV
Then we extract the rationle embedded within the returned opportunity json
And we extract unique Divisions within the opportunity response rationale
And verify the number of occurances of division title in the opportunities Response Payload
And we extract the opportunity Ids and unique occurances
Examples:
| AWS-ENVIRONMENT |
| AWS_DEV_ALL |
错误堆栈跟踪:
测试于下午 1:18 开始......回溯(最近一次通话最后一次):
文件“/Applications/PyCharm.app/Contents/plugins/python/helpers/pycharm/behave_runner.py”,第 327 行,在 _BehaveRunner(my_config, base_dir, use_old_runner).run() 文件“/Applications/PyCharm.app/Contents /plugins/python/helpers/pycharm/_bdd_utils.py”,第 102 行,运行中 number_of_tests = self._get_number_of_tests() 文件“/Applications/PyCharm.app/Contents/plugins/python/helpers/pycharm/_bdd_utils.py”,第 221 行,在 self._get_features_to_run() 中的功能的 _get_number_of_tests 中:文件“/Applications/PyCharm.app/Contents/plugins/python/helpers/pycharm/behave_runner.py”,第 235 行,在 _get_features_to_run self.__real_runner.run()文件“lib/python3.8/site-packages/behave/runner.py”,第 804 行,在运行中返回 self.run_with_paths() 文件“lib/python3.8/site-packages/behave/runner.py”,第 818 行,run_with_paths features = parse_features(feature_locations, language=self.config.lang) 文件“lib/python3.8/site-packages/behave/runner_util.py”,第 326 行,在 parse_features feature = parser.parse_file(filename ,语言=语言)文件“lib/python3.8/site-packages/behave/parser.py”,第 18 行,在 parse_file 中返回 parse_feature(数据,语言,文件名)文件“/lib/python3.8/site-packages /behave/parser.py”,第 26 行,在 parse_feature 结果 = Parser(language).parse(data, filename) 文件“/lib/python3.8/site-packages/behave/parser.py”,第 148 行,在解析 self.action(line) 文件“/lib/python3.8/site-packages/behave/parser.py”,第 282 行,在行动中引发 ParserError(msg, self.line, self.filename, line) behavior.parser .ParserError:无法解析“/tests/aws/features/xxxxx.特征”:处于未知状态特征的解析器;在第 8 行:“当我们提交机会响应的帖子调用时”
进程以退出代码 1 结束