简体   繁体   English

SpecFlow - 从方法步骤中查找所有场景并查找所有未实现的步骤

[英]SpecFlow - Find all scenarios from method step and Find all unimplemented steps

New to SpecFlow. SpecFlow 的新手。

When specs project become larger, organizing files and refactoring Given/When/Then string become troublesome.当 specs 项目变大时,组织文件和重构 Given/When/Then 字符串变得很麻烦。

  1. How to find Scenarios in feature file from method step.如何从方法步骤在特征文件中找到场景。 Sometimes I have a steps shared in a few scenarios and features but from the C# step method view how to 'Find All References' in feature file?有时我会在一些场景和功能中共享一个步骤,但是从 C# 步骤方法视图如何在功能文件中“查找所有引用”?
  2. How to get all unimplemented scenario steps (font color purple) in all features files so that I can implement the steps.如何在所有功能文件中获取所有未实现的场景步骤(字体颜色紫色),以便我可以实现这些步骤。 Currently when I Run All tests, no warn about unimplemented steps left.目前,当我Run All测试时,没有关于未执行步骤的警告。

Beginning with version 1.9, SpecFlow supports these things (refer to What's new in v1.9 ):从 1.9 版开始,SpecFlow 支持以下内容(请参阅v1.9 中的新增功能):

  • ad 1.: Context menu in step definition: "Go To SpecFlow Step Definition Usages" (shortcut Ctrl+Shift+Alt+S):广告 1.:步骤定义中的上下文菜单:“转到 SpecFlow 步骤定义用法”(快捷键 Ctrl+Shift+Alt+S):
  • ad 2.: Context menu in feature file: "Generate Step Definitions"广告 2.:功能文件中的上下文菜单:“生成步骤定义”

暂无
暂无

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

相关问题 SpecFlow步骤-查看全部 - SpecFlow Step - view all Specflow 2022 生成步骤定义文件 - VSC BDD:所有步骤都已在此文件中定义 - Specflow 2022 Generate a Step Definition file - VSC BDD: All steps have been defined in this file already 黄瓜,在所有情况下都重复登录步骤 - Cucumber, repeating login steps in all scenarios 如何在多步骤向导中找到所有控件? - How to find all controls in a multi steps Wizard? Specflow 使用 BeforeScenario 钩子获取当前场景中的所有步骤 - Specflow obtain all steps in current scenario using BeforeScenario hook 查找所有对子方法的引用 - Find All References To Child Method 从步骤定义的Specflow调用步骤抛出TechTalk.SpecFlow.SpecFlowException:步骤类的容器尚未初始化 - Specflow calling step from step definition throws TechTalk.SpecFlow.SpecFlowException: Container of the steps class has not been initialized 导出所有specflow步骤定义以制作测试教程 - Exporting all specflow step definitions to make a tutorial for the tests Specflow - 创建预定义的数据,以在测试执行中的所有场景之间共享并行执行 - Specflow - Create Pre-defined data to be shared between all scenarios in test execution with parallel execution 如何适应 specflow 步骤定义以使用一种方法从 specflow 特征文件中接受不同数量的参数 - How to accommodate specflow step definition to accept deferent number of parameters from specflow feature file with one method
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM