SlideShare une entreprise Scribd logo
1  sur  37
Télécharger pour lire hors ligne
programs testing programs
                GUI-based test automation




1st Friday – 02.03.2012
Sascha Bartels


                                            1
1.   What‘s „test automation“?
2.   Why do you do that?
3.   How do I know, that I‘m doing it right?
4.   Is our test automation cool?




                                               2
01 | WHAT‘S „TEST AUTOMATION“?




                                 3
A user browses with his browser on PokerStrategy.com




                                                       4
regression tests before each release of PokerStrategy.com




                                                            5
02 | WHY DO YOU DO THAT?



                           6
Possible objectives of test automation:

-   find more bugs
-   nightly regression tests
-   reduce testing staff
-   shorter test periods
-   test more



Frequent problems of test automation: [1]

1. unrealistic expectations (of the management)
2. poor testing processes („Automating chaos just gives faster chaos“)
   ... etc.

Let us examine our goals more exactly!

1: Software Test Automation Effective use of test execution tools – Dorothy Graham & Mark Fewster

                                                                                                    7
find more bugs

the idea:
manual testing finds bugs

automated tests are faster than manual
tests

so automated tests find more bugs




                                         8
find more bugs

the practice:
- automated tests are repeated tests

- looks for unexpected side effects

- so automated tests can find
more regression bugs

- testers have more time for manual
tests

- poor tests are not getting better by
automating them


                                         9
nightly regression tests

the idea:

There are unused ressources
(like test systems e.g.)

We could run automated tests „while
we sleep“




                                      10
nightly regression tests

the practice:

the correct tests have to be selected

test results need to be analyzed




                                        11
reduce testing staff

the idea:

The automation tool costs money, so we
should be able to save somewhere
else

We want to reduce costs and staff
is expensive




                                         12
reduce testing staff

the practice:

tests have to be automated and maintained

test results must be analysed

test automation can make work easier
for testers




                                            13
shorter test periods

the idea:

reduce deadline pressure

testing is a „bottleneck“, so we will save
time there




                                             14
shorter test periods

the practice:

the goal can be achieved more easily:
run fewer tests, omit long tests,
cut regression testing

Automated tests take time:
 creation and maintenance of test
   cases
 analysis of test results

software quality has the greatest influence on the time needed
for testing

                                                                 15
test more

the idea:

achieve a better test coverage

testing is good, so more testing
has to be better




                                   16
test more

the practice:

unimportant tests produce more
Maintenance instead of being gainful

some tests require higher
automation effort,
e.g. for technical reasons




                                       17
Possible realistic objectives

     -    find more regression bugs
     -    automate the most importants tests
     -    a useful amount of tests run at night and / or weekend
     -    relieve testers and support manual testing

     It is important to know why you automate, so you know what and how to
     automate.

     Objectives of testing should not get mixed up with the objectives of
     automation.

     Test automation is not a tool against bad test practices




That‘s No Reason To Automate! Why Good Objectvies Are Critical to Test Execution Automation – Dorothy Graham and Mark Fewster
                                                                                                                                18
04 | HOW DO I KNOW, THAT I‘M DOING
IT RIGHT?


                                     19
measuring

metrics

Depending on the objective and the initial situation other metrics are
important.




                                              Does this one consume as much petrol
                                              as this?
     Will this car fit into my garage?
                                                      Yes?
                                         There might be a hole in the tank.

                                                                                     20
1. DDP– Defect Detection Percentage

Is the relation between found and currently known bugs.

Example: A release contains 100 new bugs, the test run finds 70 bugs:
   DDP: 70%

Weaknesses in this approach:
1. The absolute amount of bugs is unknown.
2. It is unknown at what time a bug has come into the product.
3. Not all bugs are equally critical.
4. Not all bugs are equally difficult to find.
5. No reflection of the absolute count.

It is easy to determine this measure and it can have a high significance.




                                                                            21
1. ROI – Return on investment for process optimization

                                           current process   optimized process
Costs of test execution                    10 000 €          20 000€

