Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Improved software testing using Visual Studio and TFS 2010
1. Improved software testing using Visual Studio and TFS 2010 Alexander Vanwynsberghe Software Engineer @vanwynsberghea
2. What is this presentation about? Software testing, why? Use structured testing The capabilities of TFS 2010 Summary Alexander Vanwynsberghe – 09/05/2011
3. Software testing, why? It’s all about the quality Lets you measure how well software is designed Find the bugs! Checks how the product meets the requirements Testing does not make software perfect Alexander Vanwynsberghe – 09/05/2011
4. Use structured testing What does that mean? http://www.flickr.com/photos/59068359@N04/5563821201
5. 1. Make test plans A summary of the test activities that will be performed Shows how the tests will be organized A list of tests which, if performed, will identify all of the requirements that have been set Alexander Vanwynsberghe – 09/05/2011
6. 2. Define test cases Description of a specific interaction that a tester will have in order to test a single behavior of the software Step-by-step guide for the tester Consists of: Preconditions To-do Result Alexander Vanwynsberghe – 09/05/2011
7. 3. Execute tests Run all test cases from the appropriate test plan First iteration test focuses on new features Regression testing usually involves executing all test cases which have previously been executed Test parallel with the developers, not only just before a release Alexander Vanwynsberghe – 09/05/2011
8. 4. Automate tests User interfaces can be test-automated Eliminate repetitive tasks Can save the testers a lot of time if many iterations of testing are required Do not automate one-time-only tests Alexander Vanwynsberghe – 09/05/2011
9. 5. Report bugs And assign them to developer(s) http://www.flickr.com/photos/harmony19490/362411276/
11. The developer.. All coding done Some small ‘debugger-tests’ Check-in/commit Deploy to a development environment “Test please” to tester… Alexander Vanwynsberghe – 09/05/2011
12. The tester tests.. No plan available (no user stories) Lucky to find bugs Waste a lot of time on irrelevant things This is called “Exploratory testing” Alexander Vanwynsberghe – 09/05/2011
13. ..and reports the bug.. Email subject: Mayor bug found!! Email content: “I can’t quite remember what I did, but my data is gone !?” Where is my data? Alexander Vanwynsberghe – 09/05/2011
14. The dev tests and replies.. Email subject: RE: mayor bug found!! Alexander Vanwynsberghe – 09/05/2011
65. If all unit tests passed = bug freeAlexander Vanwynsberghe – 09/05/2011
66. The structure of a unit test Arrange Act Assert [TestMethod] public void Add_TwoPlusThree_EqualsFive() { // arrange int expected = 5; int first = 2; int second = 3; var calculator = new Calculator(); // act int actual = calculator.Add(first, second); // assert Assert.AreEqual(expected, actual, “addition failed”); } Alexander Vanwynsberghe – 09/05/2011