Friday, March 29, 2019

Test case prioritization and regression test selection

foot race slip prioritization and fixation running extract1. introductionThe signifi preservece of softw be analyseing shape and its affects on parcel type johnnot be taken too lightly. package psychometric tribulationing is a fundamental comp wiznt of computer softw be quality effrontery and represents a review of specification, design and coding. The greater visibility of softw ar clays and the apostrophize associated with softw ar failure are motivating circumstanceors for planning, through rendering.A anatomy of rules that act as footraceing objectives are* visitation is a dish out of executing a weapons platform with the aim of finding errors.* A sizable campaign lineament will endure a good contingency of finding an undiscover error.* A successful seek slickness uncovers a new-sprung(prenominal) error. software package maintenance is an activity, which includes enhancements, error corrections, optimization and deletion of dis procedured capabi lities. These modifications in the software may ca riding habit the software to work incorrectly and may affect the other get goings of the software, as developers maintain a software system, they periodic on the wholey retroflexion campaign it, hoping to find errors ca engagementd by their changes. To do this, developers often create an sign analyze rooms, and then reuse it for fixation test. atavism testing is an expensive maintenance process directed at validating circumscribed software. fixation strain option techniques attempt to overcome the price of reasoning backward testing by awarding tests from a political platforms existing test cortege.The simplest fixation testing order, retest all, it is one of the conventional methods for regression testing in which all the tests in the existing test suite are re-run. This method, however, is genuinely expensive and may require an unacceptable amount of m to hightail it all tests in test suite. An alter native method, regression test selection, airs tolerated a sub hatful of the initial test suite. In this technique instead of rerunning the safe and sound test suite, we select a part of test suite to rerun if the cost of selecting a part of test suite is less than the cost of running the tests that regression test selection allows us to exclude. Of course, this progression is unequal as well test selection techniques can have operative costs, and can abandon tests that could disclose ruptures, possibly reducing recess spotting effectiveness. 1To reduce the time and cost during on testing process, another cost, tally fonts Prioritization in a testing procedure can be palmy for engineers and guests. In mental test episode Prioritization techniques, test cases are penalize in such a way, that utmost objective function like ordain of fault signal detection can be achieved.In section 2 of this paper, we have described dissimilar types of turnaround Test filling techniques and we discussed mixed categories of these types point out by various authors then moving into the expatiate of selective and prioritizing test cases for regression testing.In this section, we to a fault describe several(prenominal) techniques for prioritizing test cases and we evaluate their strength to improve crop of fault detection, harmonize to various authors. In the next section, we in particular describe the turnaround Test Selection techniques and Test courtship Prioritization problems. Subsequent sections present our analysis and conclusions 2. obsession testingDuring a software cultivation life cycle, regression testing may start in development phase of system after(prenominal) the detection and correction of errors in a program. Many modifications may occur during the maintenance phase where the software system is corrected, updated and fine-tuned.There are three types of modifications, each arising from different types of maintenance. According to 2, restorative maintenance, commonly called fixes, involves correcting software failures, performance failures, and implementation failures in rove to keep the system work properly. Adapting the system in response to changing data requirements or treat environments constitutes adaptive maintenance. nettly, perfect tense maintenance covers any enhancements to improve the system treat efficiency or maintainability.Based on of modification of specification authors make two type of regression testing, Progressive regression testing involves a change specification. In corrective regression testing, the specification does not change. nonindulgent regression testingProgressive regression testing* Specification is not changed* Involves minor modification to code (e.g., adding and deleting asseverations)* Usually done during development and corrective maintenance* Many test cases can be reused* Invoked at unorthodox intervals* Specification is changed* Involves major modification (e.g., adding and deleting modules)* Usually done during adaptive and perfective maintenance* Fewer test cases can be reused* Invoked at reparation intervalsTable 1 Differences in the midst of Corrective and Progressive Regression TestingAccording to 2, table 1 lists the major differences between corrective and progressive regression testing. Regression testing is defined 3 as the process of retesting the modified parts of the software and ensuring that no new errors have been maintaind into previously well-tried code.There are various regression testing techniques as stipulation by various researchers are (I) Retest all, (II) Regression Test Selection and (III) Test Case Prioritization. Retest-All Technique reuses all tests existing in test suite. It is really expensive as equald to other techniques. In this report our main reduce on Regression Test Selection and Test Case Prioritization. allow P be a procedure or program, let P be a modified version of P, and let T be a test suite for P. A typical regression test proceeds as follows1. Select T C T, a set of tests to execute on P.2. Test P with T, establishing Ps correctness with admire to T. 3. If necessary, create T, a set of new functional or morphologic tests for P.4. Test P with T, establishing Ps correctness with respect to T.5. Create T, a new test suite and test history for P, from T, T, and T.Although each of these stairs involves important problems, in this report we restrict our attention to step 1 which involves the Regression Test Selection problem.2.1. REGRESSION TEST SELECTION Regression Test Selection technique is less expensive as compare to retest all technique. Regression Test Selection techniques reduce the cost of regression testing by selecting a subset of an existing test suite to use in retesting a modified program. A variety of regression test selection techniques have been describing in the research literature. Authors 1 describe several families of techniques we flip fi ve most common approaches often used in practice.1) minimization Techniques These techniques attempt to select minimal sets of tests from T that yield reporting of modified or affected portions of P. One such technique requires that every program statement added to or modified for P be executed (if possible) by at least one test in T.2) Safe Techniques These techniques select, nether certain forms, every test in T that can shit one or more faults in P. One such technique selects every test in T that, when executed on P, deedd at least one statement that has been deleted from P, or at least one statement that is new in or modified for P.3) Dataflow-Coverage-Based Techniques These techniques select tests that exercise data interactions that have been affected by modifications. One such technique selects every test in T that, when executed on P, exercised at least one definition use pair that has been deleted from P, or at least one definition-use pair that has been modified for P .4) Ad Hoc / Random TechniquesWhen time constraints prohibit the use of a retest-all approach, unless no test selection tool is available, developers often select tests found on hunches, or gratuitous associations of tests with functionality. One simple technique randomly selects a predetermined good turn of tests from T.5) Retest-All Technique This technique reuses all existing tests. To test P, the technique selects all tests in T.According to 3, Test Selection techniques are broadly separate into three categories. 1) Coverage techniques These consider the test coverage criteria. These find coverable program parts that have been modified and select test cases that work on these parts. 2) Minimization techniques These are similar to coverage techniques except that they select minimal set of test cases. 3) Safe techniques These do not focus on criteria of coverage, in contrast they select all those test cases that produce different output with a modified program as compared to its original version.Regression test selection identifies the negative impact of modifications applied to software artifacts end-to-end their life cycle. In traditional approaches, code is modified directly, so code-establish selective regression testing is used to identify negative impact of modifications. In exemplar-centric approaches, modifications are first done to models, rather than to code. Consequently, the negative impact to software quality should be identified by means of selective model-based regression testing. To date, most automated model based testing approaches focus in general on automating test generation, exploit, and evaluation, mend support for model-based regression test selection is limited 4.Code-based regression test selection techniques assume specification immutability, while model-based techniques select abstract test cases based on models modifications. Thus, in model based Regression Test Selection techniques, the existing test suite can be clas sified into following three main types 1) utile test cases Reusable test cases are test cases from the original test suite that are not obsolete or re-testable. Hence, these test cases do not need to be re-executed.2) Re-testable test cases Test cases are re-testable if they are non-obsolete (model-based) test case and they traverse modified model elements.3) Obsolete test cases Test cases are obsolete if their input had been modified. Regression Test Selection techniques may create new test cases that test the program for areas which are not covered by the existing test cases.Model based Regression test suite selection that utilizes Unified Modeling manner of speaking (UML) based Use Case Activity Diagrams (UCAD). The activity diagrams are commonly employed as a graphical representation of the doingsal activities of a software system. It represents the functional behavior of a given use case. With behavior slicing we can built our activity diagram. This diagram gives us soft re gression tests. Using behavior slicing each use case divided into a set of building block of behavior where each unit of behavior represents a user action.5An activity diagram has mostly cardinal nodes1. Initial node 2. User Action node3. System impact node4. System Output node5. Condition node6. Final node2.3. TEST CASE PRIORITIZATIONThe main purpose of test case prioritization is to rank test cases execution order to detect fault as early as possible. There are two benefits brought by prioritization technique. First, it provides a way to find more bugs under re inception constraint condition and thus improves the revealed earlier engineers have more time to fix these bugs 6.Zengkai Ma and Jianjun Zhao 6 propose a new prioritization index called testing-importance of module (TIM), which combines two prioritization factors fault proneness and importance of module. The main advantages of this prioritization approach are twofold. First, the TIM value can be evaluated by analyzing p rogram structure (e.g., call graph) alone and it in any case can be evaluated by incorporating program structure information and other available data (e.g., source code changes). Therefore, this approach can be applied to not only regression testing but also non-regression testing. Second, through analyzing program structure, we can build a mapping between fault severity and fault location. Those test cases covering important part of system will be assigned high priority and executed first.As a solving, the trying faults are revealed earlier and the system becomes true(p) at fast rate. The main contributions of authors 6 are* They propose a new approach to evaluate the testing importance for modules in system by combining analysis of fault proneness and module importance.* They develop a test case prioritization technique, which can provide test cases priority result by handling multiple information (e.g., program structure information, source code changes) and can be applied to both new real software testing and regression testing.* They implement Apros, a tool for test case prioritization based on the proposed technique, and perform an experimental study on their approach. The result suggests that Apros is a promising solution to improve the rate of severe faults detection.Authors consider a sample system, which consists of half dozen modules M1-M6 and there exist around call relationships between each module. A test suite includes six test cases T1-T6 that covers the M1-M6 respectively. Some modules are dependent on each other. They are finding fault proneness and fault severity by employ TIM from this system. They conclude the prioritization result (T3, T6, T4, T2, T5, and T1) on the bases of analyzing structure of system. For calculating this result they had authentic well-nigh formulas and equation. 6 They also did some experiment with two Java programs along JUnit test cases xml-security and jtopas. They select three sequential versions of the two java programs and exercise newly developed software testing and the regression testing. They perform some experiment for finding fault proneness and severe fault. They also introduce the importance of any module using weight fact. Authors 7 explore value-driven approach to prioritizing software system test with the objective of improving user-perceived software quality. software package testing is a strenuous and expensive process. Research has shown that at least 50% of the total software cost is comprised of testing activities.They conclude that, their approach of prioritization of test cases is work effectively with regression and non-regression testing by analyzing the program structure.They make a hand on prior TCP which have two goals (1) to improve customer confidence on software quality in a cost effective way and (2) to improve the rate of detection of severe faults during system- aim testing of new code and regression testing of existing code. They present a value- driven approach to system-level test case prioritization called the Prioritization of Requirements for Test (PORT). PORT based on following four factors.1) Requirements volatility Is based on the mo of times a requirement has been changed during the development cycle.2) guest priorityIs a measure of the importance of a requirement to the customer?3) Implementation complexity Is a subjective measure of how difficult the development aggroup perceives the implementation of requirement to be.4) Fault proneness Of requirements (FP) allows the development team to identify the requirements which have had customer-reported failures.They claim in research paper, Prioritization of Requirement Test (PORT) has great impact on finding severe fault at system level. They are emphasis on client priority in TCP for improve the fault detection.Today software industries are running(a) on neutral manner. They set neutral value to all requirements use cases, test cases and defects. To improve the cu stomer satisfactions in software engineering mankind they are presenting a value-driven approach for system level testing. In these days Regression Test Case Prioritization techniques use structural coverage criteria to select the test cases. They are leading their ideas from structure level to code level TCP for both new and Regression tests.This Paper has two main objectives 1). Find severe faults earlier 2). Improve customer confidence on particular system.Researchers describe several techniques 8 for prioritizing test cases and they empirically evaluate their ability to improve rate of fault detectiona measure of how cursorily faults are detected within the testing process. An improved rate of fault detection during regression testing can provide earlier feedback on a system under regression test and let developers grow debugging and correcting faults earlier than might otherwise is possible.Their results indicate that test case prioritization can significantly improve the ra te of fault detection of test suites.Furthermore, their results highlight tradeoffs between various prioritization techniques. Test case prioritization can address a wide variety of objectives. In practice, and depending upon the choice of objective, the test case prioritization problem may be intractable objectives, an efficient solution to the problem would provide an efficient solution to the knapsack problem 8. Authors consider nine different test case prioritization techniques.T1 No prioritization One prioritization technique that authors consider is only the application of no technique this lets us consider untreated test suites.T2 Random prioritizationRandom prioritization in which authors randomly order the tests in a test suite.T3 Optimal prioritizationAn optimal ordering of test cases in a test suite for maximizing that suites rate of fault detection. In practice, of course, this is not a practical technique, as it requires knowledge of which test cases will debunk which faults.T4 native outset coverage prioritizationWe can determine, for any test case, the number of decisions ( wooden leges) in that program that were exercised by that test case. We can prioritize these test cases according to the total number of branches they cover simply by form them in order of total branch coverage achieved.T5 Additional branch coverage prioritizationTotal branch coverage prioritization schedules test cases in the order of total coverage achieved. However, having executed a test case and covered certain branches, more may be gained in subsequent test cases by covering branches that have not yet been covered. Additional branch coverage prioritization iteratively selects a test case that yields the greatest branch coverage.T6 Total fault-exposing-potential prioritizationStatement- and branch-coverage-based prioritization consider only whether a statement or branch has been exercised by a test case. This consideration may mask a fact intimately test cases and faults the ability of a fault to be unfastened by a test case depends not only on whether the test case reaches (executes) a faulty statement, but also, on the opportunity that a fault in that statement will cause a failure for that test case. Although any practical determination of this probability must(prenominal) be an approximation, we wished to determine whether the use of such an approximation could yield a prioritization technique superior in terms of rate of fault detection than techniques based on simple code coverage.T7Additional fault-exposing-potential (FEP) prioritizationAnalogous to the extensions make to total branch (or statement) coverage prioritization to special branch (or statement) coverage prioritization, we disoblige total FEP prioritization to create additive fault-exposing-potential (FEP) prioritization. This lets us account for the fact that additional executions of a statement may be less valuable than initial executions. In additional FEP prioritiza tion, after selecting a test case t, we disgrace the award values for all other test cases that exercise statements exercised by t.T8 Total statement coverage prioritizationTotal statement coverage prioritization is the analogous as total branch coverage prioritization, except that test coverage is measured in terms of program statements rather than decisions.T9 Additional statement coverage prioritizationAdditional statement coverage prioritization is the same as additional branch coverage prioritization, except that test coverage is measured in terms of program statements rather than decisions. With this technique too, we require a method for prioritizing the remaining test cases after complete coverage has been achieved, and in this work, we do this using total statement coverage prioritization.2.3.1. Search algorithmic rules for Test Case PrioritizationThere are many search techniques for test case prioritization, which are being developed and unfolded by various researchers in the field. 1) Greedy algorithmic program Works on the next best search philosophy. It 9 minimizes the estimated cost to reach a particular goal. Its advantage is that it is cheap in both execution time and implementation. The cost of this prioritization is O(mn) for program containing m statements and test suite containing n test cases. 2) Additional Greedy algorithm This algorithm 9 uses the feedback from previous selections. It selects the maximum weight element from the part that is not already consumed by previously selected elements. Once the complete coverage is achieved, the remaining test cases are prioritized by reapplying the Additional Greedy algorithm. The cost of this prioritization is O(mn2) for program containing m statements and test suite containing n test cases. 3) Hill Climbing It is one of the popular topical anesthetic search algorithms with two variations steepest ascent and next best ascent. It is very thriving and inexpensive to execute. However, this ha s cons of dividing O(n2) neighbors and is unlikely to scale. Steps of algorithm are explained in 9.4) transmitted Algorithms (GAs) Is a search technique 9 based on the Darwins theory of excerption of the fit test? The population is a set of randomly generated individuals. all(prenominal) individual is representing by variables/parameters called genes or chromosomes. The basic steps of Genetic Algorithm are (1) Encoding (2) Selection (3) Cross over (4) Mutation. 3. CONCLUSIONIn this paper we discussed about Regression test selection and Test Case Prioritization Selection. Regression testing is a style of testing that focuses on retesting after changes are made. In traditional regression testing, we reuse the same tests (the regression tests). In risk-oriented regression testing, we check the same module functionality as before, but we use different tests. Any test can be reused, and so any test can become a regression test. Regression testing naturally combines with all other test techniques. Therefore we use Test Case Prioritization technique inside Regression Testing. Test prioritization makes prove our regression testing for finding more severe fault in earlier stages. In this paper we discussed about different factor of prioritization. Customer priority has a great impact on PORT. Our view about both test case selection is, First version of test suite which developed by developer should have concrete test cases. overly at the same stage we should perform some prioritization. With earlier prioritization of test cases we can reduce our cost, time, effort and maximize customer satisfaction4. References1 Todd L. Graves, bloody shame Jean Harrold, Jung-Min Kim, Adam Porters, Gregg Rothermel, An Empirical Study of Regression Test Selection Techniques, Proceedings of the 1998 (20th) International meeting on software program Engineering, 19-25 April 1998 Page(s)188 197.2 Leung, H.K.N., White, L., Insights into Regression Testing, Proceedings., Conference on Software Maintenance,16-19 Oct. 1989 Page(s)60 69.3 K.K.Aggarwal Yogesh Singh, Software Engineering Programs Documentation, Operating Procedures, young Age International Publishers, Revised Second Edition 2005.4 Naslavsky L., Ziv H., Richardson D.J., A Model-Based Regression Test Selection Technique, ICSM 2009. IEEE International Conference on Software Maintenance, 20-26 Sept. 2009 Page(s)515 518.5 Gorthi R.P., Pasala A., Chanduka K.K.P., Leong, B., Specification-Based progress to Select Regression Test Suite to Validate 6 Changed Software, APSEC 08. 15th Asia-Pacific Software Engineering Conference, 3-5 Dec. 2008, Page(s)153 1607 Zengkai Ma, Jianjun Zhao, Test Case Prioritization based on epitome of Program Structure, APSEC 08. 15th Asia-Pacific Software Engineering Conference, 3-5 Dec. 2008, Page(s)471 4788 Srikanth H., Williams L., Osborne J., System Test Case Prioritization of New and Regression Test Cases, 2005 International Symposium on Empirical Software Engineering , 17-18 Nov. 2005, Page(s)10 pp.9 Rothermel G., Untch R.H., Chengyun Chu, Harrold M.J., Test Case Prioritization An Empirical Study, (ICSM 99) Proceedings. IEEE International Conference on Software Maintenance, 30 Aug.-3 Sept. 1999, Page(s)179 18810 Zheng Li, Mark Harman, and Robert M. Hierons, Search algorithms for regression test case prioritization, IEEE Trans. On Software Engineering, vol 33, no.4, April 2007.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.