DDP                                        70%               90%
found bugs                                 700               900
bugfixing (100 € per bug)                  70 000 €          90 000 €

bugs found after release                   300               100

bugfixing after release (1000 € per bug)   300 000 €         100 000 €


total costs                                380 000 €         210 000 €

savings: 170 000 € investment: 10 000€
ROI (savings/investment): 1700%
                                                                                 22
1. ROI – Return on investment in test automation

                                        manual testing   automated testing
Costs for test case design              6 000 €          6 000 €

costs for automation                    0                16 000 €
total one-time expenses                 6 000 €          22 000€
costs for test execution                5 000 €          1 000 €
amount of test execution cycles         3                3

costs per release                       15 000 €         3 000 €

total costs of 4 releases a year        66 000 €         34 000 €



savings per year: 32 000 € investment: 16 000€
ROI (savings/investment): 200%
                                                                             23
My test automation
is much cooler than
      yours!




                      24
How do you get that idea?

- I have a lot of test cases
- which run every night for several
   hours
- and provide lots of test results




                                      25
- Well, I have:

- saved more hours of manual testing
(effectiveness)

- spent less time on test case
maintenance (maintainability)

- more bugtickets per fault report
(reliability)

- less training time for new employees
(usability)




                                         26
Hm…

- I need to edit many tests for each
release, so that they can be
executed

- I need 4 hours a day to analyse
my logs files

- if I find a bug, it is most likely
caused by my test environment

- my new colleagues need 2 weeks
of training before they can help me

- and after every release we have
to fix many bugs that were missed
during testing


                                       27
And then I have:

- less effort to find the test case that
tests a specific range (flexibility)

- fewer test cases blocked by the same
software bug (robustness)

- less effort to run test cases on
different test environments
(portability)




                                           28
29
05 | IS OUR TEST AUTOMATION COOL?



                                    30
We have 18 test suites for:

-   conversion path tests, submit poker accounts, support ticket system,
    fraud check, upload images, buy points packages, video section…
-   865 performed tests
-   9 hours test run every night

However, we have two test systems (integration and system test) and almost
all tests run in Internet Explorer and Firefox.

-   about 3400 test executions
-   36 hours of test runs in total
-   5 virtual machines for test execution




                                                                             31
1. maintainability

central master suite with:
- object repository
- procedures for common test steps (e.g. login)




                                                  32
2. efficiency

-   before the introduction of test automation:
    12 hours of manual regression testing for each release and test
    environment
-   today:
    4 hours of manual regression testing for each release and test
    environment

3. reliability

solved problems with external dependencies (Facebook, Google ...)
- requests are routed via the host file on an internal web server
- answers with 1x1 pixel images or empty responses to scripts




                                                                      33
4. flexibility
- a test suite per functional section
- each test suite can be started by pressing a button in Jenkins
- free choice of browser and the test environment

5. usability
- graphical abstraction of test scripts in QF-Test
- using Jython or Groovy scripts (database access, HTML)

6. robustness
- 3 test suites are currently on “failed", there are 2 bugtickets
- a test suite is unfortunately affected by a bug in Firefox




                                                                    34
7. portability

-   choice of the test environment and the browser via parameter
-   at the moment QF-Test supports only Internet Explorer and Firefox




                                                                        35
Any questions?




                 36
ICANS GmbH
Valentinskamp 18
20354 Hamburg
Germany


Phone:    +49 40 22 63 82 9-0
Fax:      +49 40 38 67 15 92


Web: www.icans-gmbh.com




                                37

Contenu connexe

Tendances

Simple Unit Testing With Netbeans 6.1
Simple Unit Testing With Netbeans 6.1Simple Unit Testing With Netbeans 6.1
Simple Unit Testing With Netbeans 6.1Kiki Ahmadi
 
Kill the mutants - A better way to test your tests
Kill the mutants - A better way to test your testsKill the mutants - A better way to test your tests
Kill the mutants - A better way to test your testsRoy van Rijn
 
MTLM Visual Studio 2010 ALM workshop - day1
MTLM Visual Studio 2010 ALM workshop  - day1MTLM Visual Studio 2010 ALM workshop  - day1
MTLM Visual Studio 2010 ALM workshop - day1Clemens Reijnen
 
