SlideShare uma empresa Scribd logo
1 de 13
AUTOMATION TESTING & UNIT TESTING(JUNIT) 
BY :- KAPIL
CONTENTS 
 AUTOMATION TESTING 
 SELENIUM IDE 
 UNIT TESTING 
 JUNIT
AUTOMATION TESTING 
 Due to the financial situations in the world today, to save money and make the most of every 
project, software development organisations and software developers face a challenge of 
completing software projects in lesser and lesser amount of time and using minimal resources. 
 Automation testing which is also known as Test Automation is when the tester writes scripts and 
uses another software to test the Product. 
 Automation Testing is used to re-run the test scenarios that were performed manually, quickly 
and repeatedly. 
 It increases the test coverage; improve accuracy, saves time and money in comparison to 
manual testing. 
“Automation is the use of tools and strategies that reduce human 
involvement or interaction in unskilled, repetitive or redundant tasks”
OBJECTIVES OF SOFTWARE TEST AUTOMATION 
 To reduce Testing Cost and Time. 
 To speed up the Testing Process. 
 To help improve Quality. 
 To improve Test coverage. 
 To reduce Manual Intervention. 
 Programmable
APPROACHES TO TEST AUTOMATION 
1. Code-driven testing. 
2. Graphical user interface testing.
DRAWBACKS 
 If the application / product do not have many release cycles, it is not worth the time and 
money automating for one/two cycles. 
 The automation process is expensive. 
 All areas of the application/product cannot be automated. There would be certain limitations 
in certain areas. 
 If the Customers requirement are frequently changing.
SELENIUM 
 Selenium is a robust set of tools that supports rapid development of test automation for web-based 
applications. 
 Selenium provides a rich set of testing functions specifically geared to the needs of testing of a 
web application. 
 Selenium operations are highly flexible, allowing many options for locating UI elements and 
comparing expected test results against actual application behavior. 
 Allows scripting in several languages like Java, C#, PHP and Python. 
 Assertion statements provide an efficient way of comparing expected and actual results.
SELENIUM IDE 
 Selenium IDE is an integrated development environment for Selenium tests. 
 It is implemented as a Firefox extension, and allows you to record, edit, and 
replay the test in firefox . 
 Selenium IDE allows you to save tests as HTML, Java, Ruby scripts, or any other 
format. 
 It allows you to automatically add assertions to all the pages.
UNIT TESTING 
 Unit Testing is a level of the software testing process where individual units/components of a 
software/system are tested. 
 The primary goal of unit testing is to take the smallest piece of testable software in the 
application, isolate it from the remainder of the code, and determine whether it behaves 
exactly as you expect. 
 Each unit is tested separately before integrating them into modules to test the interfaces 
between modules. 
 Unit tests are short code fragments , created by programmers or occasionally by white box 
testers during the development process.
BENEFITS OF UNIT TESTING 
 Unit testing increases confidence in changing/maintaining code. 
 Codes are more reusable. 
 Development is faster. 
 Debugging is easy.
JUNIT 
 JUnit is a unit testing framework for the Java programming language. 
 JUnit has been important in the development of test-driven development, and is one of a 
family of unit testing frameworks. 
 JUnit is linked as a JAR at compile-time; the framework resides under package junit .framework 
for JUnit 3.8 and earlier, and under package org.junit for JUnit 4 and later. 
 JUnit promotes the idea of "first testing then coding", which emphasis on setting up the test 
data for a piece of code which can be tested first and then can be implemented . 
 This approach is like "test a little, code a little, test a little, code a little..." which increases 
programmer productivity and stability of program code that reduces programmer stress and 
the time spent on debugging.
FEATURES OF JUNIT 
 JUnit is an open source framework which is used for writing & running tests. 
 Provides Annotation to identify the test methods. 
 Provides Assertions for testing expected results. 
 Provides Test runners for running tests. 
 JUnit tests allow you to write code faster which increasing quality 
 JUnit is elegantly simple. It is less complex & takes less time. 
 JUnit tests can be run automatically and they check their own results and provide immediate 
feedback. There's no need to manually comb through a report of test results.
THANKS

Mais conteúdo relacionado

Mais procurados

Basic software-testing-concepts
Basic software-testing-conceptsBasic software-testing-concepts
Basic software-testing-concepts
medsherb
 
