SlideShare a Scribd company logo
1 of 9
Download to read offline
International Journal of Computer Science, Engineering and Applications (IJCSEA) Vol.2, No.3, June 2012
DOI : 10.5121/ijcsea.2012.2309 99
AN APPROACH FOR TEST CASE PRIORITIZATION
BASED UPON VARYING REQUIREMENTS
ASEEM KUMAR
1
, SAHIL GUPTA
2
, HIMANSHI REPARIA
3
, HARSHPREET SINGH
4
1
Research scholar, Department of Computer Engineering, Lovely Professional
University, Phagwara, India
aseem.kumar6@gmail.com
2
Research scholar, Department of Computer Engineering, Lovely Professional
University, Phagwara, India
sahil.gupta2688@gmail.com
3
AssistantProfessor, Department of Computer Engineering, Lovely Professional
University, Phagwara, India
himanshi19.rpr@gmail.com
4
Assistant Professor, Department of Computer Engineering, Lovely Professional
University, Phagwara, India
harshpreet.15790@lpu.co.in
ABSTRACT
Software testing is a process continuously performed by the development team during the life cycle of the
software with the motive to detect the faults as early as possible. Regressing testing is the most suitable
technique for this in which we test number of test cases. As the number of test cases can be very large it is
always preferable to prioritize test cases based upon certain criterions.In this paper prioritization strategy
is proposed which prioritize test cases based on requirements analysis. By regressing testing if the
requirements will vary in future, the software will be modified in such a manner that it will not affect the
remaining parts of the software. The proposed system improves the testing process and its efficiency to
achieve goals regarding quality, cost, and effort as well user satisfaction and the result of the proposed
method evaluated with the help of performance evaluation metric.
KEYWORDS
Regression testing, Test case prioritization, test cases, Test case weightage, requirement analysis
1. INTRODUCTION
Basically Software is the process in which series of instructions for the computer that performs a
particular task called a Program. System software and application software are the two major
categories of software we have in the current scenario. Any program that processes data for the
International Journal of Computer Science, Engineering and Applications (IJCSEA) Vol.2, No.3, June 2012
100
user is known as application software for example sword processor, payroll, Application software
etc. [1].
Generally a software product should only be released after it has gone through a proper process of
development, testing schemes and bug fixing. Areas such as performance, stability and error
handling by setting up test scenarios under controlled conditions and assessing the results comes
under software testing. This is exact reason why software has to be tested. The main purpose or
software is mainly tested to check that it meets the customer’s needs, expectation etc. It is a usual
norm that software is considered of good quality if it meets the all the requirements of user. [9]
Whenever software is under the process of modification or under the process of updating some
test cases needs to run and the comparison of new outputs based upon test cases is done with the
older one to detect and to curtail any unnecessary changes. As a result of these comparisons if the
proper matching of both new and old output (after modification) is there then it leads to the
conclusion that the amendments in one part of the software would no longer effective to the other
parts of the software. [1]Changes in the requirements or amendments in maintenance or evolution
purposes may break existing working features, or may violate the requirements established in the
previous software releases. If the requirements keep on varying it leads to the effect the existing
working of the software. To resolve the above problems Regression testing is essential.
Regression testing is one of the most crucial and critical activities of software development and
maintenance purpose [9].Regression testing has been used during the development and
maintenance of a software product to assist software-testing activities and guarantee the
attainment of adequate quality through various versions of the software product [2]. Regression
testing permits to test modified software to provide confidence that no new errors are introduced
into previously tested code. Regression test selection techniques attempt to reduce the cost of
regression testing by selecting and running only a subset of the test cases in existing test suite [3]
.Whenever software is modified with regression testing execution of number of time consuming
test cases required. As In regression testing large number of test cases needs to be run therefore it
is an impractical approach to run all the possible test cases. In order to make it much simpler
prioritization technique of the possible test cases proposed, in which test cases having high
priority according to some criterion, executed first then those having lower priority so that to
enhance the performance.
2. TEST CASE PRIORITIZATION
In last few years, several researchers have done good amount of research on the test case
prioritization problem and presented techniques for the same. Research has shown that at least
50% of the total cost of software development consists of testing activities [4].which is very high
as compare to the other cost consuming activities. Proper behaviour of the software can be
ensured and absence of unexpected faults also called as regression faults in the introduced
changes can be confirmed by employing regression testing to the software [5].Rate of regression
fault detection can be increased up to greater extent during software development by adopting test
case prioritization techniques [6].In prioritization techniques test suites are prioritized according
to some factors. Very less amount of researchers inclined towards requirement analysis phase
using this technique.
International Journal of Computer Science, Engineering and Applications (IJCSEA) Vol.2, No.3, June 2012
101
3. PROPOSED TEST CASE PRIORITIZATION STRATEGY
In order to cover the changing requirements and theirs impacts over other modulesweightage is
calculated of test cases on basis two requirements based factor Whichare considered as Rfactors
and requirement priority (RPriority)computed from those two Reactor’sR-value and Reweight.In
the proposed strategy an algorithm is proposed which prioritized the test cases according the test
case weightage (TCW).
3.1. Requirement Factors (RFactors)
On the basis of requirement analysis the two factors are considered and later on RValue of
requirement factor calculated for individual factor. The Rfactors considered are as follows:
3.1.1. Requirement Modification Impact Localization (RMIL)
It is the measure of how much impact produced by the change in any requirement during the
development phase from its original state i.e. change of state from the first time when
requirement are gathered from the user. It is a measure assigned by the developer initially
between the ranges of 1 to 10.which is the RWeight of this Rfactor It is computed from the
number of times that particular requirement changed till present time from the first time
requirements gathered from the user in the requirement analysis phase of software development.
The values for all the requirements are assigned on a 10-point scale which states that a
requirement is altered more than 10 times.RValueofRMIL is calculated by dividing the number of
changes for any requirement R divided to the maximum number of changes to be made as a result
of change in that requirement R among entire project requirements. If the requirement R is
changed P times and Q is the maximum number of requirements the RValue of RMIL of R is
calculated as
RValueof RMIL = (P/Q) * 10
To calculate RValue on a 10 point scale we multiply with 10 in above equation.
3.2.2. Degree of Coupling (DCP )
It is the Degree of coupling of the particular requirement with other requirements. It suggests the
how much one requirement is interlinked with other requirements, and the number of levels of
changes to be made in other requirements with the change of a particular requirement. Its weight
is assigned developer initially by the development between the ranges of 1 to 10. And this is the
RWeight of this Rfactor.In this paper we have discuss three levels of coupling to calculate
itsRValue which are as follows:
3.2.2.1.Level 1
This level of coupling states that change of one requirement leads to change in one requiement.it
means one particular requirement is interlinked with 1 another requirement. The Relationamong
the those two requirements is 1:1
International Journal of Computer Science, Engineering and Applications (IJCSEA) Vol.2, No.3, June 2012
102
3.2.2.2. Level 2
This level of coupling states that change in one requirement leads to the change in 2 or more
requirements. It means one particular requirement is interlinked with 2 another requirement
Relation among the requirements is 1: N where N is >= 2
3.2.2.3. Level 3
This level of coupling states that change in one requirement leads to the change in 3 or more
requirements. It means one particular requirement is interlinked with 3another requirement
Relation among the requirements is 1: M where M is>= 3
To understand this concept more consider a practical example of a student who takes admission
in a university under a specific course name, and registration no. And allotment of hostel and
food facility in hostel also has done with these credentials of the student. If later on student
changes his course then his course name also changes and as a result of this necessary changes
should be made in the records of hostel and changes made in hostel allotment records leads to the
changes in the records of food facility of hostel. Thus this change in student course name leads to
the changes up to two levels of requirements.
Logically if the course name is requirement R1 during admission of student it is R2, R3 while
allotment of hostel and food facility respectively
Then
R1 R2 (Level 1)
R2R3(Level 2)
From the equation it is clear that changes in R1 leads to changes in R2 and changes in R2leads to
changes in R3 i.e. Requirement R1is interlinked with two requirement and changes in R1 leads to
thechanges up to two levels. This is an example of Level 2 type of coupling.
Therefore DCPi.e. Degree of coupling for of R1 is 2.Which means its RValue is 2
3.2. Prioritization Technique
In this paper the proposed work goes in two different steps, each step has its own importance
and impact. Those two steps are as follows
3.2.1. Computation Of Requirement Priority(RPriority)
Value of Requirement Priority (RPriority) states that priority the test case that consists of a
particularrequirement. RPriority for each of the requirement r is calculated from the above
stated two factors. Higher the RPriority higher the need of testing the test case containing that
requirement.
International Journal of Computer Science, Engineering and Applications (IJCSEA) Vol.2, No.3, June 2012
103
RPrioirty =∑ ( . ∗ )