Unit testing with Junit
Unit testing with JunitUnit testing with Junit
Unit testing with JunitValerio Maggio
 
05 junit
05 junit05 junit
05 junitmha4
 
Kill the mutants and test your tests - Roy van Rijn
Kill the mutants and test your tests - Roy van RijnKill the mutants and test your tests - Roy van Rijn
Kill the mutants and test your tests - Roy van RijnNLJUG
 
Test driven development and unit testing with examples in C++
Test driven development and unit testing with examples in C++Test driven development and unit testing with examples in C++
Test driven development and unit testing with examples in C++Hong Le Van
 
Mutation Testing and MuJava
Mutation Testing and MuJavaMutation Testing and MuJava
Mutation Testing and MuJavaKrunal Parmar
 

Tendances (20)

Unit testing with JUnit
Unit testing with JUnitUnit testing with JUnit
Unit testing with JUnit
 
JUNit Presentation
JUNit PresentationJUNit Presentation
JUNit Presentation
 
Simple Unit Testing With Netbeans 6.1
Simple Unit Testing With Netbeans 6.1Simple Unit Testing With Netbeans 6.1
Simple Unit Testing With Netbeans 6.1
 
Junit
JunitJunit
Junit
 
Kill the mutants - A better way to test your tests
Kill the mutants - A better way to test your testsKill the mutants - A better way to test your tests
Kill the mutants - A better way to test your tests
 
MTLM Visual Studio 2010 ALM workshop - day1
MTLM Visual Studio 2010 ALM workshop  - day1MTLM Visual Studio 2010 ALM workshop  - day1
MTLM Visual Studio 2010 ALM workshop - day1
 
Unit testing with Junit
Unit testing with JunitUnit testing with Junit
Unit testing with Junit
 
05 junit
05 junit05 junit
05 junit
 
Introduction to JUnit
Introduction to JUnitIntroduction to JUnit
Introduction to JUnit
 
Junit
JunitJunit
Junit
 
JUnit 4
JUnit 4JUnit 4
JUnit 4
 
Testing with Junit4
Testing with Junit4Testing with Junit4
Testing with Junit4
 
JUnit Presentation
JUnit PresentationJUnit Presentation
JUnit Presentation
 
Junit 4.0
Junit 4.0Junit 4.0
Junit 4.0
 
Junit
JunitJunit
Junit
 
3 j unit
3 j unit3 j unit
3 j unit
 
Unit testing with java
Unit testing with javaUnit testing with java
Unit testing with java
 
Kill the mutants and test your tests - Roy van Rijn
Kill the mutants and test your tests - Roy van RijnKill the mutants and test your tests - Roy van Rijn
Kill the mutants and test your tests - Roy van Rijn
 
Test driven development and unit testing with examples in C++
Test driven development and unit testing with examples in C++Test driven development and unit testing with examples in C++
Test driven development and unit testing with examples in C++
 
Mutation Testing and MuJava
Mutation Testing and MuJavaMutation Testing and MuJava
Mutation Testing and MuJava
 

En vedette

Realtime web apps mit node.js
Realtime web apps mit node.jsRealtime web apps mit node.js
Realtime web apps mit node.jsICANS GmbH
 
Film poster deconstruction
Film poster deconstructionFilm poster deconstruction
Film poster deconstructionchloeanne94
 
Music magazine photoshoot
Music magazine photoshootMusic magazine photoshoot
Music magazine photoshootchloeanne94
 
Film poster deconstruction
Film poster deconstructionFilm poster deconstruction
Film poster deconstructionchloeanne94
 
Evaluation of Questionnaire results
Evaluation of Questionnaire resultsEvaluation of Questionnaire results
Evaluation of Questionnaire resultschloeanne94
 
Photoshop print screens
Photoshop print screensPhotoshop print screens
Photoshop print screenschloeanne94
 
Film poster deconstruction
Film poster deconstructionFilm poster deconstruction
Film poster deconstructionchloeanne94
 
