Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Each of the software testing type is designed to validate software for one or more of the
mentioned quality factors.
More types of software testing have evolved to keep up with the:
rapid increase in complexity of the software design,
frameworks & programming languages,
increased number of users with popularity of internet,
advent of new platforms & technologies
Reliability
Efficiency
Usability
Maintainability
Portability
Unit
Unit Testing
Testing
Volume Testing is to check that the system can handle a large amount of data. e.g. many records in a file.
Stress Testing is to what would happen outside its design expectations with respect to load or volume e.g.
too many users, too much data, too little time and too little room.
Database Testing - Structural database testing, Functional database testing, Checking data integrity and
consistency
IT Project
- A document that defines the scope, objective, approach and emphasis - A set of guidelines that explain test design and determines how testing
on test effort. needs to be done.
- TP Components: TP ID, features to be tested, test techniques, testing - TS Components: objective, scope, documentation format, test
Testing
tasks, pass or fail criteria, test deliverables, responsibilities, schedule, processes, team reporting, structure, client communication strategy, etc.
etc.
- Performed by testing manager or lead that describes ‘how’, ‘when’, - Performed by the PM. It says what type of technique to follow and
©2019
‘who’, ‘what’ which module to test.
- The test plan narrates about the specification - Test strategy narrates about the general approaches
- Done to determine possible issues and dependencies in order to identify - It is a long-term plan of action. You can abstract information that is not
the risks. project specific and put into test approach.
- A test plan exists individually - In smaller project, test strategy is often found as a section of a test plan.
- Is defined at project level - Is set at organizational level and can be used by multiple projects.
Please see the :-
TestPlan.docx file for
reference.
JUnit is an open source testing framework which is used to write and run
repeatable automated tests, so that we can be ensured that our code works as
expected.
JUnit is widely used in industry and can be used as stand alone Java program
(from the command line) or within an IDE such as NetBeans.
JUnit provides:
• Assertions for testing expected results.
• Test features for sharing common test data.
• Test suites for easily organizing and running tests.
• Graphical and textual test runners.
• an entire object
• part of an object - a method or some interacting methods
• interaction between several objects
Console Output
JUnit Output
IT Project Testing ©2020
Unit Testing
Advantages of Unit Testing:
Issues are found at early stage
Helps in maintaining and changing the code
Safe refactoring. Allows refactoring without fear of breaking the code.
Helps in reducing the cost of bug fixes
Helps in simplifying the debugging process
Enables developers to concentrate on the code and design.
One way to sum up the objectives of test management is answering the following
questions:
Why should I test?
What should I test?
Where do I test?
When do I test?
How do I conduct the tests?
W W W W W W W W W W W W W W W W