SlideShare a Scribd company logo
1 of 16
Taras Lytvyn

http://testers.lviv.ua/




https://twitter.com/djlicker




http://ami.lnu.edu.ua/kdais/employees.html




                                             © 2012GlobalLogic Inc.   1
Mathematical models and
 artificial intelligence in
     software testing
                              Taras Lytvyn
         processes
                                             © 2012GlobalLogic Inc.   2
Contents
- What is artificial intelligence?
- Problem statement in general
- Analysis of recent researches & technologies
- Main idea of artificial intelligence approach
- Math model
- Test oracle based on AI
- Result evaluation and classification.
Comparison tool algorithm.
                                           © 2012GlobalLogic Inc.   3
What is artificial intelligence ?

     Semiotic                  Biological
thinking,                      Neural networks
judgment,
language,
emotions,
creativity, etc.                Intellectual
       mental                   behavior
       processes


                                           © 2012GlobalLogic Inc.   4
Problem statement in general
 SIMPLE TEST PROCESS
How well an evaluated app. conforms to its specs.

      3 stages:
      - test data generation,
      - testing,                      Regression
      - result evaluation               testing

           PROBLEM OF HIDDEN ERRORS

                                            © 2012GlobalLogic Inc.   5
Analysis of recent researches & techs

WHERE AI CAN BE USED ?

- metric’s analysis
- cost of testing
- reliability of testing in
  general
- optimization processes &
  data optimization


                                  © 2012GlobalLogic Inc.   6
Main idea
                  Decisions during
                 Regression Testing
 MANUAL                               AUTOMATION
                                  Assert functions
                                (Actual is equal/not
                                 equal to expected)

Intellectual automation
Decision System during
   Regression Testing
                                              © 2012GlobalLogic Inc.   7
Main idea
Decision System is based on artificial intelligent approach and is
       build on algorithm with NEURAL NETWORK usage.




                                       Neural Network training process

                                                           © 2012GlobalLogic Inc.   8
Main idea

          Tested
inputs                    it works ?
         Software


  Test        outputs
 cases

          Neural        Trained neural network
inputs
         Network         that will emulate our
                        SOFTWARE workability




                                      © 2012GlobalLogic Inc.   9
Math Modeling usage
         The test case execution process should be presented as
                          Complex Math Model

                   - Neural Network needs digits (not text)
                   - Input and output data should be normalized in specific way
                   - Math Model will give some limitations




                                Theorem & Limitations
V ji   couldn’t be empty                                          Functions
There is no intermediate step,                   TCE(t ji ) : Sl ji  Vl ji , l             k (k               m)
if a corresponding stage of verification exist   TCP(Sl ji ) : Sl   1 ji      Vl     1 ji ,...,S1 ji            V1 ji , l        1.
Intermediate stage of verification is possible   TCP(S1 ji ) : S1 ji       V1 ji .


                                                                                                       © 2012GlobalLogic Inc.   10
AI Test Oracle
        Test oracle – is a classifier that shows us
            whether test was passed or not

             Tested
            Software

                            Comparison
 Test                           Tool                 Result
Cases                        Algorithm           classifications

            Trained
             Neural
            Network
                               Test oracle classify the result
                                  of test case execution
                                                       © 2012GlobalLogic Inc.   11
Result classification & Comparison Tool
The Comparison Tool is employed as an independent method of
 comparing results from neural network and the results of the
                    tested versions of app.
                                                          App. result
                         Neural
                        Network
                         result            Correct                         Incorrect


                         Correct        1 True Positive                 2 True Negative
                        Incorrect      4 False Negative                 3 False Positive


                                       Comparison of outputs
  Output type              Same                                           Different

                        Both correct                                    ANN correct
    Binary
                        Both wrong                                      APP correct



                                                                        ANN correct
                        Both Correct
  Continuous                                                            APP correct
                        Both wrong
                                                                        Both wrong


                                                                                       © 2012GlobalLogic Inc.   12
