tfs2010 selenium - Unit testing against a previous build
I use Selenium 2 (i.e. web driver) for unit testing in VS2010/TFS2010 environment. When the build (call it build # n) is triggered via checkin, the unit tests run (including Selenium ones) and after passing, the new 开发者_运维技巧site is published. As you can see, I just ran Selenium tests against an old web site (from build n-1).
So the question is, how do I make sure that Selenium tests run against the latest site. I kind of want the deploy/publish to happen before running Selenium tests. Is that possible? Also, what if Selenium tests fails - deploy would have to be reverted back.
Your build should deploy to localhost / other dev site first and run the tests, then if they pass, deploy to the production site.
精彩评论