SpecFlow Tutorial
Selected Reading
- SpecFlow - Discussion
- SpecFlow - Useful Resources
- SpecFlow - Quick Guide
- SpecFlow - Table with CreateSet
- Table with CreateInstance
- Table conversion to Dictionary
- Table conversion to Data Table
- Data Driven Testing without Examples
- Data Driven Testing with Examples
- SpecFlow - Background Illustration
- SpecFlow - Hooks
- SpecFlow - Step Definition File
- SpecFlow - Feature File
- SpecFlow - Gherkin Keywords
- SpecFlow - Gherkin
- Configure Selenium Webdriver
- SpecFlow - Creating First Test
- SpecFlow - Binding Test Steps
- SpecFlow - HTML Reports
- SpecFlow - Runner Activation
- Other Project Dependencies
- SpecFlow - Project Set Up
- Visual Studio Extension Installation
- SpecFlow - Visual Studio Installation
- Behaviour Driven Development
- Test Driven Development
- SpecFlow - Introduction
- SpecFlow - Home
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
SpecFlow - Gherkin
SpecFlow - Gherkin
A Gherkin是一组重要的关键词,以便为规格建立一个有意义的架构。 每一个关键词都转换成像英语这样的通俗语言。
Rules in Gherkin
Gherkin的一些规定如下:
盖尔金的文件从关键词开始。
可在专题文件新行一开始添加评论。 它们从空间开始或没有空间,然后是编号和案文。 然而,直到现在为止,在SpecFlow不能添加零件评论。
可以使用密码、空间或表格。 建议有2个登革热空间。
每一步骤的关键词之后的内容都有相应的守则。 这称为标准定义>。
Gherkin Example
以下是Gherkin的例子:
Feature: Payment Functionapty # Example 1 Scenario: Member Payment Method When a member is on Payment screen Then the payment amount is displayed. # Example 2 Scenario: Member Payment Dues When a member is on Payment Due screen Then the payable amount is displayed.
在上述例子中,Feature, Scenario,ev,《》,和Then称为“Gherkin”关键词。
Advertisements