Types of Automation Testing and Their Applications
Types of Automation Testing and Their Applications
2
TYPES OF AUTOMATION TESTING
3
FUNCTIONAL TESTING
UNIT TESTING
• Unit testing involves testing individual components or
modules of a software application separately to ensure
that each one functions correctly.
• Typically conducted by developers during the coding
phase, it’s the first level of testing in the software
development lifecycle.
APPLICATIONS
• Testing a single method in a class to check if it returns
the correct output based on given inputs.
• In a software library, you might have a function that
calculates the area of a circle based on its radius. Unit
testing would involve writing tests that pass different
radius values to this function and checking if the output
is correct.
5
INTEGRATION TESTING
• Integration testing evaluates the interaction between
integrated modules or components to ensure they work
together as intended.
• This type of testing is crucial after unit testing and
before system testing, as it checks the interfaces
between modules.
APPLICATIONS
• Testing the interaction between the database and the
backend of an application to ensure data is correctly stored
and retrieved.
• In an e-commerce application, the payment gateway
module and the order processing module need to interact
seamlessly. Integration testing ensures that when a
payment is made, the order is correctly processed and
updated in the system.
6
SMOKE TESTING
• Smoke testing, also known as “build verification
testing,” is a preliminary test conducted to ensure that
the critical functionalities of the application are
working.
• It’s a shallow and wide approach to testing, covering
the most important aspects of the software without
going into finer details.
APPLICATIONS
• After a new software build, running smoke tests to
verify that the application launches successfully and
basic features like user login and navigation work
correctly
• 1.
7
NON - FUNCTIONAL
TESTING
PERFORMANCE TESTING
• Performance testing assesses how well the software
performs in terms of speed, responsiveness, and
stability under different load conditions.
• It helps identify performance bottlenecks and ensures
that the application can handle expected and peak
loads.
APPLICATIONS
• Determines how the application performs under
expected user loads.
• Evaluates how the application behaves under extreme
conditions or loads beyond its capacity.
• Checks how the application performs under a prolonged
load
9
REGRESSION TESTING
• Regression testing verifies that recent code changes
have not adversely affected the existing features of the
software.
• This type of testing ensures that new changes do not
introduce new bugs or issues in previously working
functionality.
APPLICATIONS
• Running a set of tests after adding new features or
fixing bugs to confirm that existing functionalities
remain intact.
• Automated regression tests run regularly in a
continuous integration (CI) pipeline to quickly detect
any issues introduced by new code changes.
10
KEYWORD-DRIVEN TESTING
• Keyword-driven testing uses a set of keywords or
action words defined in a data table to drive test
scripts.
• It enables testers to create and execute test cases by
associating keywords with specific actions, often
without needing extensive programming knowledge.
APPLICATIONS
• Using a table with keywords like “Login”, “Submit”, and
“Verify” to automate testing workflows in an
application.
• Implementing keyword-driven frameworks to enhance
test reusability and maintainability. .
11
DATA-DRIVEN TESTING
• Data-driven testing involves executing the same test
steps with different sets of input data.
• This approach is useful for scenarios where the
application needs to be tested with a variety of data
inputs to ensure consistent functionality.
APPLICATIONS
• Testing a form submission process with different sets of
user data, such as names, addresses, and emails, to
verify that the application handles various inputs
correctly.
• Running tests with different parameters to ensure that
the application behaves as expected across different
data sets.
12
SUMMARY
13
THANK YOU
Khushmn Sangha
22BCS14585
14