Docsity

Notes on Software Verification /Validation/Test | CSE 565, Study notes of Computer Science

Toggle sidebar
bg1
Class Notes: October 31st
Today’s focus: Adaptive test case ranking and oracle establishment
1. Adaptive Rank Test cases
Here is the process of the whole process:
1. Test cases are open
2. New services will be submitted
3. Test cases need to be re-ranked
4. New test case will be submitted
So we need a refresh mechanism to do the ranking, but how?
1. Fixed interval: this is easy to implement but not very intelligent. For example,
we can do once a week.
2. Depending on the new arrival of services: we can start refresh the ranking once
we have certain number of new services.
3. Depending on the new arrival of test cases
The refresh mechanism can be also “adaptive” because:
1. Service can leave the scene, and we do not care about those departure services,
but those departure services probably will be replaced new services updated from
those departure services.
2. People keep on adding new test cases.
3. Test case last longer than services.
Another level of competition for the refresh mechanism:
For a service provider, he may be concerned with his reputation because others may
rank him according to
--Number of departures: the more number of services departed (or updates), the less
quality people will think the service provider is.
--Number of the submission: this is similar to the number of departed services
assuming each departed service will eventually be replaced by a new service.
Refresh time
Actually the refresh may happen in the following situations:
1
pf3
pf4

Partial preview of the text

Download Notes on Software Verification /Validation/Test | CSE 565 and more Study notes Computer Science in PDF only on Docsity!

Class Notes: October 31st Today’s focus: Adaptive test case ranking and oracle establishment

1. Adaptive Rank Test cases Here is the process of the whole process: 1. Test cases are open 2. New services will be submitted 3. Test cases need to be re-ranked 4. New test case will be submitted So we need a refresh mechanism to do the ranking, but how?

  1. Fixed interval : this is easy to implement but not very intelligent. For example, we can do once a week.
  2. Depending on the new arrival of services: we can start refresh the ranking once we have certain number of new services.
  3. Depending on the new arrival of test cases The refresh mechanism can be also “adaptive” because:
  4. Service can leave the scene, and we do not care about those departure services, but those departure services probably will be replaced new services updated from those departure services.
  5. People keep on adding new test cases.
  6. Test case last longer than services. Another level of competition for the refresh mechanism: For a service provider, he may be concerned with his reputation because others may rank him according to --Number of departures: the more number of services departed (or updates), the less quality people will think the service provider is. --Number of the submission: this is similar to the number of departed services assuming each departed service will eventually be replaced by a new service. Refresh time Actually the refresh may happen in the following situations:
  1. Wait until there is an arrival and meet the MAX time and the MIN time
  2. Why do we have a MAX time? Otherwise it may become too old;
  3. Why do we have MIN time? To prevent thrashing. Suppose we suddenly have many new arrivals, and if we update according to the number of new arrivals, we may have excessive computation. Refresh strategies  Use the original algorithm: randomly a few select services, and run them using all the TCs.  Continuously updated the ranking;  Use the history of testing Be careful, why? “Only the highly ranked Test cases are often used” An interesting question is whether a test case with minimum power can gain power later? This seems to be unlikely. However, we do know, a powerful TC can lose its power as one it is known to be powerful will be studied by service providers, and thus lose its power eventually. Thus, any powerful test cases may need to come from new TCs. And there are also other considerations
  4. number of departures
  5. number of submissions
  6. number of bad TC submitted
  7. number of good TC submitted Redundant Test Case Highly ranked test cases may not be necessary because if TC1 and TC2 test the same aspects of the program, if TC1 is highly ranked, TC2 should be also highly ranked. However, do we really need both TC1 and TC2 in our list? Once a service fails TC1, it will almost surely fail TC2. However, we need to be careful first, because If S 1 fail TC 1 Then S 1 fails TC 2 also If S 1 fail TC 2 Then S 1 fails TC 1 also

Output can be anything Example : S1, S If S1, S2 are both correct  Output should be close to each other If S1, S2 are both incorrect Output can be anything: as shown in the right diagram. In fact, the outputs can be clustered according to common mistakes. Concept B Concept A Right Do not understand A/B