Example
Input Data (test case) should be NORMALIZED !!!
               TC                                               Test Verification (test
                     TC Title (test    Test steps (test case
               id                                                case verification) /
                      case name)         steps) / Action
              (№)                                                  Expected result
                                      1.   Input Regular       1. Regular Hours
                                           Hours                   should be
                                      2.   Input Age               displayed
                                      3.   Input Rate of Pay   2. Age should be
                      Gross Pay
               1.2                    4.   Click Calculate         displayed
                        View
                                                               3. Rate of Pay should
                                                                   be displayed
                                                               4. Gross Pay should
                                                                   be displayed



         Structure of
         ANN is based             Training phase with 50 – 5000
        on Kolmogorov                        records
            Arnold
           approach
                                                                          © 2012GlobalLogic Inc.   13
- Introduced a mathematical model describing the
test case execution for software that is tested
- Constructed a new algorithmic model of test
oracle based on neural networks
- This Model can be used in the processes of
regression testing software
- Comparison Tool as result analyzer was provided

                                          © 2012GlobalLogic Inc.   14
<Q&A?>



         © 2012GlobalLogic Inc.   15
Taras Lytvyn
automation QC in Global Logic inc.
email : taras.lytvyn@globallogic.com
web: http://testers.lviv.ua/automation_blog
skype: tasryk




                                        © 2012GlobalLogic Inc.   16

More Related Content

Viewers also liked

Automated Test Outlook 2017
Automated Test Outlook 2017Automated Test Outlook 2017
Automated Test Outlook 2017
Hank Lydick
 
The Total Economic Impact of Using ThoughtWorks' Agile Development Approach
The Total Economic Impact of Using ThoughtWorks' Agile Development ApproachThe Total Economic Impact of Using ThoughtWorks' Agile Development Approach
The Total Economic Impact of Using ThoughtWorks' Agile Development Approach
Thoughtworks
 
Total Economic Impact of ThoughtWorks Distributed Agile Approach
Total Economic Impact of ThoughtWorks Distributed Agile ApproachTotal Economic Impact of ThoughtWorks Distributed Agile Approach
Total Economic Impact of ThoughtWorks Distributed Agile Approach
Thoughtworks
 
TDC2012 - Fábrica de Testes usufruindo da integração de Ferramentas ALM e Ges...
TDC2012 - Fábrica de Testes usufruindo da integração de Ferramentas ALM e Ges...TDC2012 - Fábrica de Testes usufruindo da integração de Ferramentas ALM e Ges...
TDC2012 - Fábrica de Testes usufruindo da integração de Ferramentas ALM e Ges...
Diraci Junior Trindade da Silva
 

Viewers also liked (18)

EXTENT-2016: The Future of Software Testing
EXTENT-2016:	 The Future of Software TestingEXTENT-2016:	 The Future of Software Testing
EXTENT-2016: The Future of Software Testing
 
Artificial intelligence in software engineering ppt.
Artificial intelligence in software engineering ppt.Artificial intelligence in software engineering ppt.
Artificial intelligence in software engineering ppt.
 
Automated Test Outlook 2017
Automated Test Outlook 2017Automated Test Outlook 2017
Automated Test Outlook 2017
 
The Total Economic Impact of Using ThoughtWorks' Agile Development Approach
The Total Economic Impact of Using ThoughtWorks' Agile Development ApproachThe Total Economic Impact of Using ThoughtWorks' Agile Development Approach
The Total Economic Impact of Using ThoughtWorks' Agile Development Approach
 
The Total Economic Impact of Using ThoughtWorks' Agile Development Approach
The Total Economic Impact of Using ThoughtWorks' Agile Development ApproachThe Total Economic Impact of Using ThoughtWorks' Agile Development Approach
The Total Economic Impact of Using ThoughtWorks' Agile Development Approach
 
