I posted a question about this on
http://stackoverflow.com/questions/4697287/specflow-and-visual-studio-2010-coded-ui-test-integration
Thierry, would you or anybody else write a blog post or add another
comment on how would this work at design and run time logically.
I have yet to dig into CodedUI tests.
I don't see a problem of creating a different attribute from code
generation methods inside Specflow.
I would like to understand how all of this can fit together.I doubt it
is only an attribute change.
I think a new value for testing framework in app.config/web.config
needs to be created to allow code generation inside Specflow to
generate
specific code for CodedUI tests.
Let me explain my screnario. I have a bunch of HTML Mock Ups pages
(html, js, css, images) hyper-linked together that are created by a
web developer/designer
(so I need to comply to this Design-Centric approch) and now I need to
add nteractivity and show sample data
by adding code behind (MVC 3 with Razor view engine, EF4 (possibly
Code First Approach), POCO,
SQL Server) using Specflow. Since I already have front end GUI done I
would like to provide fake data to the controllers using fake
repositories
so I will have the correct behaviour from the GUI stand of point. I
would prefer to first work on creating presentation model (ViewModel)
and later add Data Layer as POCO
classes. The reason for trying to use Data-Driven Coded UI Test is to
automate creation of Tests from Test cases/scenarios that I already
have defined.
I need to mentioned that I have use case descriptions and I believe
that Test cases correspond to user stories.
Can somebody use real world Test cases like these to try to explain
how to incorporate CodedUI Tests logically and then we will see how to
do it programmatically inside Specflow.
Test case/Scenario #
Steps
Data Expected Results
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Register a Shopper 1 Launch the test
storefront
http://mystore.com/index
Welcome page is loaded.
with invalid password 2 Click Sign In
link
Sign In page is loaded.
3 Click Register
under New
Customer Register
page is loaded.
. 4 Enter relevant
information with Logon ID = Shopper18
Registration failure with the following Tooltip
invalid
password Password =
shop message:
Verify Password = shop Password must be at least 6
characters long
Verify Password = Shopper1101 and contain at least one number and
at least one letter.
Street Address = 82 N Avenue
...
======================================================================================================================================
Register a Shopper with 1 Launch the test
storefront
http://mystore.com/index
Welcome page is loaded.
mismatched passwords 2 Click Sign In
link
Sign In page is loaded.
3 Click Register
under New Customer Register page is loaded.
. 4 Enter relevant
information and Logon ID = Shopper19
Registration failure with the following Tooltip
click
Submit Password =
Shopper1101 message:
Verify Password = Shopper11011 Password must be at least 6
characters long
Street Address = 82 N Avenue and contain at least one number and
at least one letter.
...
======================================================================================================================================
Thanks,
Rad