.. (1)
Where k is the no of Rfactors considered. We consider two Rfactors , k =2
3.2.2. Test Case Weightage (TCW)
Every test case will be weighted before prioritization based upon certain criteria so that they
can be tested accordingly. TCW in the proposed technique is based on RPrioirty.Test cases
consists of high priority requirement calculated from equation 1 higher the priority of that
test case.
3.3. Proposed Prioritization Algorithm
After computing the test case weightage for each of the test case, on the basis of TCW
each test case will be prioritize before testing with the help of proposed algorithm in
the proposed prioritization strategy. The algorithm gets input as test suite T, test case
weightage of each test case is computed and the output of the algorithm is the final
prioritized test case order.
Algorithm:
1. Begin
2. Set T’ empty
3. for each test case t Δ T
4. Calculate RPriority = ∑ ( . ∗ )
5.
Deduce TCW from RPriority
6. end for
7. Sort T in descending order on the value of test case weightage
8. Let T’ be T
9. End
4. PRIORITISED TEST SUITE EFFECTIVENESS
After ordering the various test cases using prioritization strategy the performance of test suite
also needs to be evaluated. It may be measured using various methods. It is always on a
positive side to assess the effectiveness of the ordering of the test suite. Effectiveness is
being measured by the rate of faults detected. We deduced a metrics MRPfrom APFD matric
that is used to calculate the level of effectiveness
4.1 MRP Metric
The metric which wasdeveloped by Elbaum et al [8] that measures the rate of fault detection
per percentage of test suite execution known as APFD metric.
APFD can be calculated as:
International Journal of Computer Science, Engineering and Applications (IJCSEA) Vol.2, No.3, June 2012
104
APFD = 1- (Tf1+Tf2+Tf3 -------- + Tfm ) / nm + 1/2n
Where n is the number of test cases and m is the number of faults detected .With the help of
APFD metrics (a performance analysis matric for test cases) to measure the effectiveness of
proposed prioritizationstrategy APFD metric can be deduced following metric based the
requirements and its priority[10]
MRP= 1 - (TR1+TR2+TR3 -------- + TRm) / nm + 1/2n
Where n is the number of test cases and m is the number of requirements.
5 AN EXAMPLE
To understand to working of the proposed technique suppose we have requirement of the
project as R= (R1, R2, R3, R4), Test Suite T= (T1, T2, T3, T4), RValue and Rweight also
suggested in the table below. We can calculate the RPriority and TCW for each test case.
Table1. Test Cases Containing Requirements
R
T
R1 R2 R3 R4
T1 X X
T2 X X
T3 X X
T4 X X
Table 2. RWeight and RPriority
RFactor
Weight
(RWeight)
R
RFactor
R1 R2 R3 R4
2 RMIL 3 6 5 2
2 DCp 3 5 4 5
RPriority 12 22 18 14
International Journal of Computer Science, Engineering and Applications (IJCSEA) Vol.2, No.3, June 2012
105
From the Table 2.It is clear thatRPriority R2>RPriorityR3> RPriorityR4 > RPriority R1 . Thus the
order of execution of test cases weightage (TCW) computed from algorithm will be T1>T3 >T2
>T4.Test cases will be executed in this order and finally result will be evaluated with the MRP
Metric to compute the effectiveness of proposed strategy.
6. WORK FLOW OF PROPOSED PRIORITIZATION STRATEGY
Computation of RPriorityon the
Basis Of Rfactor’sRWeight
and RValue
Compute TCW from
Priorityfor Each Test Case
Ordering Of Test Suite from
Proposed ALGORITHM
Testing Of Prioritized Test
Suite
End
Evaluation of Testing Result
Using MRP Metric
START
International Journal of Computer Science, Engineering and Applications (IJCSEA) Vol.2, No.3, June 2012
106
7. CONCLUSION
In this paper we describe requirement based test case prioritization technique. This proposed
technique is highly useful to identity and evaluate various issues arises while working with
varying requirement environment. The proposed prioritization technique used most efficient
factors to prioritize test suite because the errors introduced in the requirement phase is
approximately 50% of all faults detected in the entire project. The change in requirements is the
major factor attributable to the failure of the project so we prioritize test cases according to
requirement priority and requirement factors.
ACKNOWLEDGEMENTS
We would like to express my gratitude to god and all the people who helped us in compilation of
this work and devote their precious time in this work.
REFERENCES
[1] Glenford J.Mayers, 2004,”The Art of Software Testing”, John Wiley & Sons publication
[2] Hyuncheol Park, HoyeonRyu, JongmoonBaik, (2008) "Historical Value-Based Approach for Cost-
cognizant Test Case Prioritization to Improve the Effectiveness of Regression Testing”, The
Second International Conference on Secure System Integration and Reliability Improvement, pp39-46
[3] Henry Muccini, Marcio Dias, Debra J. Richardson,( 2006)"Software Architecture-based Regression
Testing”, Journal of Systems and Software, Vol 79,No 10, pp 1379-1396
[4] M. Harrold, (2000), testinga roadmap, International Conference on Software Engineering,Limerick,
Ireland, 2000, pp. 61–72.
[5] Alessandro Orso, Nanjuan Shi and Mary Jean Harrold, (2004) "Scaling regression testing to large
software systems"(2004) 12th ACM SIGSOFT twelfth international symposium on Foundations of
software engineering, Vol.29, No.6,
[6] Sujatha, Mohit Kumar and Varun Kumar, (2010) "Requirements based Test Case Prioritization using
Genetic Algorithm", International Journal of Computer Science and Technology, Vol.1, No, 2,
pp.189-191.
[7] R. Kavitha and N.Suresh Kumar, “Factors Oriented Test Case Prioritization Technique in Regression
Testing “European Journal of Scientific Research ,ISSN 1450-216X Vol.55 No.2 (2011), pp.261-274
[8] S. Elbaum, A. G. Malishevsky and G. Rothermel,(2001), “Incorporating varying test costs and fault
severities into test case prioritization” ,23rd International Conference of Software Engineering, pages
329-338
[9] C.Padmini 2004 “Beginner Guide to Software Testing”.
[10] Xiaofang Zhang ,Changhai Nie,Baowen Xu,Bo Qu (2007) “Test Case Prioritization based on
Varying Testing Requirement Priorities and Test Case Costs” 17th International Conference on
Quality Software (QSIC 2007)
International Journal of Computer Science, Engineering and Applications (IJCSEA) Vol.2, No.3, June 2012
107
Authors
Aseem Kumar received Bachelor of Technology from Lovely Professional University,
Punjab, India and Currently Pursuing Masters in Technology from Lovely Professional
University. His areas of interest include Software Testing, Test Case Prioritization, and
Requirement Prioritization
Sahil Gupta received Bachelor of Technology from Lovely Professional University,
Punjab, India and Currently Pursuing Masters in Technology from Lovely Professional
University. His areas of interest include Software Engineering, Test Case Prioritization,
and Functional Testing
Himanshi Reperia is Post Graduate in Computer Science and is currently working as
Assistant Professor at Lovely Professional University. She has a teaching Experience of
around 1year. Her areas of interest are Software Engineering and Testing
Harshpreet Singh is Post Graduate in Computer Science and is currently working as
Assistant Professor at Lovely Professional University. He has a teaching Experience of
around 1 year. His areas of interest include Software Engineering, Software Testing,
and distributed systems.
International Journal of Computer Science, Engineering and Applications (IJCSEA) Vol.2, No.3, June 2012
107
Authors
Aseem Kumar received Bachelor of Technology from Lovely Professional University,
Punjab, India and Currently Pursuing Masters in Technology from Lovely Professional
University. His areas of interest include Software Testing, Test Case Prioritization, and
Requirement Prioritization
Sahil Gupta received Bachelor of Technology from Lovely Professional University,
Punjab, India and Currently Pursuing Masters in Technology from Lovely Professional
University. His areas of interest include Software Engineering, Test Case Prioritization,
and Functional Testing
Himanshi Reperia is Post Graduate in Computer Science and is currently working as
Assistant Professor at Lovely Professional University. She has a teaching Experience of
around 1year. Her areas of interest are Software Engineering and Testing
Harshpreet Singh is Post Graduate in Computer Science and is currently working as
Assistant Professor at Lovely Professional University. He has a teaching Experience of
around 1 year. His areas of interest include Software Engineering, Software Testing,
and distributed systems.
International Journal of Computer Science, Engineering and Applications (IJCSEA) Vol.2, No.3, June 2012
107
Authors
Aseem Kumar received Bachelor of Technology from Lovely Professional University,
Punjab, India and Currently Pursuing Masters in Technology from Lovely Professional
University. His areas of interest include Software Testing, Test Case Prioritization, and
Requirement Prioritization
Sahil Gupta received Bachelor of Technology from Lovely Professional University,
Punjab, India and Currently Pursuing Masters in Technology from Lovely Professional
University. His areas of interest include Software Engineering, Test Case Prioritization,
and Functional Testing
Himanshi Reperia is Post Graduate in Computer Science and is currently working as
Assistant Professor at Lovely Professional University. She has a teaching Experience of
around 1year. Her areas of interest are Software Engineering and Testing
Harshpreet Singh is Post Graduate in Computer Science and is currently working as
Assistant Professor at Lovely Professional University. He has a teaching Experience of
around 1 year. His areas of interest include Software Engineering, Software Testing,
and distributed systems.

