开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