如何识别要素文件中的步骤(使用Gherkin语法)是否与代码绑定? [英] How to Identify the steps in feature files (using Gherkin syntax)are bound to code or not?

查看:52
本文介绍了如何识别要素文件中的步骤(使用Gherkin语法)是否与代码绑定?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个现有的'n'个specflow解决方案,其中'n'没有特征文件。我需要确定特征文件中给定的步骤是否绑定到代码。一种方法是手动识别完成每个步骤并进入定义(或按'F12')。这个
需要很多时间。


有人可以帮助我识别任何其他方式是可能的完成这项任务?

解决方案

你好朋友,


欢迎来到MSDN论坛。


根据您的描述,您需要测试项目(使用
SpecFlow )带编码的用户界面,我是对的吗?


就我而言知道,SpecFlow基于
Gherkin ,是Cucumbe的一部分生态系统。编码的UI测试包括只能由MS Test解释的特殊编码UI属性。如果您使用的是编码的UI测试,则只能使用MS Test测试运行器执行它们。有关使用SpecFlow获取编码UI的
更多详情,请参阅以下博客:


http:/ /blog.majcica.com/2015/05/07/getting-started-with-specflow-and-codedui /




此外,
SpecFlow
有自己的论坛,您可以发布提到SpecFlow的问题,专业人士将提供专业建议来解决它。


https: //groups.google.com/forum/#!forum/specflow


感谢您的理解。




问候,


Fletcher


I have an existing 'n' number of specflow solutions with 'n' no of feature files.I need to identify whether the given steps in feature files are bound to code or not.one way to identify by manually going through each step and go to definition(or press 'F12').This takes alot of time.

Can someone help me out to identify any other way is possible to achieve this task?

解决方案

Hi friend,

Welcome to MSDN forum.

According your description, you want test project (using SpecFlow) with coded UI, am I right?

As far as I know, SpecFlow is based on Gherkin and is part of the Cucumber eco system. coded UI tests include special coded UI attributes that can only be interpreted by MS Test. If you are using coded UI tests, you can only execute them using the MS Test test runner. For more details on getting coded UI working with SpecFlow, please refer to below blog:

http://blog.majcica.com/2015/05/07/getting-started-with-specflow-and-codedui/

In addition, SpecFlow has its own forum, you could post the question which mentioned the SpecFlow, and the professional person will give professional advice to fix it.

https://groups.google.com/forum/#!forum/specflow

Thanks for your understanding.

Regards,

Fletcher


这篇关于如何识别要素文件中的步骤(使用Gherkin语法)是否与代码绑定?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