automation testing benefits
automation testing benefitsautomation testing benefits
automation testing benefits
nazeer pasha
 
Automation testing strategy, approach & planning
Automation testing  strategy, approach & planningAutomation testing  strategy, approach & planning
Automation testing strategy, approach & planning
SivaprasanthRentala1975
 

Mais procurados (20)

6 Traits of a Successful Test Automation Architecture
6 Traits of a Successful Test Automation Architecture6 Traits of a Successful Test Automation Architecture
6 Traits of a Successful Test Automation Architecture
 
Basic software-testing-concepts
Basic software-testing-conceptsBasic software-testing-concepts
Basic software-testing-concepts
 
Automation With A Tool Demo
Automation With A Tool DemoAutomation With A Tool Demo
Automation With A Tool Demo
 
10 Benefits of Automated Testing
10 Benefits of Automated Testing10 Benefits of Automated Testing
10 Benefits of Automated Testing
 
Automation testing
Automation testingAutomation testing
Automation testing
 
Getting Started With Cypress
Getting Started With CypressGetting Started With Cypress
Getting Started With Cypress
 
Unit Tests And Automated Testing
Unit Tests And Automated TestingUnit Tests And Automated Testing
Unit Tests And Automated Testing
 
Introduction to Automation Testing
Introduction to Automation TestingIntroduction to Automation Testing
Introduction to Automation Testing
 
Automation testing
Automation testingAutomation testing
Automation testing
 
Automation Testing using Selenium
Automation Testing using SeleniumAutomation Testing using Selenium
Automation Testing using Selenium
 
TDD - Test Driven Development
TDD - Test Driven DevelopmentTDD - Test Driven Development
TDD - Test Driven Development
 
Selenium test automation
Selenium test automationSelenium test automation
Selenium test automation
 
automation testing benefits
automation testing benefitsautomation testing benefits
automation testing benefits
 
Automation testing strategy, approach & planning
Automation testing  strategy, approach & planningAutomation testing  strategy, approach & planning
Automation testing strategy, approach & planning
 
Test automation proposal
Test automation proposalTest automation proposal
Test automation proposal
 
Basic Guide to Manual Testing
Basic Guide to Manual TestingBasic Guide to Manual Testing
Basic Guide to Manual Testing
 
Agile Testing and Test Automation
Agile Testing and Test AutomationAgile Testing and Test Automation
Agile Testing and Test Automation
 
Understanding Unit Testing
Understanding Unit TestingUnderstanding Unit Testing
Understanding Unit Testing
 
Selenium ppt
Selenium pptSelenium ppt
Selenium ppt
 
Keyword-driven Test Automation Framework
Keyword-driven Test Automation FrameworkKeyword-driven Test Automation Framework
Keyword-driven Test Automation Framework
 

Destaque

Advanced junit and mockito
Advanced junit and mockitoAdvanced junit and mockito
Advanced junit and mockito
Mathieu Carbou
 
Unit testing best practices
Unit testing best practicesUnit testing best practices
Unit testing best practices
nickokiss
 
UNIT TESTING PPT
UNIT TESTING PPTUNIT TESTING PPT
UNIT TESTING PPT
suhasreddy1
 

Destaque (14)

JUnit- A Unit Testing Framework
JUnit- A Unit Testing FrameworkJUnit- A Unit Testing Framework
JUnit- A Unit Testing Framework
 
20 challenges to success at SPEvo
20 challenges to success at SPEvo20 challenges to success at SPEvo
20 challenges to success at SPEvo
 
Automated testing with visual studio 2010
Automated testing with visual studio 2010Automated testing with visual studio 2010
Automated testing with visual studio 2010
 
JMockit
JMockitJMockit
JMockit
 
Advanced junit and mockito
Advanced junit and mockitoAdvanced junit and mockito
Advanced junit and mockito
 
JMockit Framework Overview
JMockit Framework OverviewJMockit Framework Overview
JMockit Framework Overview
 
JUNit Presentation
JUNit PresentationJUNit Presentation
JUNit Presentation
 
JUnit & Mockito, first steps
JUnit & Mockito, first stepsJUnit & Mockito, first steps
JUnit & Mockito, first steps
 
Junit 4.0
Junit 4.0Junit 4.0
Junit 4.0
 
Testing In Java
Testing In JavaTesting In Java
Testing In Java
 