Film magazine front cover destruction
Film magazine front cover destructionFilm magazine front cover destruction
Film magazine front cover destructionchloeanne94
 
Log everything!
Log everything!Log everything!
Log everything!ICANS GmbH
 
Brand elevator pitch
Brand elevator pitchBrand elevator pitch
Brand elevator pitchTanya Miller
 

En vedette (19)

#contentABC
#contentABC#contentABC
#contentABC
 
Realtime web apps mit node.js
Realtime web apps mit node.jsRealtime web apps mit node.js
Realtime web apps mit node.js
 
Plan at a Glance
Plan at a GlancePlan at a Glance
Plan at a Glance
 
Film poster deconstruction
Film poster deconstructionFilm poster deconstruction
Film poster deconstruction
 
Own images
Own imagesOwn images
Own images
 
Music magazine photoshoot
Music magazine photoshootMusic magazine photoshoot
Music magazine photoshoot
 
M is for money
M is for moneyM is for money
M is for money
 
Film poster deconstruction
Film poster deconstructionFilm poster deconstruction
Film poster deconstruction
 
Evaluation of Questionnaire results
Evaluation of Questionnaire resultsEvaluation of Questionnaire results
Evaluation of Questionnaire results
 
Pie charts
Pie chartsPie charts
Pie charts
 
Photoshop print screens
Photoshop print screensPhotoshop print screens
Photoshop print screens
 
Own images
Own imagesOwn images
Own images
 
Film poster deconstruction
Film poster deconstructionFilm poster deconstruction
Film poster deconstruction
 
Wight noise
Wight noiseWight noise
Wight noise
 
Pie charts
Pie chartsPie charts
Pie charts
 
Film magazine front cover destruction
Film magazine front cover destructionFilm magazine front cover destruction
Film magazine front cover destruction
 
PHP Sucks?!
PHP Sucks?!PHP Sucks?!
PHP Sucks?!
 
Log everything!
Log everything!Log everything!
Log everything!
 
Brand elevator pitch
Brand elevator pitchBrand elevator pitch
Brand elevator pitch
 

Similaire à programs testing programs

Automated Software Testing Framework Training by Quontra Solutions
Automated Software Testing Framework Training by Quontra SolutionsAutomated Software Testing Framework Training by Quontra Solutions
Automated Software Testing Framework Training by Quontra SolutionsQuontra Solutions
 
6months industrial training in software testing, jalandhar
6months industrial training in software testing, jalandhar6months industrial training in software testing, jalandhar
6months industrial training in software testing, jalandhardeepikakaler1
 
6 weeks summer training in software testing,ludhiana
6 weeks summer training in software testing,ludhiana6 weeks summer training in software testing,ludhiana
6 weeks summer training in software testing,ludhianadeepikakaler1
 
6 weeks summer training in software testing,jalandhar
6 weeks summer training in software testing,jalandhar6 weeks summer training in software testing,jalandhar
6 weeks summer training in software testing,jalandhardeepikakaler1
 
6months industrial training in software testing, ludhiana
6months industrial training in software testing, ludhiana6months industrial training in software testing, ludhiana
6months industrial training in software testing, ludhianadeepikakaler1
 
Software testing mtech project in jalandhar
Software testing mtech project in jalandharSoftware testing mtech project in jalandhar
Software testing mtech project in jalandhardeepikakaler1
 
Software testing mtech project in ludhiana
Software testing mtech project in ludhianaSoftware testing mtech project in ludhiana
Software testing mtech project in ludhianadeepikakaler1
 
Automation testing interview pdf org
Automation testing interview pdf orgAutomation testing interview pdf org
Automation testing interview pdf orgTestbytes
 
Automation Responsibility
Automation ResponsibilityAutomation Responsibility
Automation ResponsibilityZbyszek Mockun
 
How to make Automation an asset for Organization
How to make Automation an asset for OrganizationHow to make Automation an asset for Organization
How to make Automation an asset for Organizationanuvip
 