More Related Content

What's hot

Cost Based Performance Modelling
Cost Based Performance ModellingCost Based Performance Modelling
Cost Based Performance ModellingEugene Margulis
 
An empirical evaluation of
An empirical evaluation ofAn empirical evaluation of
An empirical evaluation ofAadhityaa Infomedia
 
Chapter 2 - Test Management
Chapter 2 - Test ManagementChapter 2 - Test Management
Chapter 2 - Test ManagementNeeraj Kumar Singh
 
ANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICS
ANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICSANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICS
ANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICSijcsa
 
A NOVEL APPROACH FOR TEST CASEPRIORITIZATION
A NOVEL APPROACH FOR TEST CASEPRIORITIZATIONA NOVEL APPROACH FOR TEST CASEPRIORITIZATION
A NOVEL APPROACH FOR TEST CASEPRIORITIZATIONIJCSEA Journal
 
Class quality evaluation using class quality
Class quality evaluation using class qualityClass quality evaluation using class quality
Class quality evaluation using class qualityIAEME Publication
 
Parameter Estimation of GOEL-OKUMOTO Model by Comparing ACO with MLE Method
Parameter Estimation of GOEL-OKUMOTO Model by Comparing ACO with MLE MethodParameter Estimation of GOEL-OKUMOTO Model by Comparing ACO with MLE Method
Parameter Estimation of GOEL-OKUMOTO Model by Comparing ACO with MLE MethodIRJET Journal
 
