Tag Archive: vsts


问题来源:

Data Driven Testing

Summary: Data Driven Testing is a good practice that allows you to have a broad range of test values, which are repeatable

Article demonstrating DDT with an Excel sheet: http://msdn.microsoft.com/msdnmag/issues/06/11/TestRun/default.aspx

VSTS has built-in DDT hooks. Find more info here: TFS Data Driven Testing

DDT API
An alternative to using VSTS for DDT is creating a simple DDT API with some methods that generate values (these values can be different each time depending on desired behavior) for you. If you want it to do more than one value than you simply put it in a loop. We used this approach heavily in the Geo Segmentation project. Our test would ask for an IP address within Japan and the API would hand us one randomly. This was a lot faster than if we would’ve put the data into an Excel sheet and used the VSTS hooks. Also, in our case it provided an even broader range of values without having to run every single value every time.

patterns & practices: Performance Testing Guidance

Guidance.gif patterns & practices Performance Testing Guidance Project

Welcome to the patterns & practices Performance Testing Guidance project Community site. The purpose of this project is to build some insightful and practical guidance around doing performance testing and using Visual Studio 2005. It’s a collaborative effort between industry experts, Microsoft ACE, patterns & practices, Premier, and VSTS team members. – J.D. Meier, Carlos Farre, Prashant Bansode, Scott Barber, Dennis Rea

使用VSTS 的单元测试功能[转]

我们要实现的功能是,发工资时自动向我们发送邮件,如果工资少于10万(我们多少人的梦想呀),就让他发送失败。

1. 首先我们建一个测试工程和一个测试类

image

测试类重命名为SalaryMessageTest

Powered by WordPress | Theme: Motion by 85ideas.