Open Source tools in Continuous Integration environment (case study for agil...
Open Source tools in Continuous Integration environment  (case study for agil...Open Source tools in Continuous Integration environment  (case study for agil...
Open Source tools in Continuous Integration environment (case study for agil...suwalki24.pl
 
Continuous Integration testing based on Selenium and Hudson
Continuous Integration testing based on Selenium and HudsonContinuous Integration testing based on Selenium and Hudson
Continuous Integration testing based on Selenium and HudsonZbyszek Mockun
 
Creating testing tools to support development
Creating testing tools to support developmentCreating testing tools to support development
Creating testing tools to support developmentChema del Barco
 
Automated testing handbook from Linda Hayes
Automated testing handbook from Linda HayesAutomated testing handbook from Linda Hayes
Automated testing handbook from Linda HayesCristiano Caetano
 
Lecture (Software Testing).pptx
Lecture (Software Testing).pptxLecture (Software Testing).pptx
Lecture (Software Testing).pptxskknowledge
 
Seretta Gamba - A Sneaky Way to Introduce More Automated Testing
Seretta Gamba - A Sneaky Way to Introduce More Automated TestingSeretta Gamba - A Sneaky Way to Introduce More Automated Testing
Seretta Gamba - A Sneaky Way to Introduce More Automated TestingTEST Huddle
 
Top Ten Tips for Tackling Test Automation Webinar Presentation.pptx
Top Ten Tips for Tackling Test Automation Webinar Presentation.pptxTop Ten Tips for Tackling Test Automation Webinar Presentation.pptx
Top Ten Tips for Tackling Test Automation Webinar Presentation.pptxInflectra
 
Combinatorial testing
Combinatorial testingCombinatorial testing
Combinatorial testingKedar Kumar
 

Similaire à programs testing programs (20)

Automated Software Testing Framework Training by Quontra Solutions
Automated Software Testing Framework Training by Quontra SolutionsAutomated Software Testing Framework Training by Quontra Solutions
Automated Software Testing Framework Training by Quontra Solutions
 
6months industrial training in software testing, jalandhar
6months industrial training in software testing, jalandhar6months industrial training in software testing, jalandhar
6months industrial training in software testing, jalandhar
 
6 weeks summer training in software testing,ludhiana
6 weeks summer training in software testing,ludhiana6 weeks summer training in software testing,ludhiana
6 weeks summer training in software testing,ludhiana
 
6 weeks summer training in software testing,jalandhar
6 weeks summer training in software testing,jalandhar6 weeks summer training in software testing,jalandhar
6 weeks summer training in software testing,jalandhar
 
6months industrial training in software testing, ludhiana
6months industrial training in software testing, ludhiana6months industrial training in software testing, ludhiana
6months industrial training in software testing, ludhiana
 
Software testing mtech project in jalandhar
Software testing mtech project in jalandharSoftware testing mtech project in jalandhar
Software testing mtech project in jalandhar
 
Software testing mtech project in ludhiana
Software testing mtech project in ludhianaSoftware testing mtech project in ludhiana
Software testing mtech project in ludhiana
 
Automation testing interview pdf org
Automation testing interview pdf orgAutomation testing interview pdf org
Automation testing interview pdf org
 
Automation Responsibility
Automation ResponsibilityAutomation Responsibility
Automation Responsibility
 
How to make Automation an asset for Organization
How to make Automation an asset for OrganizationHow to make Automation an asset for Organization
How to make Automation an asset for Organization
 
Wso2con test-automation
Wso2con test-automationWso2con test-automation
Wso2con test-automation
 
Open Source tools in Continuous Integration environment (case study for agil...
Open Source tools in Continuous Integration environment  (case study for agil...Open Source tools in Continuous Integration environment  (case study for agil...
Open Source tools in Continuous Integration environment (case study for agil...
 
Continuous Integration testing based on Selenium and Hudson
Continuous Integration testing based on Selenium and HudsonContinuous Integration testing based on Selenium and Hudson
Continuous Integration testing based on Selenium and Hudson
 
Creating testing tools to support development
Creating testing tools to support developmentCreating testing tools to support development
Creating testing tools to support development
 
Automated testing handbook from Linda Hayes
Automated testing handbook from Linda HayesAutomated testing handbook from Linda Hayes
Automated testing handbook from Linda Hayes
 
Lecture (Software Testing).pptx
Lecture (Software Testing).pptxLecture (Software Testing).pptx
Lecture (Software Testing).pptx
 
Seretta Gamba - A Sneaky Way to Introduce More Automated Testing
Seretta Gamba - A Sneaky Way to Introduce More Automated TestingSeretta Gamba - A Sneaky Way to Introduce More Automated Testing
Seretta Gamba - A Sneaky Way to Introduce More Automated Testing
 
Chapter 10
Chapter 10Chapter 10
Chapter 10
 
Top Ten Tips for Tackling Test Automation Webinar Presentation.pptx
Top Ten Tips for Tackling Test Automation Webinar Presentation.pptxTop Ten Tips for Tackling Test Automation Webinar Presentation.pptx
Top Ten Tips for Tackling Test Automation Webinar Presentation.pptx
 
Combinatorial testing
Combinatorial testingCombinatorial testing
Combinatorial testing
 

Dernier

Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxBkGupta21
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 

Dernier (20)

Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 

programs testing programs

  • 1. programs testing programs GUI-based test automation 1st Friday – 02.03.2012 Sascha Bartels 1
  • 2. 1. What‘s „test automation“? 2. Why do you do that? 3. How do I know, that I‘m doing it right? 4. Is our test automation cool? 2
  • 3. 01 | WHAT‘S „TEST AUTOMATION“? 3
  • 4. A user browses with his browser on PokerStrategy.com 4
  • 5. regression tests before each release of PokerStrategy.com 5
  • 6. 02 | WHY DO YOU DO THAT? 6
  • 7. Possible objectives of test automation: - find more bugs - nightly regression tests - reduce testing staff - shorter test periods - test more Frequent problems of test automation: [1] 1. unrealistic expectations (of the management) 2. poor testing processes („Automating chaos just gives faster chaos“) ... etc. Let us examine our goals more exactly! 1: Software Test Automation Effective use of test execution tools – Dorothy Graham & Mark Fewster 7
  • 8. find more bugs the idea: manual testing finds bugs automated tests are faster than manual tests so automated tests find more bugs 8
  • 9. find more bugs the practice: - automated tests are repeated tests - looks for unexpected side effects - so automated tests can find more regression bugs - testers have more time for manual tests - poor tests are not getting better by automating them 9
  • 10. nightly regression tests the idea: There are unused ressources (like test systems e.g.) We could run automated tests „while we sleep“ 10
  • 11. nightly regression tests the practice: the correct tests have to be selected test results need to be analyzed 11
  • 12. reduce testing staff the idea: The automation tool costs money, so we should be able to save somewhere else We want to reduce costs and staff is expensive 12
  • 13. reduce testing staff the practice: tests have to be automated and maintained test results must be analysed test automation can make work easier for testers 13
  • 14. shorter test periods the idea: reduce deadline pressure testing is a „bottleneck“, so we will save time there 14
  • 15. shorter test periods the practice: the goal can be achieved more easily: run fewer tests, omit long tests, cut regression testing Automated tests take time:  creation and maintenance of test cases  analysis of test results software quality has the greatest influence on the time needed for testing 15
  • 16. test more the idea: achieve a better test coverage testing is good, so more testing has to be better 16
  • 17. test more the practice: unimportant tests produce more Maintenance instead of being gainful some tests require higher automation effort, e.g. for technical reasons 17
  • 18. Possible realistic objectives - find more regression bugs - automate the most importants tests - a useful amount of tests run at night and / or weekend - relieve testers and support manual testing It is important to know why you automate, so you know what and how to automate. Objectives of testing should not get mixed up with the objectives of automation. Test automation is not a tool against bad test practices That‘s No Reason To Automate! Why Good Objectvies Are Critical to Test Execution Automation – Dorothy Graham and Mark Fewster 18
  • 19. 04 | HOW DO I KNOW, THAT I‘M DOING IT RIGHT? 19
  • 20. measuring metrics Depending on the objective and the initial situation other metrics are important. Does this one consume as much petrol as this? Will this car fit into my garage? Yes? There might be a hole in the tank. 20
  • 21. 1. DDP– Defect Detection Percentage Is the relation between found and currently known bugs. Example: A release contains 100 new bugs, the test run finds 70 bugs: DDP: 70% Weaknesses in this approach: 1. The absolute amount of bugs is unknown. 2. It is unknown at what time a bug has come into the product. 3. Not all bugs are equally critical. 4. Not all bugs are equally difficult to find. 5. No reflection of the absolute count. It is easy to determine this measure and it can have a high significance. 21
  • 22. 1. ROI – Return on investment for process optimization current process optimized process Costs of test execution 10 000 € 20 000€ DDP 70% 90% found bugs 700 900 bugfixing (100 € per bug) 70 000 € 90 000 € bugs found after release 300 100 bugfixing after release (1000 € per bug) 300 000 € 100 000 € total costs 380 000 € 210 000 € savings: 170 000 € investment: 10 000€ ROI (savings/investment): 1700% 22
  • 23. 1. ROI – Return on investment in test automation manual testing automated testing Costs for test case design 6 000 € 6 000 € costs for automation 0 16 000 € total one-time expenses 6 000 € 22 000€ costs for test execution 5 000 € 1 000 € amount of test execution cycles 3 3 costs per release 15 000 € 3 000 € total costs of 4 releases a year 66 000 € 34 000 € savings per year: 32 000 € investment: 16 000€ ROI (savings/investment): 200% 23
  • 24. My test automation is much cooler than yours! 24
  • 25. How do you get that idea? - I have a lot of test cases - which run every night for several hours - and provide lots of test results 25
  • 26. - Well, I have: - saved more hours of manual testing (effectiveness) - spent less time on test case maintenance (maintainability) - more bugtickets per fault report (reliability) - less training time for new employees (usability) 26
  • 27. Hm… - I need to edit many tests for each release, so that they can be executed - I need 4 hours a day to analyse my logs files - if I find a bug, it is most likely caused by my test environment - my new colleagues need 2 weeks of training before they can help me - and after every release we have to fix many bugs that were missed during testing 27
  • 28. And then I have: - less effort to find the test case that tests a specific range (flexibility) - fewer test cases blocked by the same software bug (robustness) - less effort to run test cases on different test environments (portability) 28
  • 29. 29
  • 30. 05 | IS OUR TEST AUTOMATION COOL? 30
  • 31. We have 18 test suites for: - conversion path tests, submit poker accounts, support ticket system, fraud check, upload images, buy points packages, video section… - 865 performed tests - 9 hours test run every night However, we have two test systems (integration and system test) and almost all tests run in Internet Explorer and Firefox. - about 3400 test executions - 36 hours of test runs in total - 5 virtual machines for test execution 31
  • 32. 1. maintainability central master suite with: - object repository - procedures for common test steps (e.g. login) 32
  • 33. 2. efficiency - before the introduction of test automation: 12 hours of manual regression testing for each release and test environment - today: 4 hours of manual regression testing for each release and test environment 3. reliability solved problems with external dependencies (Facebook, Google ...) - requests are routed via the host file on an internal web server - answers with 1x1 pixel images or empty responses to scripts 33
  • 34. 4. flexibility - a test suite per functional section - each test suite can be started by pressing a button in Jenkins - free choice of browser and the test environment 5. usability - graphical abstraction of test scripts in QF-Test - using Jython or Groovy scripts (database access, HTML) 6. robustness - 3 test suites are currently on “failed", there are 2 bugtickets - a test suite is unfortunately affected by a bug in Firefox 34
  • 35. 7. portability - choice of the test environment and the browser via parameter - at the moment QF-Test supports only Internet Explorer and Firefox 35
  • 37. ICANS GmbH Valentinskamp 18 20354 Hamburg Germany Phone: +49 40 22 63 82 9-0 Fax: +49 40 38 67 15 92 Web: www.icans-gmbh.com 37