小编Lou*_*upi的帖子

ASP.NET MVC,BDD,Specflow和WatiN:将应用程序置于特定状态

我是BDD,Specflow和WatiN的新手.我想使用这些工具自动化我的ASP.NET MVC应用程序的验收测试.

我已经想出了如何基本上使用这些工具,并且我成功构建了我的第一个验收测试:登录到网站.

这是测试的小黄瓜:

Feature: Log on to the web 
    As a normal user
    I want to log on to the web site

Scenario: Log on
    Given I am not logged in
    And I have entered my name in the username textbox
    And I have entered my password in the password textbox
    When I click on the login button
    Then I should be logged and redirected to home
Run Code Online (Sandbox Code Playgroud)

现在,我想写一堆其他测试,它们都需要用户进行身份验证.例如:

Feature: List the products 
    As an authenticated user
    I want to …
Run Code Online (Sandbox Code Playgroud)

asp.net-mvc bdd watin specflow

5
推荐指数
1
解决办法
952
查看次数

标签 统计

asp.net-mvc ×1

bdd ×1

specflow ×1

watin ×1