Automated Testing Ted Driggs (tdriggs). What Verify program behavior without human interaction Programmatically load and run test code on a wide array.

Slides:



Advertisements
Similar presentations
TWO STEP EQUATIONS 1. SOLVE FOR X 2. DO THE ADDITION STEP FIRST
Advertisements

LEUCEMIA MIELOIDE AGUDA TIPO 0
Copyright © Cengage Learning. All rights reserved.
You have been given a mission and a code. Use the code to complete the mission and you will save the world from obliteration…
Unit testing in.Net. Copyright 2007 Tikal Knowledge, Ltd. | 2 | Agenda Introduction Visual Studio built-in support Open source frameworks Working together.
Client Tools Explained EAE 3014
Advanced Piloting Cruise Plot.
The 4 T’s of Test Automation:
Finite Element Method CHAPTER 6: FEM FOR FRAMES
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 5 Author: Julia Richards and R. Scott Hawley.
1 Copyright © 2010, Elsevier Inc. All rights Reserved Fig 2.1 Chapter 2.
1 Chapter 40 - Physiology and Pathophysiology of Diuretic Action Copyright © 2013 Elsevier Inc. All rights reserved.
By D. Fisher Geometric Transformations. Reflection, Rotation, or Translation 1.
Source of slides: Introduction to Automata Theory, Languages and Computation.
Business Transaction Management Software for Application Coordination 1 Business Processes and Coordination.
17 Copyright © 2005, Oracle. All rights reserved. Deploying Applications by Using Java Web Start.
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Title Subtitle.
My Alphabet Book abcdefghijklm nopqrstuvwxyz.
0 - 0.
ALGEBRAIC EXPRESSIONS
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
MULTIPLYING MONOMIALS TIMES POLYNOMIALS (DISTRIBUTIVE PROPERTY)
ADDING INTEGERS 1. POS. + POS. = POS. 2. NEG. + NEG. = NEG. 3. POS. + NEG. OR NEG. + POS. SUBTRACT TAKE SIGN OF BIGGER ABSOLUTE VALUE.
SUBTRACTING INTEGERS 1. CHANGE THE SUBTRACTION SIGN TO ADDITION
MULT. INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
Addition Facts
ZMQS ZMQS
1 19-Jan-14 © Copyright: City Boy Salary : Simon Powers : 2014 Brown Bag – Behaviour Driven Development with Specflow Brown Bag – Behaviour Driven Development.
Richmond House, Liverpool (1) 26 th January 2004.
BT Wholesale October Creating your own telephone network WHOLESALE CALLS LINE ASSOCIATED.
S-Curves & the Zero Bug Bounce:
Testing Workflow Purpose
Chapter 11, Testing, Part 2: Integration and System Testing
Interconnection Test Framework Josef Hammer jun. Marc Magrans de Abril · Christian Hartl · Thomas Themel · Franz Mittermayr 15 June 2011.
1 A Test Automation Tool For Java Applets Testing of Web Applications TATJA Program Demonstration Conclusions By Matthew Xuereb.
ABC Technology Project
Access Lesson 13 Programming in Access Microsoft Office 2010 Advanced Cable / Morrison 1.
© S Haughton more than 3?
© Charles van Marrewijk, An Introduction to Geographical Economics Brakman, Garretsen, and Van Marrewijk.
© Charles van Marrewijk, An Introduction to Geographical Economics Brakman, Garretsen, and Van Marrewijk.
© Charles van Marrewijk, An Introduction to Geographical Economics Brakman, Garretsen, and Van Marrewijk.
Component-Based Software Engineering Main issues: assemble systems out of (reusable) components compatibility of components.
Twenty Questions Subject: Twenty Questions
Linking Verb? Action Verb or. Question 1 Define the term: action verb.
Squares and Square Root WALK. Solve each problem REVIEW:
Lets play bingo!!. Calculate: MEAN Calculate: MEDIAN
Lecture 8: Testing, Verification and Validation
Past Tense Probe. Past Tense Probe Past Tense Probe – Practice 1.
Chapter 5 Test Review Sections 5-1 through 5-4.
SIMOCODE-DP Software.
GG Consulting, LLC I-SUITE. Source: TEA SHARS Frequently asked questions 2.
Addition 1’s to 20.
25 seconds left…...
Test B, 100 Subtraction Facts
Week 1.
Number bonds to 10,
Chapter 10: The Traditional Approach to Design
Systems Analysis and Design in a Changing World, Fifth Edition
We will resume in: 25 Minutes.
1 Unit 1 Kinematics Chapter 1 Day
TASK: Skill Development A proportional relationship is a set of equivalent ratios. Equivalent ratios have equal values using different numbers. Creating.
1 PART 1 ILLUSTRATION OF DOCUMENTS  Brief introduction to the documents contained in the envelope  Detailed clarification of the documents content.
How Cells Obtain Energy from Food
The PLASTIC Model to HUTN transformation tool UDA.
A Brief Introduction to Test- Driven Development Shawn M. Jones.
Unit testing C# classes “If it isn’t tested it doesn’t work” Unit testing C# classes1.
Test Driven Development
Presentation transcript:

Automated Testing Ted Driggs (tdriggs)

What Verify program behavior without human interaction Programmatically load and run test code on a wide array of systems 2

Why 3

4

1.Bugs are bad 2.Programs are big 3.Tests are boring 5

METHODS Types of automated testing 6

Test Harnesses A test harness is a program which executes test cases. Most unit-testing frameworks are test harnesses. 7

Test Harnesses The average test harness follows a pattern like the one at right. There is a single method which is called when test execution starts: This might be opening a connection to a database. For each test, setup and cleanup methods are run. These methods ensure that each test runs from a consistent state and that test failures are atomic. Once the tests are all run, the class cleanup method is run. This method ensures the class does not leave the system in an inconsistent state. 8

Data-Driven Tests Use configuration files to pass data to test methods. Frequently XML, but not always 9

Data-Driven Tests 4 This will be read by a factory class and transformed 5 into an object and will höpefully find lots of bugs. At left is the XML for a data-driven test using TAEF (the T est A uthoring and E xecution F ramework). Each test row is treated like a test from the previous test harnesses. 10

TOOLS Existing software 11

Java The premiere unit testing frame- work for Java is jUnit. Supported by a very good Eclipse plugin, jUnit was one of the first successful test harnesses. 12

C# and.NET C# is a newer language, but the similarity to Java means similar test capabilities. There are two options: nUnit, which is a port of jUnit for.NET, and the newer Microsoft Visual Studio Unit Test Framework. The former was widely used until recently, but the expanded feature set of the latter means it is likely to become dominant. 13

Javascript The most widely-used option for a unit-tests is JsUnitTest, which is based on Prototype.js. 14

Python In keeping with Pythons batteries included philosophy, the language comes with the unittest module. It behaves very similarly to the ones shown previously. 15

RECOMMENDED USE Source Control Integration 16

Source Control Tests are only good as long as they are actually being used. Source control can verify that new code passes existing automation. 17

Source Control WriteSubmitTestCommit 18

Source Control WriteSubmitTestCommit 19

Bad Ideas Test-driven development Opt-in testing (devs will not remember) 20

SUMMARY Final Remarks 21

Benefits Prevents feature regressions Limits risk of refactoring Increases tests code coverage Makes life easier for developer and tester 22