Analysis of Software Complexity Measures for Regression Testing
Analysis of Software Complexity Measures for Regression TestingAnalysis of Software Complexity Measures for Regression Testing
Analysis of Software Complexity Measures for Regression TestingIDES Editor
 
The Impact of Software Complexity on Cost and Quality - A Comparative Analysi...
The Impact of Software Complexity on Cost and Quality - A Comparative Analysi...The Impact of Software Complexity on Cost and Quality - A Comparative Analysi...
The Impact of Software Complexity on Cost and Quality - A Comparative Analysi...ijseajournal
 
@#$@#$@#$"""@#$@#$"""
@#$@#$@#$"""@#$@#$"""@#$@#$@#$"""@#$@#$"""
@#$@#$@#$"""@#$@#$"""nikhilawareness
 
Importance of Testing in SDLC
Importance of Testing in SDLCImportance of Testing in SDLC
Importance of Testing in SDLCIJEACS
 

What's hot (13)

Test design techniques
Test design techniquesTest design techniques
Test design techniques
 
Cost Based Performance Modelling
Cost Based Performance ModellingCost Based Performance Modelling
Cost Based Performance Modelling
 
An empirical evaluation of
An empirical evaluation ofAn empirical evaluation of
An empirical evaluation of
 
Chapter 2 - Test Management
Chapter 2 - Test ManagementChapter 2 - Test Management
Chapter 2 - Test Management
 
ANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICS
ANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICSANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICS
ANALYSIS OF SOFTWARE QUALITY USING SOFTWARE METRICS
 
A NOVEL APPROACH FOR TEST CASEPRIORITIZATION
A NOVEL APPROACH FOR TEST CASEPRIORITIZATIONA NOVEL APPROACH FOR TEST CASEPRIORITIZATION
A NOVEL APPROACH FOR TEST CASEPRIORITIZATION
 
Class quality evaluation using class quality
Class quality evaluation using class qualityClass quality evaluation using class quality
Class quality evaluation using class quality
 
Parameter Estimation of GOEL-OKUMOTO Model by Comparing ACO with MLE Method
Parameter Estimation of GOEL-OKUMOTO Model by Comparing ACO with MLE MethodParameter Estimation of GOEL-OKUMOTO Model by Comparing ACO with MLE Method
Parameter Estimation of GOEL-OKUMOTO Model by Comparing ACO with MLE Method
 
Analysis of Software Complexity Measures for Regression Testing
Analysis of Software Complexity Measures for Regression TestingAnalysis of Software Complexity Measures for Regression Testing
Analysis of Software Complexity Measures for Regression Testing
 
The Impact of Software Complexity on Cost and Quality - A Comparative Analysi...
The Impact of Software Complexity on Cost and Quality - A Comparative Analysi...The Impact of Software Complexity on Cost and Quality - A Comparative Analysi...
The Impact of Software Complexity on Cost and Quality - A Comparative Analysi...
 
@#$@#$@#$"""@#$@#$"""
@#$@#$@#$"""@#$@#$"""@#$@#$@#$"""@#$@#$"""
@#$@#$@#$"""@#$@#$"""
 
O0181397100
O0181397100O0181397100
O0181397100
 
Importance of Testing in SDLC
Importance of Testing in SDLCImportance of Testing in SDLC
Importance of Testing in SDLC
 

Similar to AN APPROACH FOR TEST CASE PRIORITIZATION BASED UPON VARYING REQUIREMENTS

A Complexity Based Regression Test Selection Strategy
A Complexity Based Regression Test Selection StrategyA Complexity Based Regression Test Selection Strategy
A Complexity Based Regression Test Selection StrategyCSEIJJournal
 
QUALITY METRICS OF TEST SUITES IN TESTDRIVEN DESIGNED APPLICATIONS
QUALITY METRICS OF TEST SUITES IN TESTDRIVEN DESIGNED APPLICATIONSQUALITY METRICS OF TEST SUITES IN TESTDRIVEN DESIGNED APPLICATIONS
QUALITY METRICS OF TEST SUITES IN TESTDRIVEN DESIGNED APPLICATIONSijseajournal
 
FROM THE ART OF SOFTWARE TESTING TO TEST-AS-A-SERVICE IN CLOUD COMPUTING
FROM THE ART OF SOFTWARE TESTING TO TEST-AS-A-SERVICE IN CLOUD COMPUTINGFROM THE ART OF SOFTWARE TESTING TO TEST-AS-A-SERVICE IN CLOUD COMPUTING
FROM THE ART OF SOFTWARE TESTING TO TEST-AS-A-SERVICE IN CLOUD COMPUTINGijseajournal
 
From the Art of Software Testing to Test-as-a-Service in Cloud Computing
From the Art of Software Testing to Test-as-a-Service in Cloud ComputingFrom the Art of Software Testing to Test-as-a-Service in Cloud Computing
From the Art of Software Testing to Test-as-a-Service in Cloud Computingijseajournal
 
LusRegTes: A Regression Testing Tool for Lustre Programs
LusRegTes: A Regression Testing Tool for Lustre Programs LusRegTes: A Regression Testing Tool for Lustre Programs
LusRegTes: A Regression Testing Tool for Lustre Programs IJECEIAES
 
