Selenium webdriver 用于UI自动化的Specflow

Selenium webdriver 用于UI自动化的Specflow,selenium-webdriver,specflow,mtm,Selenium Webdriver,Specflow,Mtm,对于我们的项目,开发团队遵循TDD方法。但英国广播公司用同样的格式编写用户故事 作为:匿名客户(ACUST) 我想:按颜色过滤我的搜索结果 因此:我只能看到我喜欢的颜色的产品 如果BA以更通用的格式编写用户故事,开发人员会将用户故事分解为多个故事。我们的手动测试人员以给定的when-then形式编写测试用例,并将其交给Automation tester(我们)进行自动化 作为自动化测试人员,我们得到SBI的单个测试用例 现在,我们使用SpecFlow Selenium使用PageObject模式

对于我们的项目,开发团队遵循TDD方法。但英国广播公司用同样的格式编写用户故事

作为:匿名客户(ACUST) 我想:按颜色过滤我的搜索结果 因此:我只能看到我喜欢的颜色的产品

如果BA以更通用的格式编写用户故事,开发人员会将用户故事分解为多个故事。我们的手动测试人员以给定的when-then形式编写测试用例,并将其交给Automation tester(我们)进行自动化

作为自动化测试人员,我们得到SBI的单个测试用例

现在,我们使用SpecFlow Selenium使用PageObject模式自动化测试用例。并将使用MTM将测试脚本与测试用例关联起来,并从MTM运行它们

我们现在应该如何处理上述场景,我们应该如何在specflow中创建场景和功能文件


任何信息都很好。

你应该从快乐的场景开始,比如: (您也可以使用“场景大纲”而不是“常规场景”)

无论如何,从你的描述来看,测试人员似乎没有将这个故事纳入验收标准

Feature: filter results page of "Anonymous Customer"
         In order to help anonymous customers to find what their looked for
         As a anonymous customer I want be able to filter my search results   

BACKGROUND:
GIVEN i am an Anonymous Customer
AND i am at search results page

SCENARIO: customer filter results by color
GIVEN the page contains the following items:
         | product name | color | 
         | name1        | blue  |
         | etc....      | etc.. |
WHEN i filter results by <color X> (for example "blue")
THEN i should see the following items: <verify existence for the following items> 
         | product name       |
         | name1              |
         | other blue items...|
scenario: customer change the filter color
scenario: customer remove all filters
scenario: etc...