Total Economic Impact of ThoughtWorks Distributed Agile Approach
Total Economic Impact of ThoughtWorks Distributed Agile ApproachTotal Economic Impact of ThoughtWorks Distributed Agile Approach
Total Economic Impact of ThoughtWorks Distributed Agile Approach
 
The Total Economic Impact Of Using ThoughtWorks’ “Distributed Agile” Approach
The Total Economic Impact Of Using ThoughtWorks’ “Distributed Agile” ApproachThe Total Economic Impact Of Using ThoughtWorks’ “Distributed Agile” Approach
The Total Economic Impact Of Using ThoughtWorks’ “Distributed Agile” Approach
 
Testing machine learning, learning machine testing. EuroSTAR 2016 Rik Marselis
Testing machine learning, learning machine testing. EuroSTAR 2016 Rik MarselisTesting machine learning, learning machine testing. EuroSTAR 2016 Rik Marselis
Testing machine learning, learning machine testing. EuroSTAR 2016 Rik Marselis
 
Archivo - XIII Reunion Anual
Archivo - XIII Reunion AnualArchivo - XIII Reunion Anual
Archivo - XIII Reunion Anual
 
Brateste 2103: Virtualização de Serviços para uma Nova Abordagem em testes
Brateste 2103:  Virtualização de Serviços para uma Nova Abordagem em testesBrateste 2103:  Virtualização de Serviços para uma Nova Abordagem em testes
Brateste 2103: Virtualização de Serviços para uma Nova Abordagem em testes
 
1-3-phacMC Pres-EDAS
1-3-phacMC Pres-EDAS1-3-phacMC Pres-EDAS
1-3-phacMC Pres-EDAS
 
TDC2012 - Fábrica de Testes usufruindo da integração de Ferramentas ALM e Ges...
TDC2012 - Fábrica de Testes usufruindo da integração de Ferramentas ALM e Ges...TDC2012 - Fábrica de Testes usufruindo da integração de Ferramentas ALM e Ges...
TDC2012 - Fábrica de Testes usufruindo da integração de Ferramentas ALM e Ges...
 
Recent Advances in Machine Learning: Bringing a New Level of Intelligence to ...
Recent Advances in Machine Learning: Bringing a New Level of Intelligence to ...Recent Advances in Machine Learning: Bringing a New Level of Intelligence to ...
Recent Advances in Machine Learning: Bringing a New Level of Intelligence to ...
 
Modeling and simulation of the induction motor feed by matrix converter
Modeling and simulation of the induction motor feed by matrix converterModeling and simulation of the induction motor feed by matrix converter
Modeling and simulation of the induction motor feed by matrix converter
 
Palestra Testes Ágeis - SEMAC INF UFRGS
Palestra Testes Ágeis - SEMAC INF UFRGSPalestra Testes Ágeis - SEMAC INF UFRGS
Palestra Testes Ágeis - SEMAC INF UFRGS
 
IOT Talking to Webserver - how to
IOT Talking to Webserver - how to IOT Talking to Webserver - how to
IOT Talking to Webserver - how to
 
IoT Devices And Arduino
IoT Devices And ArduinoIoT Devices And Arduino
IoT Devices And Arduino
 
Beginning IoT for Developers
Beginning IoT for DevelopersBeginning IoT for Developers
Beginning IoT for Developers
 

Similar to Artificial intelligence in qa

Gl istqb testing fundamentals
Gl istqb testing fundamentalsGl istqb testing fundamentals
Gl istqb testing fundamentals
Pragya Rastogi
 
Pivotal Labs Open View Presentation Quality Assurance And Developer Testing
Pivotal Labs Open View Presentation Quality Assurance And Developer TestingPivotal Labs Open View Presentation Quality Assurance And Developer Testing
Pivotal Labs Open View Presentation Quality Assurance And Developer Testing
guestc8adce
 
A beginners guide to testing
A beginners guide to testingA beginners guide to testing
A beginners guide to testing
Philip Johnson
 
