SlideShare uma empresa Scribd logo
1 de 5
IMPLEMENTATION OF McCABE’S METRICS




AIM:
        .
    To measure the given software implementation using McCabe’s metrics and test it by
path testing method.


TEST PLANNING:

   1. Test strategy
          Scope of testing
                     To test the path of implementation using McCabe’s metrics.
          Test deliverables
                     To test the measurements of the given program using C language.
                                  • the cyclomatic complexity using the formula
                                           V(G)=e-n+2
          Tools used win runner & C programming.
   2. Test plan
         It is a document to say what to test, when to test, how to test, who to test.

                                 •   What to test- cyclomatic complexity using
                                     McCabe’s metrics.
                                 •   How to test-by using Win Runner.
                                 •   who to test- Developer.



   3. Test bed- Win Runner and C programming language.

TEST DEVELOPMENT:

       Test cases
              i. Edges
             ii. Nodes
            iii.  Regions
TEST EXECUTION:


    Step1: Draw a flow chart for given software implementation (to find greatest of 3
           numbers).
    Step2: Draw a flow graph for the program from the flow chart.
    Step3: Count the no of edges (e) and no of nodes (n) and regions(r).
    Step4: Find the cyclomatic complexity using the formula
            V(G)=e-n+2

MCCABE’S METRICS FLOWCHART:




                                  START




                          INPUT a,b,c



                        If a >b                         If b>a
                        &b>c                            &b>c




                                                 b is grater                c is grater
                 a is grater




                                 STOP
CALCULATION OF MC’CABE’S METRICS:




                    0


                    1


                    2

                           4

                3
                           5        6



                           7




V(G)=e-n+2

e=9

n=7

V(G)=9-7+2 =4
TEST RESULT ANALYSIS:


     Step1: Initialize the win runner

            Start      programs         win runner     win runner

     Step2: Create a new html document to be tested and save it on the desktop
     Step3: In win runner create a new task
     Step4: Click on record button and open the saved html file
     Step5: Then click on stop button the file will be recorded automatically
     Step6: Then click on the button Run from top,
            This will automatically give the test result as
             Pass: If executed with out errors
             Fail: If executed with some errors
            And the execution time will also be displayed
     Step7: Then go to Tools         GUI Map Editor
            And save the file at some location say for example “desktop”.
RESULT:
      Once the test meets the exit criteria the activities such as capturing the key output
lessons learned result,logs,documents related to the project are achieved and used as
reference for next project .

Mais conteúdo relacionado

Destaque

Data flowtesting doc
Data flowtesting docData flowtesting doc
Data flowtesting doc
vamshi batchu
 
Types of Software Testing
Types of Software TestingTypes of Software Testing
Types of Software Testing
Nishant Worah
 

Destaque (20)

Data flowtesting doc
Data flowtesting docData flowtesting doc
Data flowtesting doc
 
C++ material
C++ materialC++ material
C++ material
 
Path testing
Path testingPath testing
Path testing
 
Stm unit1
Stm unit1Stm unit1
Stm unit1
 
Transactionflow
TransactionflowTransactionflow
Transactionflow
 
Unit testing after Zend Framework 1.8
Unit testing after Zend Framework 1.8Unit testing after Zend Framework 1.8
Unit testing after Zend Framework 1.8
 
Testing
Testing Testing
Testing
 
Path testing
Path testingPath testing
Path testing
 
Taxonomy for bugs
Taxonomy for bugsTaxonomy for bugs
Taxonomy for bugs
 
Unit 3 Control Flow Testing
Unit 3   Control Flow TestingUnit 3   Control Flow Testing
Unit 3 Control Flow Testing
 
Bug taxonomy
Bug taxonomyBug taxonomy
Bug taxonomy
 
Normalization in Database
Normalization in DatabaseNormalization in Database
Normalization in Database
 
Path Testing
Path TestingPath Testing
Path Testing
 
Basis path testing
Basis path testingBasis path testing
Basis path testing
 
Software Testing Techniques
Software Testing TechniquesSoftware Testing Techniques
Software Testing Techniques
 
Testing techniques
Testing techniquesTesting techniques
Testing techniques
 
DBMS - Normalization
DBMS - NormalizationDBMS - Normalization
DBMS - Normalization
 
Databases: Normalisation
Databases: NormalisationDatabases: Normalisation
Databases: Normalisation
 
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NFDatabase Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
 
Types of Software Testing
Types of Software TestingTypes of Software Testing
Types of Software Testing
 

Semelhante a software testing

Implementation of halstead
Implementation of halsteadImplementation of halstead
Implementation of halstead
vamshi batchu
 
Qat09 presentations dxw07u
Qat09 presentations dxw07uQat09 presentations dxw07u
Qat09 presentations dxw07u
Shubham Sharma
 

Semelhante a software testing (20)

Implementation of halstead
Implementation of halsteadImplementation of halstead
Implementation of halstead
 
Devry cis-170-c-i lab-6-of-7-menu
Devry cis-170-c-i lab-6-of-7-menuDevry cis-170-c-i lab-6-of-7-menu
Devry cis-170-c-i lab-6-of-7-menu
 
