Software Testing.c
Software Testing.c
Moulika Mani.O
Content
1. Software Development Life Cycle
2. What is Software Testing?
3. Why should we do Software Testing?
4. Kinds of Testing
5. Types of Testing Methodologies
6. Differences between White Box and Black Testing
7. Black Box Testing
8. Kinds in Black Box Testing
9. Testing Life Cycle
10. Defect Life Cycle
11. Error, Defect, Bug & Failure
Content
12. What is Scenario?
13. Examples for Scenario
14. Customer’s Requirement Specification for Registration
15. Scenarios for Registration Button
16. Test Case for Registration Button
17. Differences between Scenario and Test Case
18. Differences between Priority & Severity
19. Automation Testing
20. Conversion of Test Case into Test Script in Selenium Tool
21. What is a Framework in Selenium?
22. Parallel Test Execution Report using TestNG Framework
23. Different Tools used for Automation Testing
Software Development Life Cycle
What is Software Testing?
Checking the functionality of an application is called
software testing.
Why should we do Software Testing?
Every software is developed to support the business.
If there is a defect in the software, it will affect the
business.
To ensure the quality of software application.
So, before we launch the software to the customer,
every defect should be identified and should be
resolved.
Kinds of Testing
Developers
write the
source code
If there is a defect
Types in Black Box Testing
Functional Non Functional
Smoke testing Compatibility
Functional testing Performance
Integration testing Usability
System testing Adhoc
Retesting Accessibility
Regression Globalization
Exploratory Recovery
Acceptance testing Aesthetic
1. Alpha Security
2. Beta
Testing Life Cycle
System study
Prepare RTM
Defect Tracking
Deferred
Assign
Duplicate
Can’t fix
Fixed Cannot Reproduce
Invalid / Rejected
RFE(Request for
Enhancement)
Closed Reopen
Error, Defect, Bug & Failure
“A mistake in coding is called Error, error found by
the tester is called Defect, defect accepted by
development team then it is called Bug, build does
not meet the requirements then it Is Failure.”
What is Scenario?
Testing the application in all possible ways.
To find the defects, we have to identify scenarios first.
Positive scenarios:
Testing an application with valid inputs.
Negative scenarios:
Testing an application with invalid inputs.
Examples for Scenario
Scenarios for Pen:
Positive:
Check if all parts of the pen fitted without any looses.
[Integration Testing]
Check if the pen ball is fitted properly and the ball is moving with ease.
[Integration Testing]
Check if the pen is writing on the page properly. [Functional Testing]
Check if the ink on the paper belongs with the similar color as what we
see in the refill. [Functional Testing]
Check if the pressure needs to be applied on the pen to write down on
page with least efforts. [Usability Testing]
Size and shape should be confirmable for writing. [UI Testing]
The logo has to be printed properly on the pen. [UI Testing]
Negative:
Check pen stress testing by dropping pen down from the practical
height and check if nothing is breaking, no any damage to pen and pen
is working without any issues.
Hold the pen upwards direction for some time and try to write on
paper.
Keep the pen in water and try to write on paper.
Check how the pen is working at different climate environmental
conditions like at room temperature, different climate conditions.
Customer’s Requirement Specification for Registration
Test Case:
Open Browser(chrome)
Enter website URL
Click on Login/Registration from header
The popup will be displayed
Enter Email Id(abc@gmail.com)
Enter Password(123456)
Click on the login button
Retrieve the “you're successfully login” message and
print it on a console.
Close the Browser.
Test Script:
Package week1;
Import org.openqa.selenium.by;
Public class Gharpe
{
public static void main(String[] args)
System.setProperty(“webdriver.chrome.driver”,”driver
location in our PC”);
chromeDriver.d1=new chromeDriver();
d1.get(“demo.gharpe.in/demo/”);
d1.findElement(By.className("nav-item6“)).click();
d1.findElement(By.xpath(“//input[@type=‘email’]”)).sendKeys(“abc@gmail.com”);
d1.findElement(By.xpath(“//input[@type=‘password’]”)).sendKeys(12345);
d1.findElement(By.xpath(“//button[@type=‘submit’]”)).click();
String s=d1.findElement(By.xpath(“//div[@toast-title=‘success’]”)).getText();
System.out.println(s);
d1.close();
}
What is a Framework in Selenium?
Framework means a set of rules we should follow to
achieve the following advantages
Maintenance of code in a very organized way.
Reduction in duplicate code.
Effective usage of time(Reduction of rework activity)
Types of Frameworks:
1. Data Driven Framework
2. TestNG Framework
3. Page Object Model Framework
Parallel Test Execution Report using TestNG Framework
Different Tools used for Automation Testing
Functional Testing Tools:
1. Selenium Web Driver – java, python, RoR(Ruby on Rails),
Perl.
2. QTP – Licence – VBS(Visual Basic Script), Java Script
3. Win Runner
4. Silk Test
5. Test Partner
Performance Testing Tools:
1. Load Runner - Licensed
2. J meter - Licensed
3. Silk Performance
4. Neo Load
5. QA Load(Quality Assurance)
Defect Tracking Tools:
1. QC(Quality Centre)/ALM(Application Life Cycle
Management) - Licensed
2. Jira – partially free of cost
3. Bugzilla
Test Management Tools:
1. QC/ALM
2. Jira
3. OTM(Oracle Test Manager) – Licensed
Automated Testing Tools for Mobile Apps:
1. Appium – Free - C#, Java, Ruby,
2. SeeTest- Licensed
3. Robotium – Free - Java
Any Queries?
THANK YOU