Finding latent code errors via machine learning over program ...
Finding latent code errors via machine learning over program ...Finding latent code errors via machine learning over program ...
Finding latent code errors via machine learning over program ...
butest
 

Similar to Artificial intelligence in qa (20)

Gl istqb testing fundamentals
Gl istqb testing fundamentalsGl istqb testing fundamentals
Gl istqb testing fundamentals
 
Types of testing
Types of testingTypes of testing
Types of testing
 
TEA Presentation V 0.3
TEA Presentation V 0.3TEA Presentation V 0.3
TEA Presentation V 0.3
 
10 software testing_technique
10 software testing_technique10 software testing_technique
10 software testing_technique
 
Pivotal Labs Open View Presentation Quality Assurance And Developer Testing
Pivotal Labs Open View Presentation Quality Assurance And Developer TestingPivotal Labs Open View Presentation Quality Assurance And Developer Testing
Pivotal Labs Open View Presentation Quality Assurance And Developer Testing
 
ICTSS 2010 - Iterative Software Testing Process for Scrum and Waterfall Projects
ICTSS 2010 - Iterative Software Testing Process for Scrum and Waterfall ProjectsICTSS 2010 - Iterative Software Testing Process for Scrum and Waterfall Projects
ICTSS 2010 - Iterative Software Testing Process for Scrum and Waterfall Projects
 
Adobe EyeTrackProposal
Adobe EyeTrackProposalAdobe EyeTrackProposal
Adobe EyeTrackProposal
 
A beginners guide to testing
A beginners guide to testingA beginners guide to testing
A beginners guide to testing
 
Finding latent code errors via machine learning over program ...
Finding latent code errors via machine learning over program ...Finding latent code errors via machine learning over program ...
Finding latent code errors via machine learning over program ...
 
Ch01-whyTest.pptx
Ch01-whyTest.pptxCh01-whyTest.pptx
Ch01-whyTest.pptx
 
Software engg unit 4
Software engg unit 4 Software engg unit 4
Software engg unit 4
 
11 software testing_strategy
11 software testing_strategy11 software testing_strategy
11 software testing_strategy
 
Testing and Mocking Object - The Art of Mocking.
Testing and Mocking Object - The Art of Mocking.Testing and Mocking Object - The Art of Mocking.
Testing and Mocking Object - The Art of Mocking.
 
IRJET - A Valuable and Speculative Approach to Manage the Item Testing by usi...
IRJET - A Valuable and Speculative Approach to Manage the Item Testing by usi...IRJET - A Valuable and Speculative Approach to Manage the Item Testing by usi...
IRJET - A Valuable and Speculative Approach to Manage the Item Testing by usi...
 
Software Testing Introduction (Part 1)
Software Testing Introduction (Part 1)Software Testing Introduction (Part 1)
Software Testing Introduction (Part 1)
 
Testing concepts
Testing conceptsTesting concepts
Testing concepts
 
Principles-of-SoftwareTesting.pptx
Principles-of-SoftwareTesting.pptxPrinciples-of-SoftwareTesting.pptx
Principles-of-SoftwareTesting.pptx
 
[AnDevCon 2016] Mutation Testing for Android
[AnDevCon 2016] Mutation Testing for Android[AnDevCon 2016] Mutation Testing for Android
[AnDevCon 2016] Mutation Testing for Android
 
Estimation techniques and software metrics
Estimation techniques and software metricsEstimation techniques and software metrics
Estimation techniques and software metrics
 
Software testing basic
Software testing basicSoftware testing basic
Software testing basic
 

Recently uploaded

Recently uploaded (20)

Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 