Configuration Navigation Analysis Model for Regression Test Case Prioritization
Configuration Navigation Analysis Model for Regression Test Case PrioritizationConfiguration Navigation Analysis Model for Regression Test Case Prioritization
Configuration Navigation Analysis Model for Regression Test Case Prioritizationijsrd.com
 
Test case-point-analysis (whitepaper)
Test case-point-analysis (whitepaper)Test case-point-analysis (whitepaper)
Test case-point-analysis (whitepaper)KMS Technology
 
Software Quality Analysis Using Mutation Testing Scheme
Software Quality Analysis Using Mutation Testing SchemeSoftware Quality Analysis Using Mutation Testing Scheme
Software Quality Analysis Using Mutation Testing SchemeEditor IJMTER
 
A model for run time software architecture adaptation
A model for run time software architecture adaptationA model for run time software architecture adaptation
A model for run time software architecture adaptationijseajournal
 
Software testing techniques - www.testersforum.com
Software testing techniques - www.testersforum.comSoftware testing techniques - www.testersforum.com
Software testing techniques - www.testersforum.comwww.testersforum.com
 
Developing software analyzers tool using software reliability growth model
Developing software analyzers tool using software reliability growth modelDeveloping software analyzers tool using software reliability growth model
Developing software analyzers tool using software reliability growth modelIAEME Publication
 
Developing software analyzers tool using software reliability growth model
Developing software analyzers tool using software reliability growth modelDeveloping software analyzers tool using software reliability growth model
Developing software analyzers tool using software reliability growth modelIAEME Publication
 
Quality Attribute: Testability
Quality Attribute: TestabilityQuality Attribute: Testability
Quality Attribute: TestabilityPranay Singh
 
Principles and Goals of Software Testing
Principles and Goals of Software Testing Principles and Goals of Software Testing
Principles and Goals of Software Testing INFOGAIN PUBLICATION
 
Some practical considerations and a
Some practical considerations and aSome practical considerations and a
Some practical considerations and aijseajournal
 
Acceptance test driven development
Acceptance test driven developmentAcceptance test driven development
Acceptance test driven developmentEditor Jacotech
 
IRJET- Factors Affecting the Delivery of Quality Software and their Relations...
IRJET- Factors Affecting the Delivery of Quality Software and their Relations...IRJET- Factors Affecting the Delivery of Quality Software and their Relations...
IRJET- Factors Affecting the Delivery of Quality Software and their Relations...IRJET Journal
 
An interactive approach to requirements prioritization using quality factors
An interactive approach to requirements prioritization using quality factorsAn interactive approach to requirements prioritization using quality factors
An interactive approach to requirements prioritization using quality factorsijfcstjournal
 

Similar to AN APPROACH FOR TEST CASE PRIORITIZATION BASED UPON VARYING REQUIREMENTS (20)

C41041120
C41041120C41041120
C41041120
 
A Complexity Based Regression Test Selection Strategy
A Complexity Based Regression Test Selection StrategyA Complexity Based Regression Test Selection Strategy
A Complexity Based Regression Test Selection Strategy
 
QUALITY METRICS OF TEST SUITES IN TESTDRIVEN DESIGNED APPLICATIONS
QUALITY METRICS OF TEST SUITES IN TESTDRIVEN DESIGNED APPLICATIONSQUALITY METRICS OF TEST SUITES IN TESTDRIVEN DESIGNED APPLICATIONS
QUALITY METRICS OF TEST SUITES IN TESTDRIVEN DESIGNED APPLICATIONS
 
FROM THE ART OF SOFTWARE TESTING TO TEST-AS-A-SERVICE IN CLOUD COMPUTING
FROM THE ART OF SOFTWARE TESTING TO TEST-AS-A-SERVICE IN CLOUD COMPUTINGFROM THE ART OF SOFTWARE TESTING TO TEST-AS-A-SERVICE IN CLOUD COMPUTING
FROM THE ART OF SOFTWARE TESTING TO TEST-AS-A-SERVICE IN CLOUD COMPUTING
 
From the Art of Software Testing to Test-as-a-Service in Cloud Computing
From the Art of Software Testing to Test-as-a-Service in Cloud ComputingFrom the Art of Software Testing to Test-as-a-Service in Cloud Computing
From the Art of Software Testing to Test-as-a-Service in Cloud Computing
 
LusRegTes: A Regression Testing Tool for Lustre Programs
LusRegTes: A Regression Testing Tool for Lustre Programs LusRegTes: A Regression Testing Tool for Lustre Programs
LusRegTes: A Regression Testing Tool for Lustre Programs
 
Configuration Navigation Analysis Model for Regression Test Case Prioritization
Configuration Navigation Analysis Model for Regression Test Case PrioritizationConfiguration Navigation Analysis Model for Regression Test Case Prioritization
Configuration Navigation Analysis Model for Regression Test Case Prioritization
 
Test case-point-analysis (whitepaper)
Test case-point-analysis (whitepaper)Test case-point-analysis (whitepaper)
Test case-point-analysis (whitepaper)
 
Software Quality Analysis Using Mutation Testing Scheme
Software Quality Analysis Using Mutation Testing SchemeSoftware Quality Analysis Using Mutation Testing Scheme
Software Quality Analysis Using Mutation Testing Scheme
 
A model for run time software architecture adaptation
A model for run time software architecture adaptationA model for run time software architecture adaptation
A model for run time software architecture adaptation
 
Too many files
Too many filesToo many files
Too many files
 
Software testing techniques - www.testersforum.com
Software testing techniques - www.testersforum.comSoftware testing techniques - www.testersforum.com
Software testing techniques - www.testersforum.com
 
Developing software analyzers tool using software reliability growth model
Developing software analyzers tool using software reliability growth modelDeveloping software analyzers tool using software reliability growth model
Developing software analyzers tool using software reliability growth model
 
Developing software analyzers tool using software reliability growth model
Developing software analyzers tool using software reliability growth modelDeveloping software analyzers tool using software reliability growth model
Developing software analyzers tool using software reliability growth model
 
Quality Attribute: Testability
Quality Attribute: TestabilityQuality Attribute: Testability
Quality Attribute: Testability
 
Principles and Goals of Software Testing
Principles and Goals of Software Testing Principles and Goals of Software Testing
Principles and Goals of Software Testing
 
