** Software Testing Certification Courses: https://www.edureka.co/software-testing-certification-courses **
This Edureka PPT on Software Testing Tutorial talks about different types of testing i.e. manual testing and automation testing approaches. Furthermore, it will also give you a brief insight on an automation Testing tool i.e. Selenium. Below topics are covered in this PPT:
Software Testing Overview
SDLC - Waterfall model, Spiral Model
Verification and Validation model
STLC
Types of Software testing
Software testing methods
Software Testing levels
Software testing documentation
Defect/bug life cycle-its importance
Automation testing - Why it is important?
Selenium
Selenium Locators
Selenium playlist: https://goo.gl/NmuzXE
Selenium Blog playlist: http://bit.ly/2B7C3QR
5. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
Introduction To Software Testing
Software testing is defined as an activity to
check whether the actual results match the
expected results and to ensure that
the software system is Defect free.
6. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
Why Testing is Important?
Airplane Crash Bankrupt
8. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
Why Software Testing is Important?
Bugs in software or application can
likely lead to loss of monetary
value, jobs or even loss of a
human.
9. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
Who does Testing?
Software Testers
Project Developers Project Lead
Team Manager End Users
12. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
Waterfall Model
Requirement
Analysis
Analysis
Design
Code
Testing
Maintenance
The waterfall model is a project management methodology based on a sequential design process
13. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
Boehm Spiral Model
Plan Risk Analysis
Evaluate Engineering
Requirements
Gathering
Risk Reduction
Prototyping
Coding &
Testing
Customer
Evaluation
This Spiral model is a combination
of iterative development
process model and sequential
linear development model.
15. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
Principles of Software Testing
Detection of Bugs
Effectiveness Testing
Early Testing
Defect in Clustering
Testing is Context-Dependent
Error free testing is a myth
100% quality
16. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
Verification and Validation Model
User
Requirements
Software
Specification
Low level Design
High Level Design
Coding
Acceptance
Testing
System Testing
Unit Testing
Integration
Testing
Unit Test Plan
Integration Test Plan
System Test Plan
Acceptance Test Plan
18. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
Software Testing Life Cycle
Requirements Analysis1
Test Planning2
Test Case Development3
Environment Setup4
Test Execution5
Test Cycle Closure6
Software Testing Life Cycle (STLC) identifies
what test activities to carry out and when to
accomplish those test activities.
20. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
Types of Software Testing
Testing of software is done manually, without
the use of automated tool or applications
available in the market.
Automation testing is an Automatic technique
where the tester writes scripts by own and uses
suitable software to test the software.
23. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
Black-Box Testing
Black – Box
Testing
TEST CASE - INPUT TEST CASE - OUTPUT
This testing is also known as Behavioral Testing where the software tests the internal structural, design and
implementation and UI and UX of the product being tested which is not already known to the tester.
24. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
White-Box Testing
TEST CASE - INPUT TEST CASE - OUTPUT
This type of testing technique deals with testing the internal structure, logic design and implementation of
different modules.
White – Box
Testing
25. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
Grey-Box Testing
TEST CASE - INPUT TEST CASE - OUTPUT
In this software testing technique, it combines the concept of both Black box as well as White box testing. In Grey
box testing, internal implementation details is partly known to the tester.
Grey – Box
Testing
26. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
Functional & Non Functional Testing
Functional
Operation
Non-
Functional
▪ Performed before non-functional testing ▪ Performed after functional testing
▪ Describes what the product does ▪ Describes how the product works
▪ Unit Testing, Acceptance testing, Smoke
testing, Integration testing, regression
testing
▪ Performance Testing, Scalability,
Volume Testing, Load Testing, Stress
testing
▪ Based on customer requirements ▪ Based on customers expectations
30. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
Documentation Artifacts
Test Plan
1 2 3 4
Test Scenario Test Case Traceability Matrix
31. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
Documentation Artifacts
Test Plan
3
4
Test Scenario
Test Case
Traceability Matrix
2
1
32. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
Documentation Artifacts
Provides the outline strategy which will be implemented for testing the
application.
Test Plan
3
4
Test Scenario
Test Case
Traceability Matrix
2
1
33. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
Documentation Artifacts
Test Plan1
2
3
4
Test Scenario
Test Case
Traceability Matrix
It can be considered as a single line statement which notifies the area in which
your application will experiment.
Provides the outline strategy which will be implemented for testing the
application.
34. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
Documentation Artifacts
Test Plan1
2
3
4
Test Scenario
Test Case
Traceability Matrix
Test cases engage in collected steps and conditions with inputs which can be
implemented at the time of testing
It can be considered as a single line statement which notifies the area in which
your application will experiment.
Provides the outline strategy which will be implemented for testing the
application.
35. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
Documentation Artifacts
Test Plan1
2
3
4
Test Scenario
Test Case
Traceability Matrix Contains a table which sketches the requirements when your product's SDLC
model is being created.
Test cases engage in collected steps and conditions with inputs which can be
implemented at the time of testing
It can be considered as a single line statement which notifies the area in which
your application will experiment.
Provides the outline strategy which will be implemented for testing the
application.
37. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
Defect Management Process
Defect Detecting 01
Defect management can be defined as a process of detecting bugs and fixing them. It is necessary to say that
bugs occur constantly in the process of software development
Formulation of Bug reports 02
Bug Fixing 03
Bug list Creation 04
38. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
Defect/Bug Life Cycle
Active
Assign
Closed
Deferred
Rejected
New
Reopened
Verified
Test
40. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
What is Automation Testing?
Automation testing is an Automatic
technique where the tester writes
scripts by own and uses suitable
software to test the software. It is
basically an automation process of a
manual process.
43. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
What is Selenium?
Selenium is an open source tool which is used for automating the tests carried out on web browsers
(Web applications are tested using any web browser).
Selenium is Open
Source
Supports Cross
Browsing
Automates web
applications
44. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
Why Selenium IDE?
Test Scripts OS Platform Browsers
45. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
How To Locate Web Elements And Perform Action?
46. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
How to locate web elements and perform action?
49. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
Selenium Locators
There is a diverse range of web elements like textbox, id,
radio button etc., and identifying these elements is a tricky
approach. Selenium uses locators to interact with the web
elements on the webpage.
51. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
Types of Locators
CSS Selector
Link Text
Partial link text
ID
Name
Xpath
The Id strategy looks for an element in the page having an id attribute
corresponding to the specified pattern. <label id="my_id" /> will
be matched by a locator like id=my_id or just my_id
Target Format: id=id of the element
52. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
Types of Locators
CSS Selector
Link Text
Partial link text
ID
Name
Xpath
Locating elements by name are very similar to locating by ID, except
that we use the "name=" prefix instead.
Target Format: name=name of the element
53. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
Types of Locators
CSS Selector
Link Text
Partial link text
ID
Name
Xpath
This type of locator applies only to hyperlink texts. We access the link by
prefixing our target with "link=" and then followed by the hyperlink
text.
Target Format: link=link_text
54. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
Types of Locators
CSS Selector
Link Text
Partial link text
ID
Name
Xpath
Locating by CSS Selector using an HTML tag and a class name is similar
to using a tag and ID, but in this case, a dot (.) is used instead of a hash
sign.
Target Format:css=tag.class[attribute=value]
55. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
Types of Locators
CSS Selector
Link Text
Partial link text
ID
Name
Xpath
In some situations, we may need to find links by a portion of the text in a
Link Text element. it contains. In such situations, we use Partial Link Text
to locate elements.
Syntax:
findElement(By.partialLinkText("partialLinkText"));
56. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
Types of Locators
CSS Selector
Link Text
Partial link text
ID
Name
Xpath
XPath is designed to allow the navigation of XML documents, with the
purpose of selecting individual elements, attributes, or some other part
of an XML document for specific processing.
Xpath=//tagname[@Attribute=‘Value’]
57. SELENIUM CERTIFICATION TRAINING www.edureka.co/testing-with-selenium-webdriver
Selenium Locators Best Practices
Robust locators are simple and
small as possible
Robust locators still work after you
change the properties of UI Element
They work after you change
properties of UI Element around
the element you target