GUI Testing Chapter 19 GUI characteristic Figure 19.1 What is the - - PowerPoint PPT Presentation

gui testing chapter 19 gui characteristic
SMART_READER_LITE
LIVE PREVIEW

GUI Testing Chapter 19 GUI characteristic Figure 19.1 What is the - - PowerPoint PPT Presentation

GUI Testing Chapter 19 GUI characteristic Figure 19.1 What is the main characteristic of GUIs? GUI2 GUI characteristic 2 What is the main characteristic of GUIs? Event driven GUI3 Levels of testing What are the


slide-1
SLIDE 1

GUI Testing Chapter 19

slide-2
SLIDE 2

GUI–2

GUI characteristic

 What is the main characteristic of GUIs?

Figure 19.1

slide-3
SLIDE 3

GUI–3

GUI characteristic – 2

 What is the main characteristic of GUIs?

 Event driven

slide-4
SLIDE 4

GUI–4

Levels of testing

 What are the levels of testing?

slide-5
SLIDE 5

GUI–5

Levels of testing

 For GUIs what are the levels of testing?

 Unit testing  Integration testing  System level testing

slide-6
SLIDE 6

GUI–6

Unit testing – what

 For GUIs what are the levels of testing?

 Unit testing

 What do we test?

slide-7
SLIDE 7

GUI–7

Unit testing – what – 2

 For GUIs what are the levels of testing?

 Unit testing – what do we test?

 Button level  Text box level

slide-8
SLIDE 8

GUI–8

Unit testing – how

 How do we do unit testing?

slide-9
SLIDE 9

GUI–9

Unit testing – how – 2

 How do we do unit testing?

 Try clicking buttons and using text boxes  Visually compare with expected results

slide-10
SLIDE 10

GUI–10

Unit testing – difficulties

 What are the difficulties of unit testing?

slide-11
SLIDE 11

GUI–11

Unit testing – difficulties – 2

 What are the difficulties of unit testing?

 Distinguishing

 Output errors  Computation errors

 What else?

slide-12
SLIDE 12

GUI–12

Unit testing – difficulties – 3

 What are the difficulties of unit testing?

 Distinguishing

 Output errors  Computation errors

 Not easily repeatable  Seat of the pants testing  User input and observation errors

slide-13
SLIDE 13

GUI–13

Unit testing – overcome difficulties

 How do we overcome the difficulties?

slide-14
SLIDE 14

GUI–14

Unit testing – overcome difficulties – 2

 How do we overcome the difficulties?

 Automate with special drivers

slide-15
SLIDE 15

GUI–15

Unit testing – other considerations

 Other considerations?

slide-16
SLIDE 16

GUI–16

Unit testing – other considerations – 2

 Other considerations?

 Mode of implementation  What does this mean?

slide-17
SLIDE 17

GUI–17

Unit testing – other considerations – 3

 Other considerations?

 Mode of implementation

 Using GUI tools – Visual Basic

 E.g. do not need to test input/output at text box

level

 Text is stored correctly

 Writing custom Java classes

 E.g. need to test input/output at text box level  Is text stored correctly?

slide-18
SLIDE 18

GUI–18

Integration testing – what

 What are the levels of testing?

 Unit testing  Integration testing

 What do we do?

slide-19
SLIDE 19

GUI–19

Integration testing – what – 2

 What are the levels of testing?

 Unit testing  Integration testing

 Little to do for GUIs

slide-20
SLIDE 20

GUI–20

System testing – what

 What are the levels of testing?

 Unit testing  Integration testing  System testing

 What do we do?

slide-21
SLIDE 21

GUI–21

System testing – what – 2

 What are the levels of testing?

 Unit testing  Integration testing  System testing

 Exercise event paths

slide-22
SLIDE 22

GUI–22

Event paths

 How do we find event paths?

slide-23
SLIDE 23

GUI–23

Event paths – 2

 How do we find event paths?

 Build EDPNs

slide-24
SLIDE 24

GUI–24

EDPN build

 How do we build EDPNs?

slide-25
SLIDE 25

GUI–25

EDPN build – 2

 How do we build EDPNs?

 First build for atomic system functions

Figure 19.2

slide-26
SLIDE 26

GUI–26

EDPN build – 3

 How do we build EDPNs?

 First build for atomic system functions  Then?

slide-27
SLIDE 27

GUI–27

EDPN build – 4

 How do we build EDPNs?

 First build for atomic system functions  Combine into one

Figure 19.3

slide-28
SLIDE 28

GUI–28

EDPN use

 How do we use EDPNs?

slide-29
SLIDE 29

GUI–29

EDPN use – 2

 How do we use EDPNs?

 Look for coverage

slide-30
SLIDE 30

GUI–30

EDPN use – 3

 How do we use EDPNs?

 Look for coverage

 What types of coverage do we look for?

slide-31
SLIDE 31

GUI–31

EDPN use – 4

 How do we use EDPNs?

 Look for coverage

 Every atomic system function  Every input port  Every output port  Explore common threads  Explore abnormal user behaviour threads

slide-32
SLIDE 32

GUI–32

Atomic system function

 What are the problems with ASFs?

slide-33
SLIDE 33

GUI–33

Atomic system function – 2

 What are the problems with ASFs?

 Some do not have visible system-level output

 E.g. store US dollar amount

slide-34
SLIDE 34

GUI–34

Atomic system function – 3

 What are the problems with ASFs?

 Some do not have visible system-level output

 E.g. store US dollar amount

 What else?

slide-35
SLIDE 35

GUI–35

Atomic system function – 4

 What are the problems with ASFs?

 Determining what is an atomic system function

 Copy needs to have select first

 Is select an atomic function?  Is copy an atomic function?  Complicating / simplifying factor?

slide-36
SLIDE 36

GUI–36

Atomic system function – 5

What are the problems?

 Determining what is an atomic system function

 Copy needs to have select first

 Is select an atomic function?  Is copy an atomic function?  Complicating/simplifying factor?

 Grey out invalid buttons

 E.g. un-grey-out is an output of select  Un-greyed-out is a precondition of copy

 Forced navigation simplifies GUI use and testing

slide-37
SLIDE 37

GUI–37

Common threads

 Explore common threads

 What are the problems?

slide-38
SLIDE 38

GUI–38

Common threads – 2

 Explore common threads

 What are the problems?

 Determining what is common

slide-39
SLIDE 39

GUI–39

Common threads – 3

 Explore common threads

 What are the problems?

 Determining what is common

 How can it be done?

slide-40
SLIDE 40

GUI–40

Common threads – 4

 Explore common threads

 What are the problems?

 Determining what is common

 How can it be done?

 Gather usage patterns

slide-41
SLIDE 41

GUI–41

Abnormal behaviour

 Explore abnormal user behaviour threads

 What are the problems?

slide-42
SLIDE 42

GUI–42

Abnormal behaviour – 2

 Explore abnormal user behaviour

 Threads could be infinitely long and/or silly

 E.g. toggle between countries and then quit

 What else?

slide-43
SLIDE 43

GUI–43

Abnormal behaviour – 3

 Explore abnormal user behaviour

 Threads could be infinitely long and/or silly

 E.g. toggle between countries and then quit  Interaction with other processes