Some practical considerations and a
Some practical considerations and aSome practical considerations and a
Some practical considerations and a
 
Acceptance test driven development
Acceptance test driven developmentAcceptance test driven development
Acceptance test driven development
 
IRJET- Factors Affecting the Delivery of Quality Software and their Relations...
IRJET- Factors Affecting the Delivery of Quality Software and their Relations...IRJET- Factors Affecting the Delivery of Quality Software and their Relations...
IRJET- Factors Affecting the Delivery of Quality Software and their Relations...
 
An interactive approach to requirements prioritization using quality factors
An interactive approach to requirements prioritization using quality factorsAn interactive approach to requirements prioritization using quality factors
An interactive approach to requirements prioritization using quality factors
 

Recently uploaded

Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationAadityaSharma884161
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxsqpmdrvczh
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........LeaCamillePacle
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 

Recently uploaded (20)

Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint Presentation
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptx
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 

AN APPROACH FOR TEST CASE PRIORITIZATION BASED UPON VARYING REQUIREMENTS

  • 1. International Journal of Computer Science, Engineering and Applications (IJCSEA) Vol.2, No.3, June 2012 DOI : 10.5121/ijcsea.2012.2309 99 AN APPROACH FOR TEST CASE PRIORITIZATION BASED UPON VARYING REQUIREMENTS ASEEM KUMAR 1 , SAHIL GUPTA 2 , HIMANSHI REPARIA 3 , HARSHPREET SINGH 4 1 Research scholar, Department of Computer Engineering, Lovely Professional University, Phagwara, India aseem.kumar6@gmail.com 2 Research scholar, Department of Computer Engineering, Lovely Professional University, Phagwara, India sahil.gupta2688@gmail.com 3 AssistantProfessor, Department of Computer Engineering, Lovely Professional University, Phagwara, India himanshi19.rpr@gmail.com 4 Assistant Professor, Department of Computer Engineering, Lovely Professional University, Phagwara, India harshpreet.15790@lpu.co.in ABSTRACT Software testing is a process continuously performed by the development team during the life cycle of the software with the motive to detect the faults as early as possible. Regressing testing is the most suitable technique for this in which we test number of test cases. As the number of test cases can be very large it is always preferable to prioritize test cases based upon certain criterions.In this paper prioritization strategy is proposed which prioritize test cases based on requirements analysis. By regressing testing if the requirements will vary in future, the software will be modified in such a manner that it will not affect the remaining parts of the software. The proposed system improves the testing process and its efficiency to achieve goals regarding quality, cost, and effort as well user satisfaction and the result of the proposed method evaluated with the help of performance evaluation metric. KEYWORDS Regression testing, Test case prioritization, test cases, Test case weightage, requirement analysis 1. INTRODUCTION Basically Software is the process in which series of instructions for the computer that performs a particular task called a Program. System software and application software are the two major categories of software we have in the current scenario. Any program that processes data for the
  • 2. International Journal of Computer Science, Engineering and Applications (IJCSEA) Vol.2, No.3, June 2012 100 user is known as application software for example sword processor, payroll, Application software etc. [1]. Generally a software product should only be released after it has gone through a proper process of development, testing schemes and bug fixing. Areas such as performance, stability and error handling by setting up test scenarios under controlled conditions and assessing the results comes under software testing. This is exact reason why software has to be tested. The main purpose or software is mainly tested to check that it meets the customer’s needs, expectation etc. It is a usual norm that software is considered of good quality if it meets the all the requirements of user. [9] Whenever software is under the process of modification or under the process of updating some test cases needs to run and the comparison of new outputs based upon test cases is done with the older one to detect and to curtail any unnecessary changes. As a result of these comparisons if the proper matching of both new and old output (after modification) is there then it leads to the conclusion that the amendments in one part of the software would no longer effective to the other parts of the software. [1]Changes in the requirements or amendments in maintenance or evolution purposes may break existing working features, or may violate the requirements established in the previous software releases. If the requirements keep on varying it leads to the effect the existing working of the software. To resolve the above problems Regression testing is essential. Regression testing is one of the most crucial and critical activities of software development and maintenance purpose [9].Regression testing has been used during the development and maintenance of a software product to assist software-testing activities and guarantee the attainment of adequate quality through various versions of the software product [2]. Regression testing permits to test modified software to provide confidence that no new errors are introduced into previously tested code. Regression test selection techniques attempt to reduce the cost of regression testing by selecting and running only a subset of the test cases in existing test suite [3] .Whenever software is modified with regression testing execution of number of time consuming test cases required. As In regression testing large number of test cases needs to be run therefore it is an impractical approach to run all the possible test cases. In order to make it much simpler prioritization technique of the possible test cases proposed, in which test cases having high priority according to some criterion, executed first then those having lower priority so that to enhance the performance. 2. TEST CASE PRIORITIZATION In last few years, several researchers have done good amount of research on the test case prioritization problem and presented techniques for the same. Research has shown that at least 50% of the total cost of software development consists of testing activities [4].which is very high as compare to the other cost consuming activities. Proper behaviour of the software can be ensured and absence of unexpected faults also called as regression faults in the introduced changes can be confirmed by employing regression testing to the software [5].Rate of regression fault detection can be increased up to greater extent during software development by adopting test case prioritization techniques [6].In prioritization techniques test suites are prioritized according to some factors. Very less amount of researchers inclined towards requirement analysis phase using this technique.
  • 3. International Journal of Computer Science, Engineering and Applications (IJCSEA) Vol.2, No.3, June 2012 101 3. PROPOSED TEST CASE PRIORITIZATION STRATEGY In order to cover the changing requirements and theirs impacts over other modulesweightage is calculated of test cases on basis two requirements based factor Whichare considered as Rfactors and requirement priority (RPriority)computed from those two Reactor’sR-value and Reweight.In the proposed strategy an algorithm is proposed which prioritized the test cases according the test case weightage (TCW). 3.1. Requirement Factors (RFactors) On the basis of requirement analysis the two factors are considered and later on RValue of requirement factor calculated for individual factor. The Rfactors considered are as follows: 3.1.1. Requirement Modification Impact Localization (RMIL) It is the measure of how much impact produced by the change in any requirement during the development phase from its original state i.e. change of state from the first time when requirement are gathered from the user. It is a measure assigned by the developer initially between the ranges of 1 to 10.which is the RWeight of this Rfactor It is computed from the number of times that particular requirement changed till present time from the first time requirements gathered from the user in the requirement analysis phase of software development. The values for all the requirements are assigned on a 10-point scale which states that a requirement is altered more than 10 times.RValueofRMIL is calculated by dividing the number of changes for any requirement R divided to the maximum number of changes to be made as a result of change in that requirement R among entire project requirements. If the requirement R is changed P times and Q is the maximum number of requirements the RValue of RMIL of R is calculated as RValueof RMIL = (P/Q) * 10 To calculate RValue on a 10 point scale we multiply with 10 in above equation. 3.2.2. Degree of Coupling (DCP ) It is the Degree of coupling of the particular requirement with other requirements. It suggests the how much one requirement is interlinked with other requirements, and the number of levels of changes to be made in other requirements with the change of a particular requirement. Its weight is assigned developer initially by the development between the ranges of 1 to 10. And this is the RWeight of this Rfactor.In this paper we have discuss three levels of coupling to calculate itsRValue which are as follows: 3.2.2.1.Level 1 This level of coupling states that change of one requirement leads to change in one requiement.it means one particular requirement is interlinked with 1 another requirement. The Relationamong the those two requirements is 1:1
  • 4. International Journal of Computer Science, Engineering and Applications (IJCSEA) Vol.2, No.3, June 2012 102 3.2.2.2. Level 2 This level of coupling states that change in one requirement leads to the change in 2 or more requirements. It means one particular requirement is interlinked with 2 another requirement Relation among the requirements is 1: N where N is >= 2 3.2.2.3. Level 3 This level of coupling states that change in one requirement leads to the change in 3 or more requirements. It means one particular requirement is interlinked with 3another requirement Relation among the requirements is 1: M where M is>= 3 To understand this concept more consider a practical example of a student who takes admission in a university under a specific course name, and registration no. And allotment of hostel and food facility in hostel also has done with these credentials of the student. If later on student changes his course then his course name also changes and as a result of this necessary changes should be made in the records of hostel and changes made in hostel allotment records leads to the changes in the records of food facility of hostel. Thus this change in student course name leads to the changes up to two levels of requirements. Logically if the course name is requirement R1 during admission of student it is R2, R3 while allotment of hostel and food facility respectively Then R1 R2 (Level 1) R2R3(Level 2) From the equation it is clear that changes in R1 leads to changes in R2 and changes in R2leads to changes in R3 i.e. Requirement R1is interlinked with two requirement and changes in R1 leads to thechanges up to two levels. This is an example of Level 2 type of coupling. Therefore DCPi.e. Degree of coupling for of R1 is 2.Which means its RValue is 2 3.2. Prioritization Technique In this paper the proposed work goes in two different steps, each step has its own importance and impact. Those two steps are as follows 3.2.1. Computation Of Requirement Priority(RPriority) Value of Requirement Priority (RPriority) states that priority the test case that consists of a particularrequirement. RPriority for each of the requirement r is calculated from the above stated two factors. Higher the RPriority higher the need of testing the test case containing that requirement.
  • 5. International Journal of Computer Science, Engineering and Applications (IJCSEA) Vol.2, No.3, June 2012 103 RPrioirty =∑ ( . ∗ ) 