JUnit Presentation
JUnit PresentationJUnit Presentation
JUnit Presentation
 
Unit testing with JUnit
Unit testing with JUnitUnit testing with JUnit
Unit testing with JUnit
 
Unit testing best practices
Unit testing best practicesUnit testing best practices
Unit testing best practices
 
UNIT TESTING PPT
UNIT TESTING PPTUNIT TESTING PPT
UNIT TESTING PPT
 

Semelhante a Automation testing & Unit testing

Automation Testing with Test Complete
Automation Testing with Test CompleteAutomation Testing with Test Complete
Automation Testing with Test Complete
Vartika Saxena
 

Semelhante a Automation testing & Unit testing (20)

5 Best Unit Test Frameworks to Automate Unit Tests
5 Best Unit Test Frameworks to Automate Unit Tests5 Best Unit Test Frameworks to Automate Unit Tests
5 Best Unit Test Frameworks to Automate Unit Tests
 
Unit Testing to Support Reusable for Component-Based Software Engineering
Unit Testing to Support Reusable for Component-Based Software EngineeringUnit Testing to Support Reusable for Component-Based Software Engineering
Unit Testing to Support Reusable for Component-Based Software Engineering
 
[DevDay 2017] Automation Testing - Speaker: Nghia Khuong - Project Manager at...
[DevDay 2017] Automation Testing - Speaker: Nghia Khuong - Project Manager at...[DevDay 2017] Automation Testing - Speaker: Nghia Khuong - Project Manager at...
[DevDay 2017] Automation Testing - Speaker: Nghia Khuong - Project Manager at...
 
JUnit with_mocking
JUnit with_mockingJUnit with_mocking
JUnit with_mocking
 
Discover the power of QA automation testing
Discover the power of QA automation testingDiscover the power of QA automation testing
Discover the power of QA automation testing
 
Best Unit Testing Frameworks to Automate your Desktop Web Testing using Selen...
Best Unit Testing Frameworks to Automate your Desktop Web Testing using Selen...Best Unit Testing Frameworks to Automate your Desktop Web Testing using Selen...
Best Unit Testing Frameworks to Automate your Desktop Web Testing using Selen...
 
Basics of Scriptless Automation for Web and Mobile Apps (1).pdf
Basics of Scriptless Automation for Web and Mobile Apps (1).pdfBasics of Scriptless Automation for Web and Mobile Apps (1).pdf
Basics of Scriptless Automation for Web and Mobile Apps (1).pdf
 
Automated Testing: An Edge Over Manual Software Testing
Automated Testing: An Edge Over Manual Software TestingAutomated Testing: An Edge Over Manual Software Testing
Automated Testing: An Edge Over Manual Software Testing
 
SDET UNIT 4.pptx
SDET UNIT 4.pptxSDET UNIT 4.pptx
SDET UNIT 4.pptx
 
Top 5 automation testing tools to gear up website development
Top 5 automation testing tools to gear up website developmentTop 5 automation testing tools to gear up website development
Top 5 automation testing tools to gear up website development
 
Automation Testing with Test Complete
Automation Testing with Test CompleteAutomation Testing with Test Complete
Automation Testing with Test Complete
 
Open Source Software Testing Tools
Open Source Software Testing ToolsOpen Source Software Testing Tools
Open Source Software Testing Tools
 
Back to basics - PHPUnit
Back to basics - PHPUnitBack to basics - PHPUnit
Back to basics - PHPUnit
 
Ka3517391743
Ka3517391743Ka3517391743
Ka3517391743
 
Testing Strategies in .NET: From Unit Testing to Integration Testing
Testing Strategies in .NET: From Unit Testing to Integration TestingTesting Strategies in .NET: From Unit Testing to Integration Testing
Testing Strategies in .NET: From Unit Testing to Integration Testing
 
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
 
Software testing
Software testingSoftware testing
Software testing
 
5 Best Automation Testing Tools to Speed up Testing.pdf
5 Best Automation Testing Tools to Speed up Testing.pdf5 Best Automation Testing Tools to Speed up Testing.pdf
5 Best Automation Testing Tools to Speed up Testing.pdf
 
The Best Automation Testing Tools To Use In 2022 | BMN Infotech
The Best Automation Testing Tools To Use In 2022 | BMN InfotechThe Best Automation Testing Tools To Use In 2022 | BMN Infotech
The Best Automation Testing Tools To Use In 2022 | BMN Infotech
 
