Different Forms of Software Testing Techniques For Finding Errors
Different Forms of Software Testing Techniques For Finding Errors
Abstract
Software testing is an activity which is aimed for evaluating an Testing is a process to identify the correctness
attribute or capability of a program and ensures that it meets and completeness of the software.
the required result. There are many approaches to software
testing, but effective testing of complex product is essentially a The general objective of software testing is to
process of investigation, not merely a matter of creating and
following route procedure. It is often impossible to find all the
affirm the quality of software system by
errors in the program. This fundamental problem in testing systematically exercising the software in
thus throws open question, as to what would be the strategy carefully controlled circumstances.
that we should adopt for testing. Thus, the selection of right
strategy at the right time will make the software testing Classified by purpose software testing can be divided
efficient and effective. In this paper I have described software into [4]
testing techniques which are classified by purpose.
Keywords: Correctness Testing, Performance Testing, 1. Correctness Testing
Reliability Testing, Security Testing 2. Performance Testing
3. Reliability Testing
4. Security Testing
1. Introduction
Software testing is a set of activities conducted with the 2. Software Testing Techniques
intent of finding errors in software. It also verifies and
validate whether the program is working correctly with Software testing is a process which is used to measure
no bugs or not. It analyzes the software for finding bugs. the quality of software developed. It is also a process of
Software testing is not just used for finding and fixing of uncovering errors in a program and makes it a feasible
bugs but it also ensures that the system is working task. It is useful process of executing program with the
according to the specifications. Software testing is a intent of finding bugs. The diagram below represents
series of process which is designed to make sure that the some of the most prevalent techniques of software
computer code does what it was designed to do. testing which are classified by purpose. [4]
Software testing is a destructive process of trying to find
the errors. The main purpose of testing can be quality
assurance, reliability estimation, validation or SOFTWARE
TESTING
verification. The other objectives or software testing
includes. [6][7][8]
Pros-
1. It is very expensive.
Fig. 2 Represent various form of correctness testing
2. Missed out the cases omitted in the code.
2.1.1 White Box Testing 2.1.2 Black Box Testing
White box testing based on an analysis of internal Basically Black box testing is an integral part of
working and structure of a piece of software. White box Correctness testing but its ideas are not limited to
testing is the process of giving the input to the system correctness testing only. Correctness testing is a method
and checking how the system processes that input to which is classified by purpose in software testing.
generate the required output. It is necessary for a tester
to have the full knowledge of the source code. White Black box testing is based on the analysis of the
box testing is applicable at integration, unit and system specifications of a piece of software without reference to
levels of the software testing process. In white box its internal working. The goal is to test how well the
testing one can be sure that all parts through the test component conforms to the published requirement for
objects are properly executed. [2][10] the component. Black box testing have little or no regard
to the internal logical structure of the system, it only
Analyze
OUTPUT
examines the fundamental aspect of the system. It makes
INPUT PROCESS
System Internal sure that input is properly accepted and output is
Working correctly produced. In black box testing, the integrity of
external information is maintained. The black box
Fig. 3 Represent working process of White Box Testing testing methods in which user involvement is not
required are functional testing, stress testing, load
Some synonyms of white box testing are [5] testing, ad-hoc testing, exploratory testing, usability
testing, smoke testing, recovery testing and volume
Logic Driven Testing testing, and the black box testing techniques where user
involvement is required are user acceptance testing,
IJCSI International Journal of Computer Science Issues, Vol. 7, Issue 3, No 1, May 2010 13
ISSN (Online): 1694-0784
ISSN (Print): 1694-0814
alpha testing and beta testing. Other types of Black box execution, analysis and reporting. This testing is
testing methods includes graph based testing method, conducted to evaluate the compliance of a system or
equivalence partitioning, boundary value analysis, component with specified performance requirement. [2]
comparison testing, orthogonal array testing, specialized Evaluation of a performance of any software system
testing, fuzz testing, and traceability metrics. [2] includes resource usage, throughput and stimulus
response time.
Pros-
4. More effective on larger units of code than Fig. 5 Represent two types of performance testing
clear box testing.
Some of the main goals of performance testing are: [5]
Cons-
Measuring response time of end to end
1. Test cases are hard to design without clear
transactions.
specifications.
Measurement of the delay of network between
2. Only small numbers of possible input can
client and server.
actually be tested.
Monitoring of system resources which are
3. Some parts of the back end are not tested at all.
under various loads.
2.1.3 Grey Box Testing Some of the common mistakes which happen during
performance testing are: [5]
Grey box testing techniques combined the testing
methodology of white box and black box. Grey box Ignoring of errors in input.
testing technique is used for testing a piece of software Analysis is too complex.
against its specifications but using some knowledge of Erroneous analysis.
its internal working as well. [2] Level of details is inappropriate.
Ignore significant factors.
Grey box testing may also include reverse engineering to Incorrect Performance matrix.
determine, for instance, boundary values or error Important parameter is overlooked.
messages. Grey box testing is a process which involves Approach is not systematic.
testing software while already having some knowledge
of its underline code or logic. The understanding of There are seven different phases in performance testing
internals of the program in grey box testing is more than process: [5]
black box testing, but less than clear box testing. [11]
Phase 1 Requirement Study
2.2 Performance Testing Phase 2 Test plan
Phase 3 Test Design
'Performance Testing' involve all the phases as the Phase 4 Scripting
mainstream testing life cycle as an independent Phase 5 Test Execution
discipline which involve strategy such as plan, design, Phase 6 Test Analysis
IJCSI International Journal of Computer Science Issues, Vol. 7, Issue 3, No 1, May 2010 14
ISSN (Online): 1694-0784
ISSN (Print): 1694-0814
Phase 7 Preparation of Report handle the anticipated no. of users or not. This can be
Requirement done by making the virtual user to exhibit as real user so
Collection that it will be easy to perform load testing. It is carried
only to check whether the system is performing well or
not. The main objective of load testing is to check
whether the system can perform well for specified user
Preparation of or not. Load testing increases the up time for critical
Plan web applications by helping us to spot the bottle necks
in the system which is under large user stress.
Strong Points
2.2.1 Load Testing
1. No other type of test can find defect as stress
Load Testing is an industry term for the effort of testing.
performance testing. The main feature of the load testing 2. Robustness of application is tested.
is to determine whether the given system is able to
IJCSI International Journal of Computer Science Issues, Vol. 7, Issue 3, No 1, May 2010 15
ISSN (Online): 1694-0784
ISSN (Print): 1694-0814
2. Vulnerability Scanning: Various vulnerability 3. Reliability testing, which discovers all the failure of
scanning software performs Vulnerability the system and removes them before the system
Scanning, which involves the scanning of the deployed.
program for all known vulnerability.
4. Security testing makes sure that only the authorized
personnel can access the system and is further
3. Risk Assessment: Risk Assessment is a divided into Security Auditing and Scanning,
method in which the auditors analyze the risk Vulnerability Scanning, Risk Assessment, Posture
involved with any system and all the Assessment and Security Testing, Penetration
probability of loss which occurs because of Testing and Ethical Hacking.
that risk. It is analyzed through interviews,
discussions, etc. The successful use of these techniques in industrial
software development will validate the results of the
4. Posture Assessment and Security Testing: research and drive future research. [8]
Posture Assessment and Security Testing help
the organization to know where it stands in References:
context of security by combining the features
of security scanning, risk assessment and [1] Software testing-Brief introduction to security
ethical hacking. testing by Nilesh Parekh published on 14-07-2006
available at http://www.buzzle.com/editorial/7-14-
5. Penetration Testing: Penetration Testing is an 2006-102344.asp
effective way to find out the potential [2] Software testing glossary available at
loopholes in system and it is done by a tester http://www.aptest.com/glossary.html#performance
testing
which forcibly enters into the application [3] Open source security testing methodology manual of
under test. A tester enters into the system with PETE HERZOG and the institute for security and
the help of combination of loopholes that the open methodology-ISECOM.
application has kept open unknowingly. [4] Software testing by Jiantao Pan available at
http://www.ece.cmu.edu/~roopman/des-
6. Ethical Hacking: Ethical Hacking involves 899/sw_testing/
large no. of penetration test on a system under [5] Software Testing by Cognizant Technology Solution.
test. To stop the forced entry of any external [6] Introduction to software testing available at
elements into a system which is under security http://www.onestoptetsing.com/introduction/
[7] Software testing techniques available at
testing. http://pesona.mmu.edu.my/~wruslan/SE3/Readings/
GB1/pdf/ch14-GB1
[8] Paper by Lu Luo available at
3. Conclusion http://www.cs.cmu.edu/~luluo/Courses/17939Report
.pdf
Software testing is an important technique for the [9] Security testing-wikipedia the free encyclopedia
improvement and measurement of a software system available at http://en.wikipedia.org/wiki/security-
quality. But it is really not possible to find out all the tetsing.
errors in the program. So, the fundamental question [10] White box testing from wikipedia, the free
arises, which strategy we would adopt to test. In my encyclopedia.
[11] Software testing for wikipedia available at
paper, I have described some of the most prevalent and
http://en.wikipedia.org/wiki/grey_box_testing#grey_
commonly used strategies of software testing which are box_tetsing
classified by purpose and they are classified into [5]