Docsity

cs608-Software Verification and Validation, Schemes and Mind Maps of Software Engineering

Partial preview of the text

Download cs608-Software Verification and Validation and more Schemes and Mind Maps Software Engineering in PDF only on Docsity!

Software Verification and Validation

Lecture No. 17

Module 108:

Methods in Regression Testing

Methods in Regression Testing

 (^) Why application specific:  (^) Imagine:  (^) you are working on nuclear power plant  (^) Medical equipment  (^) Banking application  (^) Attendance system  (^) Your range of application is suggesting if regression testing be based on:  (^) Retest all  (^) Selective retesting based on a selection methods

Methods in Regression Testing

 (^) Extended finite state machine considering control and data dependence to construct a state dependence graph which is used to identify the effect of modification (Chen et al, 2006)  (^) Model-based regression testing using data dependence analysis where Extended finite state machine is used for dependence analysis in object- oriented systems for reducing regression test suites (Korel et al., 2002)

Methods in Regression Testing

 (^) Analyze visual contracts to identify impact of change and select test cases into subsets and perform coverage analysis to see if the resulting test suite retains coverage  (^) Analyze the information in terms of visual contracts where our focus is how the change affects the model. We also need to know which of the code artifacts were accessed during update. Our focus is different as we consider one web service and not compositions (Khan TA et al, 2012)

Methods in Regression Testing

 (^) Evaluate the change in model through visual contracts and do not consider control dependence  (^) Analysis is based on visual contracts analysis and not on extended finite state machines and the application domain is web services  (^) Consider visual contracts to represent pre- and post- conditions formalizing them as rules in a TAGTS for analysis and propose a regression testing approach for web services

Role of Test Case Prioritization in Regression

Testing

 (^) Test case prioritization helps us order previously run test cases.  (^) According to our requirement.  (^) Let our requirement considering unit test cases be:  (^) We need to reorder test cases such that the one providing maximum coverage  (^) With respect to nodes  (^) be selected first  (^) Considering a previous example from Module 35

Role of Test Case Prioritization in Regression

Testing

Test cases for paths: 1,2,4,5, 6,8,9, 1,2,3,5, 6,7,6,8,9, Give complete node coverage Yet Edge 8 10 is not covered. We need following additional test case 1,2,3,5,6, 8, For Edge coverage

T

F

T F

T F

scanf (“%d, %d”, &x, &y); if (y < 0) pow = -y; else pow = y; z = 1.0; while (pow != 0) { z = z * x; pow = pow – 1; } if (y < 0) z = 1.0 / z ; printf(“%f”, z);

T

F

T F

T F

Test Case Prioritization

 (^) Other test case prioritization techniques:  (^) Sort test cases in order of increasing cost per additional coverage  (^) Select the first test case  (^) Repeat the above two steps until n test cases are selected  (^) Decision regarding cost can be based on  (^) Individual test case cost  (^) Cumulative formula

END

Module 110:

Test Case Recording and Regression Testing

Test Case Recording for Regression Testing

 (^) Now we consider case where we do minimal effort on finding out  (^) Affected area of SUT  (^) Test case prioritization or minimization  (^) Record test case execution, somehow  (^) Well!, why somehow  (^) We cover in next few modules  (^) And rerun them whenever required

END

Module 111:

Test Case Recording with Microsoft Test Manager (MTM)

Test Case Recording with MTM

Test Case Execution Recording with MTM

 (^) Test Case Execution Recording