Artificial intelligence in qa

  • 2. Mathematical models and artificial intelligence in software testing Taras Lytvyn processes © 2012GlobalLogic Inc. 2
  • 3. Contents - What is artificial intelligence? - Problem statement in general - Analysis of recent researches & technologies - Main idea of artificial intelligence approach - Math model - Test oracle based on AI - Result evaluation and classification. Comparison tool algorithm. © 2012GlobalLogic Inc. 3
  • 4. What is artificial intelligence ? Semiotic Biological thinking, Neural networks judgment, language, emotions, creativity, etc. Intellectual mental behavior processes © 2012GlobalLogic Inc. 4
  • 5. Problem statement in general SIMPLE TEST PROCESS How well an evaluated app. conforms to its specs. 3 stages: - test data generation, - testing, Regression - result evaluation testing PROBLEM OF HIDDEN ERRORS © 2012GlobalLogic Inc. 5
  • 6. Analysis of recent researches & techs WHERE AI CAN BE USED ? - metric’s analysis - cost of testing - reliability of testing in general - optimization processes & data optimization © 2012GlobalLogic Inc. 6
  • 7. Main idea Decisions during Regression Testing MANUAL AUTOMATION Assert functions (Actual is equal/not equal to expected) Intellectual automation Decision System during Regression Testing © 2012GlobalLogic Inc. 7
  • 8. Main idea Decision System is based on artificial intelligent approach and is build on algorithm with NEURAL NETWORK usage. Neural Network training process © 2012GlobalLogic Inc. 8
  • 9. Main idea Tested inputs it works ? Software Test outputs cases Neural Trained neural network inputs Network that will emulate our SOFTWARE workability © 2012GlobalLogic Inc. 9
  • 10. Math Modeling usage The test case execution process should be presented as Complex Math Model - Neural Network needs digits (not text) - Input and output data should be normalized in specific way - Math Model will give some limitations Theorem & Limitations V ji couldn’t be empty Functions There is no intermediate step, TCE(t ji ) : Sl ji Vl ji , l k (k m) if a corresponding stage of verification exist TCP(Sl ji ) : Sl 1 ji Vl 1 ji ,...,S1 ji V1 ji , l 1. Intermediate stage of verification is possible TCP(S1 ji ) : S1 ji V1 ji . © 2012GlobalLogic Inc. 10
  • 11. AI Test Oracle Test oracle – is a classifier that shows us whether test was passed or not Tested Software Comparison Test Tool Result Cases Algorithm classifications Trained Neural Network Test oracle classify the result of test case execution © 2012GlobalLogic Inc. 11
  • 12. Result classification & Comparison Tool The Comparison Tool is employed as an independent method of comparing results from neural network and the results of the tested versions of app. App. result Neural Network result Correct Incorrect Correct 1 True Positive 2 True Negative Incorrect 4 False Negative 3 False Positive Comparison of outputs Output type Same Different Both correct ANN correct Binary Both wrong APP correct ANN correct Both Correct Continuous APP correct Both wrong Both wrong © 2012GlobalLogic Inc. 12
  • 13. Example Input Data (test case) should be NORMALIZED !!! TC Test Verification (test TC Title (test Test steps (test case id case verification) / case name) steps) / Action (№) Expected result 1. Input Regular 1. Regular Hours Hours should be 2. Input Age displayed 3. Input Rate of Pay 2. Age should be Gross Pay 1.2 4. Click Calculate displayed View 3. Rate of Pay should be displayed 4. Gross Pay should be displayed Structure of ANN is based Training phase with 50 – 5000 on Kolmogorov records Arnold approach © 2012GlobalLogic Inc. 13
  • 14. - Introduced a mathematical model describing the test case execution for software that is tested - Constructed a new algorithmic model of test oracle based on neural networks - This Model can be used in the processes of regression testing software - Comparison Tool as result analyzer was provided © 2012GlobalLogic Inc. 14
  • 15. <Q&A?> © 2012GlobalLogic Inc. 15
  • 16. Taras Lytvyn automation QC in Global Logic inc. email : taras.lytvyn@globallogic.com web: http://testers.lviv.ua/automation_blog skype: tasryk © 2012GlobalLogic Inc. 16