Devry cis-170-c-i lab-6-of-7-menu
Devry cis-170-c-i lab-6-of-7-menuDevry cis-170-c-i lab-6-of-7-menu
Devry cis-170-c-i lab-6-of-7-menu
 
White Box testing by Pankaj Thakur, NITTTR Chandigarh
White Box testing by Pankaj Thakur, NITTTR ChandigarhWhite Box testing by Pankaj Thakur, NITTTR Chandigarh
White Box testing by Pankaj Thakur, NITTTR Chandigarh
 
Calculation of Cyclomatic complexity
Calculation of Cyclomatic complexityCalculation of Cyclomatic complexity
Calculation of Cyclomatic complexity
 
Qat09 presentations dxw07u
Qat09 presentations dxw07uQat09 presentations dxw07u
Qat09 presentations dxw07u
 
Software Engineering (Testing techniques)
Software Engineering (Testing techniques)Software Engineering (Testing techniques)
Software Engineering (Testing techniques)
 
Software Engineering (Testing techniques)
Software Engineering (Testing techniques)Software Engineering (Testing techniques)
Software Engineering (Testing techniques)
 
Start with version control and experiments management in machine learning
Start with version control and experiments management in machine learningStart with version control and experiments management in machine learning
Start with version control and experiments management in machine learning
 
Technical meeting automated testing with vs2010
Technical meeting automated testing with vs2010Technical meeting automated testing with vs2010
Technical meeting automated testing with vs2010
 
2
22
2
 
2
22
2
 
Test AI/ML Applications
Test AI/ML ApplicationsTest AI/ML Applications
Test AI/ML Applications
 
Java Unit Testing Tool Competition — Fifth Round
Java Unit Testing Tool Competition — Fifth RoundJava Unit Testing Tool Competition — Fifth Round
Java Unit Testing Tool Competition — Fifth Round
 
Cmis 102 Effective Communication / snaptutorial.com
Cmis 102  Effective Communication / snaptutorial.comCmis 102  Effective Communication / snaptutorial.com
Cmis 102 Effective Communication / snaptutorial.com
 
Cmis 102 Enthusiastic Study / snaptutorial.com
Cmis 102 Enthusiastic Study / snaptutorial.comCmis 102 Enthusiastic Study / snaptutorial.com
Cmis 102 Enthusiastic Study / snaptutorial.com
 
Cmis 102 Success Begins / snaptutorial.com
Cmis 102 Success Begins / snaptutorial.comCmis 102 Success Begins / snaptutorial.com
Cmis 102 Success Begins / snaptutorial.com
 
Testing of Object-Oriented Software
Testing of Object-Oriented SoftwareTesting of Object-Oriented Software
Testing of Object-Oriented Software
 
How we improved i os delivery speed from qa side by Kateryna Sprynsian
How we improved i os delivery speed from qa side by Kateryna SprynsianHow we improved i os delivery speed from qa side by Kateryna Sprynsian
How we improved i os delivery speed from qa side by Kateryna Sprynsian
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 

Último

Último (20)

General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 

software testing

  • 1. IMPLEMENTATION OF McCABE’S METRICS AIM: . To measure the given software implementation using McCabe’s metrics and test it by path testing method. TEST PLANNING: 1. Test strategy  Scope of testing To test the path of implementation using McCabe’s metrics.  Test deliverables To test the measurements of the given program using C language. • the cyclomatic complexity using the formula V(G)=e-n+2  Tools used win runner & C programming. 2. Test plan It is a document to say what to test, when to test, how to test, who to test. • What to test- cyclomatic complexity using McCabe’s metrics. • How to test-by using Win Runner. • who to test- Developer. 3. Test bed- Win Runner and C programming language. TEST DEVELOPMENT: Test cases i. Edges ii. Nodes iii. Regions
  • 2. TEST EXECUTION: Step1: Draw a flow chart for given software implementation (to find greatest of 3 numbers). Step2: Draw a flow graph for the program from the flow chart. Step3: Count the no of edges (e) and no of nodes (n) and regions(r). Step4: Find the cyclomatic complexity using the formula V(G)=e-n+2 MCCABE’S METRICS FLOWCHART: START INPUT a,b,c If a >b If b>a &b>c &b>c b is grater c is grater a is grater STOP
  • 3. CALCULATION OF MC’CABE’S METRICS: 0 1 2 4 3 5 6 7 V(G)=e-n+2 e=9 n=7 V(G)=9-7+2 =4
  • 4. TEST RESULT ANALYSIS: Step1: Initialize the win runner Start programs win runner win runner Step2: Create a new html document to be tested and save it on the desktop Step3: In win runner create a new task Step4: Click on record button and open the saved html file Step5: Then click on stop button the file will be recorded automatically Step6: Then click on the button Run from top, This will automatically give the test result as Pass: If executed with out errors Fail: If executed with some errors And the execution time will also be displayed Step7: Then go to Tools GUI Map Editor And save the file at some location say for example “desktop”.
  • 5. RESULT: Once the test meets the exit criteria the activities such as capturing the key output lessons learned result,logs,documents related to the project are achieved and used as reference for next project .