.. (1) Where k is the no of Rfactors considered. We consider two Rfactors , k =2 3.2.2. Test Case Weightage (TCW) Every test case will be weighted before prioritization based upon certain criteria so that they can be tested accordingly. TCW in the proposed technique is based on RPrioirty.Test cases consists of high priority requirement calculated from equation 1 higher the priority of that test case. 3.3. Proposed Prioritization Algorithm After computing the test case weightage for each of the test case, on the basis of TCW each test case will be prioritize before testing with the help of proposed algorithm in the proposed prioritization strategy. The algorithm gets input as test suite T, test case weightage of each test case is computed and the output of the algorithm is the final prioritized test case order. Algorithm: 1. Begin 2. Set T’ empty 3. for each test case t Δ T 4. Calculate RPriority = ∑ ( . ∗ ) 5. Deduce TCW from RPriority 6. end for 7. Sort T in descending order on the value of test case weightage 8. Let T’ be T 9. End 4. PRIORITISED TEST SUITE EFFECTIVENESS After ordering the various test cases using prioritization strategy the performance of test suite also needs to be evaluated. It may be measured using various methods. It is always on a positive side to assess the effectiveness of the ordering of the test suite. Effectiveness is being measured by the rate of faults detected. We deduced a metrics MRPfrom APFD matric that is used to calculate the level of effectiveness 4.1 MRP Metric The metric which wasdeveloped by Elbaum et al [8] that measures the rate of fault detection per percentage of test suite execution known as APFD metric. APFD can be calculated as:
  • 6. International Journal of Computer Science, Engineering and Applications (IJCSEA) Vol.2, No.3, June 2012 104 APFD = 1- (Tf1+Tf2+Tf3 -------- + Tfm ) / nm + 1/2n Where n is the number of test cases and m is the number of faults detected .With the help of APFD metrics (a performance analysis matric for test cases) to measure the effectiveness of proposed prioritizationstrategy APFD metric can be deduced following metric based the requirements and its priority[10] MRP= 1 - (TR1+TR2+TR3 -------- + TRm) / nm + 1/2n Where n is the number of test cases and m is the number of requirements. 5 AN EXAMPLE To understand to working of the proposed technique suppose we have requirement of the project as R= (R1, R2, R3, R4), Test Suite T= (T1, T2, T3, T4), RValue and Rweight also suggested in the table below. We can calculate the RPriority and TCW for each test case. Table1. Test Cases Containing Requirements R T R1 R2 R3 R4 T1 X X T2 X X T3 X X T4 X X Table 2. RWeight and RPriority RFactor Weight (RWeight) R RFactor R1 R2 R3 R4 2 RMIL 3 6 5 2 2 DCp 3 5 4 5 RPriority 12 22 18 14
  • 7. International Journal of Computer Science, Engineering and Applications (IJCSEA) Vol.2, No.3, June 2012 105 From the Table 2.It is clear thatRPriority R2>RPriorityR3> RPriorityR4 > RPriority R1 . Thus the order of execution of test cases weightage (TCW) computed from algorithm will be T1>T3 >T2 >T4.Test cases will be executed in this order and finally result will be evaluated with the MRP Metric to compute the effectiveness of proposed strategy. 6. WORK FLOW OF PROPOSED PRIORITIZATION STRATEGY Computation of RPriorityon the Basis Of Rfactor’sRWeight and RValue Compute TCW from Priorityfor Each Test Case Ordering Of Test Suite from Proposed ALGORITHM Testing Of Prioritized Test Suite End Evaluation of Testing Result Using MRP Metric START
  • 8. International Journal of Computer Science, Engineering and Applications (IJCSEA) Vol.2, No.3, June 2012 106 7. CONCLUSION In this paper we describe requirement based test case prioritization technique. This proposed technique is highly useful to identity and evaluate various issues arises while working with varying requirement environment. The proposed prioritization technique used most efficient factors to prioritize test suite because the errors introduced in the requirement phase is approximately 50% of all faults detected in the entire project. The change in requirements is the major factor attributable to the failure of the project so we prioritize test cases according to requirement priority and requirement factors. ACKNOWLEDGEMENTS We would like to express my gratitude to god and all the people who helped us in compilation of this work and devote their precious time in this work. REFERENCES [1] Glenford J.Mayers, 2004,”The Art of Software Testing”, John Wiley & Sons publication [2] Hyuncheol Park, HoyeonRyu, JongmoonBaik, (2008) "Historical Value-Based Approach for Cost- cognizant Test Case Prioritization to Improve the Effectiveness of Regression Testing”, The Second International Conference on Secure System Integration and Reliability Improvement, pp39-46 [3] Henry Muccini, Marcio Dias, Debra J. Richardson,( 2006)"Software Architecture-based Regression Testing”, Journal of Systems and Software, Vol 79,No 10, pp 1379-1396 [4] M. Harrold, (2000), testinga roadmap, International Conference on Software Engineering,Limerick, Ireland, 2000, pp. 61–72. [5] Alessandro Orso, Nanjuan Shi and Mary Jean Harrold, (2004) "Scaling regression testing to large software systems"(2004) 12th ACM SIGSOFT twelfth international symposium on Foundations of software engineering, Vol.29, No.6, [6] Sujatha, Mohit Kumar and Varun Kumar, (2010) "Requirements based Test Case Prioritization using Genetic Algorithm", International Journal of Computer Science and Technology, Vol.1, No, 2, pp.189-191. [7] R. Kavitha and N.Suresh Kumar, “Factors Oriented Test Case Prioritization Technique in Regression Testing “European Journal of Scientific Research ,ISSN 1450-216X Vol.55 No.2 (2011), pp.261-274 [8] S. Elbaum, A. G. Malishevsky and G. Rothermel,(2001), “Incorporating varying test costs and fault severities into test case prioritization” ,23rd International Conference of Software Engineering, pages 329-338 [9] C.Padmini 2004 “Beginner Guide to Software Testing”. [10] Xiaofang Zhang ,Changhai Nie,Baowen Xu,Bo Qu (2007) “Test Case Prioritization based on Varying Testing Requirement Priorities and Test Case Costs” 17th International Conference on Quality Software (QSIC 2007)
  • 9. International Journal of Computer Science, Engineering and Applications (IJCSEA) Vol.2, No.3, June 2012 107 Authors Aseem Kumar received Bachelor of Technology from Lovely Professional University, Punjab, India and Currently Pursuing Masters in Technology from Lovely Professional University. His areas of interest include Software Testing, Test Case Prioritization, and Requirement Prioritization Sahil Gupta received Bachelor of Technology from Lovely Professional University, Punjab, India and Currently Pursuing Masters in Technology from Lovely Professional University. His areas of interest include Software Engineering, Test Case Prioritization, and Functional Testing Himanshi Reperia is Post Graduate in Computer Science and is currently working as Assistant Professor at Lovely Professional University. She has a teaching Experience of around 1year. Her areas of interest are Software Engineering and Testing Harshpreet Singh is Post Graduate in Computer Science and is currently working as Assistant Professor at Lovely Professional University. He has a teaching Experience of around 1 year. His areas of interest include Software Engineering, Software Testing, and distributed systems. International Journal of Computer Science, Engineering and Applications (IJCSEA) Vol.2, No.3, June 2012 107 Authors Aseem Kumar received Bachelor of Technology from Lovely Professional University, Punjab, India and Currently Pursuing Masters in Technology from Lovely Professional University. His areas of interest include Software Testing, Test Case Prioritization, and Requirement Prioritization Sahil Gupta received Bachelor of Technology from Lovely Professional University, Punjab, India and Currently Pursuing Masters in Technology from Lovely Professional University. His areas of interest include Software Engineering, Test Case Prioritization, and Functional Testing Himanshi Reperia is Post Graduate in Computer Science and is currently working as Assistant Professor at Lovely Professional University. She has a teaching Experience of around 1year. Her areas of interest are Software Engineering and Testing Harshpreet Singh is Post Graduate in Computer Science and is currently working as Assistant Professor at Lovely Professional University. He has a teaching Experience of around 1 year. His areas of interest include Software Engineering, Software Testing, and distributed systems. International Journal of Computer Science, Engineering and Applications (IJCSEA) Vol.2, No.3, June 2012 107 Authors Aseem Kumar received Bachelor of Technology from Lovely Professional University, Punjab, India and Currently Pursuing Masters in Technology from Lovely Professional University. His areas of interest include Software Testing, Test Case Prioritization, and Requirement Prioritization Sahil Gupta received Bachelor of Technology from Lovely Professional University, Punjab, India and Currently Pursuing Masters in Technology from Lovely Professional University. His areas of interest include Software Engineering, Test Case Prioritization, and Functional Testing Himanshi Reperia is Post Graduate in Computer Science and is currently working as Assistant Professor at Lovely Professional University. She has a teaching Experience of around 1year. Her areas of interest are Software Engineering and Testing Harshpreet Singh is Post Graduate in Computer Science and is currently working as Assistant Professor at Lovely Professional University. He has a teaching Experience of around 1 year. His areas of interest include Software Engineering, Software Testing, and distributed systems.