automating software testing - myths, benefits and tools

30
1 Automating Software Testing Myths, Benefits and Tools Phil Robinson LonsdaleSystems.com

Upload: phil-robinson

Post on 29-Nov-2014

2.207 views

Category:

Technology


4 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Automating Software Testing - Myths, Benefits and Tools

LonsdaleSystems.com 1

Automating Software TestingMyths, Benefits and Tools

Phil Robinson

LonsdaleSystems.com

Page 2: Automating Software Testing - Myths, Benefits and Tools

LonsdaleSystems.com 2

Mechanical Testing

Test equipment

System under test

Page 3: Automating Software Testing - Myths, Benefits and Tools

LonsdaleSystems.com 3

Electrical Testing

Test equipment

System under test

Page 4: Automating Software Testing - Myths, Benefits and Tools

LonsdaleSystems.com 4

ElectricalTest Automation

• Benefits– Large volume of tests– Feasibility of manual tests– Test throughput– Accuracy of results

• Costs– Equipment– Setup– Maintenance

Page 5: Automating Software Testing - Myths, Benefits and Tools

LonsdaleSystems.com 5

Software Testing

Test equipment System under test

Page 6: Automating Software Testing - Myths, Benefits and Tools

LonsdaleSystems.com 6

Software Test Automation

• Magic• Expensive

Page 7: Automating Software Testing - Myths, Benefits and Tools

LonsdaleSystems.com 7

Benefits of Test Automation

• Faster test throughput• After hours testing• Better use of testers time• Improved test accuracy• Reduced effort in some areas

Page 8: Automating Software Testing - Myths, Benefits and Tools

LonsdaleSystems.com 8

Cost of Test Automation

• Tool selection, acquisition and implementation costs

• Support and maintenance• Training costs• Increased effort in some areas

Page 9: Automating Software Testing - Myths, Benefits and Tools

LonsdaleSystems.com 9

Acquisition Costswww.opensourcetesting.org

Page 10: Automating Software Testing - Myths, Benefits and Tools

LonsdaleSystems.com 10

Increase/Reduction in Effort

• Less effort to specify tests

• Labour intensive to execute tests

• Labour intensive to repeat tests

• Some tests are impractical

• Labour intensive to specify tests

• Less effort to execute tests

• Less effort to repeat tests

Manual

Automated

Page 11: Automating Software Testing - Myths, Benefits and Tools

LonsdaleSystems.com 11

Two Compelling Drivers For Test Automation

The need for repetitive test execution

Manual execution of some tests is

impractical

Page 12: Automating Software Testing - Myths, Benefits and Tools

LonsdaleSystems.com 12

Test Automation as an Investment Decision

Costs

Benefits

Page 13: Automating Software Testing - Myths, Benefits and Tools

LonsdaleSystems.com 13

Test Automation Risks

• Insufficient time and resources

• Lack of skills• Volatile requirements• Requirements difficult

to test• Changing technology

Page 14: Automating Software Testing - Myths, Benefits and Tools

LonsdaleSystems.com 14

Test Automation Myths

• Capture-replay – Automates testing– Replaces skilled testers

• Testing can be fully automated• One test tool is suitable for all tasks• Tools are “easy to use”• Immediate reduction in effort

Page 15: Automating Software Testing - Myths, Benefits and Tools

LonsdaleSystems.com 15

Test Automation Toolswww.autoitscript.com

Page 16: Automating Software Testing - Myths, Benefits and Tools

LonsdaleSystems.com 16

Test Automation Toolsseleniumhq.org

!!!!

Page 17: Automating Software Testing - Myths, Benefits and Tools

LonsdaleSystems.com 17

Test Automation Toolsfit.c2.com

Page 18: Automating Software Testing - Myths, Benefits and Tools

LonsdaleSystems.com 18

Test Automation Strategies

• Capture replay• Test scripts• Data driven• Keyword driven

Page 19: Automating Software Testing - Myths, Benefits and Tools

LonsdaleSystems.com 19

Capture Replay Demo

Page 20: Automating Software Testing - Myths, Benefits and Tools

LonsdaleSystems.com 20

Capture Replay Issues

• Test data hard-coded in script• Sensitive to changes in the user interface• No comparison of expected and actual results• Re-capture takes as long as the original capture• Hard to manage many small isolated scripts

Page 21: Automating Software Testing - Myths, Benefits and Tools

LonsdaleSystems.com 21

Test Automation Strategies

• Capture replay• Test scripts• Data driven• Keyword driven

Page 22: Automating Software Testing - Myths, Benefits and Tools

LonsdaleSystems.com 22

Test Script Demo

Page 23: Automating Software Testing - Myths, Benefits and Tools

LonsdaleSystems.com 23

Test Script Issues

• Test data hard-coded in script• Expected result hard-coded in script• Hard to manage many small isolated scripts• Format of the data is hard-coded• Each test requires a script• Need a control script to sequence and launch

test scripts• Logging of test results embedded in every script• Lack of reuse in scripts

Page 24: Automating Software Testing - Myths, Benefits and Tools

LonsdaleSystems.com 24

Test Automation Strategies

• Capture replay• Test scripts• Data driven• Keyword driven

Page 25: Automating Software Testing - Myths, Benefits and Tools

LonsdaleSystems.com 25

Data Driven Demo

Page 26: Automating Software Testing - Myths, Benefits and Tools

LonsdaleSystems.com 26

Data Driven Issues

• Format of the data is hard-coded• Each data format requires a script• Comparison of expected and actual results split

between test data and script• Need a control script to sequence and launch

test scripts• Logging of test results embedded in every script• Dependency between test cases is hard-coded

in the control script• Lack of reuse in scripts

Page 27: Automating Software Testing - Myths, Benefits and Tools

LonsdaleSystems.com 27

Test Automation Strategies

• Capture replay• Test scripts• Data driven• Keyword driven

Page 28: Automating Software Testing - Myths, Benefits and Tools

LonsdaleSystems.com 28

Keyword Driven Demo

Page 29: Automating Software Testing - Myths, Benefits and Tools

LonsdaleSystems.com 29

Keyword Driven Issues

• Need a control script to sequence and launch test scripts

• Logging of test results embedded in every script• Dependency between test cases is hard-coded

in the control script

Page 30: Automating Software Testing - Myths, Benefits and Tools

LonsdaleSystems.com 30

Automating Software TestingMyths, Benefits and Tools

Questions

conference.lonsdalesystems.com

LonsdaleSystems.com