Presentation is loading. Please wait.

Presentation is loading. Please wait.

Lec 15 Testing GUIs 1 CSCE 747 Fall 2013 CSCE 747 Software Testing and Quality Assurance Lecture 15 GUI Testing 10/21/2013 1.

Similar presentations


Presentation on theme: "Lec 15 Testing GUIs 1 CSCE 747 Fall 2013 CSCE 747 Software Testing and Quality Assurance Lecture 15 GUI Testing 10/21/2013 1."— Presentation transcript:

1 Lec 15 Testing GUIs 1 CSCE 747 Fall 2013 CSCE 747 Software Testing and Quality Assurance Lecture 15 GUI Testing 10/21/2013 1

2 Lec 15 Testing GUIs 2 CSCE 747 Fall 2013 A Little more Ham(crest) anyone?  http://hamcrest.org/JavaHamcrest/javadoc/1.3/ http://hamcrest.org/JavaHamcrest/javadoc/1.3/ Class Summary AllOf Calculates the logical conjunction of multiple matchers. AnyOf Calculates the logical disjunction of multiple matchers. CombinableMatcher CombinableMatcher.CombinableBothMatcher CombinableMatcher.CombinableEitherMatcher DescribedAs Provides a custom description to another matcher. Every Is Decorates another Matcher, retaining the behaviour but allowing tests to be slightly more expressive.

3 Lec 15 Testing GUIs 3 CSCE 747 Fall 2013 Hamcrest Core continued IsAnything A matcher that always returns true. IsCollectionContaining IsEqual Is the value equal to another value, as tested by the Object.equals(java.lang.Object) invokedMethod? IsInstanceOfTests whether the value is an instance of a class. IsNot Calculates the logical negation of a matcher. IsNull Is the value null? IsSame Is the value the same object as another value? StringContains Tests if the argument is a string that contains a substring. StringEndsWith Tests if the argument is a string that contains a substring. StringStartsWith Tests if the argument is a string that contains a substring. SubstringMatcher http://hamcrest.org/JavaHamcrest/javadoc/1.3/

4 Lec 15 Testing GUIs 4 CSCE 747 Fall 2013 Overview of GUI Testing  Chapter 19 of text  event-driven nature  events  callbacks  UML of little help with event based systems  The Currency Conversion Program

5 Lec 15 Testing GUIs 5 CSCE 747 Fall 2013 The Currency Conversion Program  GUI

6 Lec 15 Testing GUIs 6 CSCE 747 Fall 2013

7 Lec 15 Testing GUIs 7 CSCE 747 Fall 2013 Integration Testing for the Currency Conversion Program

8 Lec 15 Testing GUIs 8 CSCE 747 Fall 2013

9 Lec 15 Testing GUIs 9 CSCE 747 Fall 2013 Refactored

10 Lec 15 Testing GUIs 10 CSCE 747 Fall 2013 Event Driven Petri Nets (EDPN)  System Testing for the Currency Conversion Program

11 Lec 15 Testing GUIs 11 CSCE 747 Fall 2013 Input Events

12 Lec 15 Testing GUIs 12 CSCE 747 Fall 2013 Output Events

13 Lec 15 Testing GUIs 13 CSCE 747 Fall 2013 What set of threads exercise a set of threads that:  Use every atomic system function  Use every port input  Use every port output

14 Lec 15 Testing GUIs 14 CSCE 747 Fall 2013 Threads with ASF sequences  T1 =  T2 =  T3 =  T4 =

15 Lec 15 Testing GUIs 15 CSCE 747 Fall 2013  T5 =  is a good example, where the user  converts a U.S. dollar amount to each of the four currencies,  then clears the screen and  quits.

16 Lec 15 Testing GUIs 16 CSCE 747 Fall 2013 Atomic System Functions

17 Lec 15 Testing GUIs 17 CSCE 747 Fall 2013 Petri Net Fig 4.9  Before Firing  After firing Page 66 Jorgenson, Software Testing

18 Lec 15 Testing GUIs 18 CSCE 747 Fall 2013 Event-Driven Petri Nets (EDPNs)  EDPN=(P, D, S, In, Out)  P set of ports  D set of data places  S a set of transitions  In subset of (P U D) x S  Out subset of S x (P U D)

19 Lec 15 Testing GUIs 19 CSCE 747 Fall 2013 EDPN – Windshield Wiper Control

20 Lec 15 Testing GUIs 20 CSCE 747 Fall 2013 Fig 19.2 EDPNs of atomic system functions

21 Lec 15 Testing GUIs 21 CSCE 747 Fall 2013

22 Lec 15 Testing GUIs 22 CSCE 747 Fall 2013

23 Lec 15 Testing GUIs 23 CSCE 747 Fall 2013

24 Lec 15 Testing GUIs 24 CSCE 747 Fall 2013

25 Lec 15 Testing GUIs 25 CSCE 747 Fall 2013

26 Lec 15 Testing GUIs 26 CSCE 747 Fall 2013 Composition of four ASFs

27 Lec 15 Testing GUIs 27 CSCE 747 Fall 2013

28 Lec 15 Testing GUIs 28 CSCE 747 Fall 2013

29 Lec 15 Testing GUIs 29 CSCE 747 Fall 2013


Download ppt "Lec 15 Testing GUIs 1 CSCE 747 Fall 2013 CSCE 747 Software Testing and Quality Assurance Lecture 15 GUI Testing 10/21/2013 1."

Similar presentations


Ads by Google