International journal of applied sciences and innovation vol 2015 - no 1 - ...
International journal of applied sciences and innovation   vol 2015 - no 1 - ...International journal of applied sciences and innovation   vol 2015 - no 1 - ...
International journal of applied sciences and innovation vol 2015 - no 1 - ...
 

Último

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Último (20)

ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
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
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 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
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
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, ...
 

Automation testing & Unit testing

  • 1. AUTOMATION TESTING & UNIT TESTING(JUNIT) BY :- KAPIL
  • 2. CONTENTS  AUTOMATION TESTING  SELENIUM IDE  UNIT TESTING  JUNIT
  • 3. AUTOMATION TESTING  Due to the financial situations in the world today, to save money and make the most of every project, software development organisations and software developers face a challenge of completing software projects in lesser and lesser amount of time and using minimal resources.  Automation testing which is also known as Test Automation is when the tester writes scripts and uses another software to test the Product.  Automation Testing is used to re-run the test scenarios that were performed manually, quickly and repeatedly.  It increases the test coverage; improve accuracy, saves time and money in comparison to manual testing. “Automation is the use of tools and strategies that reduce human involvement or interaction in unskilled, repetitive or redundant tasks”
  • 4. OBJECTIVES OF SOFTWARE TEST AUTOMATION  To reduce Testing Cost and Time.  To speed up the Testing Process.  To help improve Quality.  To improve Test coverage.  To reduce Manual Intervention.  Programmable
  • 5. APPROACHES TO TEST AUTOMATION 1. Code-driven testing. 2. Graphical user interface testing.
  • 6. DRAWBACKS  If the application / product do not have many release cycles, it is not worth the time and money automating for one/two cycles.  The automation process is expensive.  All areas of the application/product cannot be automated. There would be certain limitations in certain areas.  If the Customers requirement are frequently changing.
  • 7. SELENIUM  Selenium is a robust set of tools that supports rapid development of test automation for web-based applications.  Selenium provides a rich set of testing functions specifically geared to the needs of testing of a web application.  Selenium operations are highly flexible, allowing many options for locating UI elements and comparing expected test results against actual application behavior.  Allows scripting in several languages like Java, C#, PHP and Python.  Assertion statements provide an efficient way of comparing expected and actual results.
  • 8. SELENIUM IDE  Selenium IDE is an integrated development environment for Selenium tests.  It is implemented as a Firefox extension, and allows you to record, edit, and replay the test in firefox .  Selenium IDE allows you to save tests as HTML, Java, Ruby scripts, or any other format.  It allows you to automatically add assertions to all the pages.
  • 9. UNIT TESTING  Unit Testing is a level of the software testing process where individual units/components of a software/system are tested.  The primary goal of unit testing is to take the smallest piece of testable software in the application, isolate it from the remainder of the code, and determine whether it behaves exactly as you expect.  Each unit is tested separately before integrating them into modules to test the interfaces between modules.  Unit tests are short code fragments , created by programmers or occasionally by white box testers during the development process.
  • 10. BENEFITS OF UNIT TESTING  Unit testing increases confidence in changing/maintaining code.  Codes are more reusable.  Development is faster.  Debugging is easy.
  • 11. JUNIT  JUnit is a unit testing framework for the Java programming language.  JUnit has been important in the development of test-driven development, and is one of a family of unit testing frameworks.  JUnit is linked as a JAR at compile-time; the framework resides under package junit .framework for JUnit 3.8 and earlier, and under package org.junit for JUnit 4 and later.  JUnit promotes the idea of "first testing then coding", which emphasis on setting up the test data for a piece of code which can be tested first and then can be implemented .  This approach is like "test a little, code a little, test a little, code a little..." which increases programmer productivity and stability of program code that reduces programmer stress and the time spent on debugging.
  • 12. FEATURES OF JUNIT  JUnit is an open source framework which is used for writing & running tests.  Provides Annotation to identify the test methods.  Provides Assertions for testing expected results.  Provides Test runners for running tests.  JUnit tests allow you to write code faster which increasing quality  JUnit is elegantly simple. It is less complex & takes less time.  JUnit tests can be run automatically and they check their own results and provide immediate feedback. There's no need to manually comb through a report of test results.