Docsity

Web Service Testing - Software Verify and Validation Test | CSE 565, Study notes of Computer Science

Toggle sidebar
bg1
2004-11-1
1) Talk about the presentation.
2) Web Service testing.
We talk about Group Testing last week. If you look at Web Service testing, Web
Service testing is different from blood group testing.
We have talked about the difference last time. A paper published by our group has
addressed this difference.
Steps to do Web Service Group Testing:
1) Establish an oracle.
What is an Oracle? Oracle is the component that could determine the outcome of
the Web Service is right or wrong. (Of coz, Oracle also stands for a Database
software. )
2) Rank Web Service.
3) Rank Test Cases.
You should rank Test Cases according to potency.
Potency means how powerful the test case is. If a Test Case fails more Web
Services, then the Test Case is more potent.
4) This method can be used for both Unit Testing and Integration Testing.
Question: How to make use of the method to do Unit Testing and Integration
Testing?
A: for unit testing
You feed the same TSj to all Web Services. In the following we implement the
previous method step by step.
1) How to establish the Oracle?
We establish the Oracle by majority voting
a. When most Web Services are reliable, the majority vote will be correct.
WS1TSi
WS2
WSm
Voter
pf3
pf4

Partial preview of the text

Download Web Service Testing - Software Verify and Validation Test | CSE 565 and more Study notes Computer Science in PDF only on Docsity!

  1. Talk about the presentation.
  2. Web Service testing. We talk about Group Testing last week. If you look at Web Service testing, Web Service testing is different from blood group testing. We have talked about the difference last time. A paper published by our group has addressed this difference. Steps to do Web Service Group Testing:
  3. Establish an oracle. What is an Oracle? Oracle is the component that could determine the outcome of the Web Service is right or wrong. (Of coz, Oracle also stands for a Database software. )
  4. Rank Web Service.
  5. Rank Test Cases. You should rank Test Cases according to potency. Potency means how powerful the test case is. If a Test Case fails more Web Services, then the Test Case is more potent.
  6. This method can be used for both Unit Testing and Integration Testing. Question: How to make use of the method to do Unit Testing and Integration Testing? A: for unit testing You feed the same TSj to all Web Services. In the following we implement the previous method step by step.
  7. How to establish the Oracle? We establish the Oracle by majority voting a. When most Web Services are reliable, the majority vote will be correct. WS 1 TSi WS 2 WSm Voter

b. When some Web Services are not reliable, the majority vote will still be correct. Why? This is because right answers converge, while wrong answers diverge. c. When majorities Web Services are wrong + wrong answers converge + the most reliable Web Services are wrong at current test. (If we add weight rule on Web Services here.) Can we do better? The answer is yes, we can do better if we use the prior reliability of Web Service. That is the weight of a given Web Service. Suppose Web Service1 has passed 0 Test Cases. Web Service2 has passed 10 Test Cases. Web Service3 has passed 100 Test Cases. Web Service1 has passed 1,000 Test Cases. Web Service1 has passed 10,000 Test Cases. Which Web Service is more reliable? We trust the Web Service that passed more Test Cases. This is called “Weight vote”. Web Service j’s vote will be weighted against others by their weights. How do you design the “weight”? A case: Suppose Web Servicej is wrong and Web Servicek is actually correct, then the right answer can be outvoted.

  1. How to generate the input? Suppose you have lots of Web Services, and you want to generate the input. How to generate the input? You could use OWL specification and then apply MC/DC to generate input.
  2. How to know the output? With the oracle, you can get the right output. B: for Integration testing Question: Can we apply the same method? Answer: Yes. Integration Testing: Main program WS 2 ,1000 alternatives get top 10 by unit testing WS 3 , 500 alternatives get top 10 by unit testing WS 1 , 10, alternatives get top 10 by unit testing WS 4 , 200 alternatives get top 10 by unit testing
  1. Randomly select a few Web Services from all the Web Services. For example, we pick up 5 Web Services, from 1 to 5.
  2. Then apply Test Cases to these 5 Web Services.
  3. Establish the Oracle for Test Casei (i is from 1 to L). If sample size increases, then the result approaches to the reality. But the key point is that it should be totally random, if this condition is satisfied, then the sample size = 20 is enough to get a right result.
  4. Evaluate the potency of Test Casei. Potency means the number of fault could be detected by this test case.
  5. Rank the Test Cases Evaluate Web Service6, Web Service7, ……,Web ServiceK according to ranked Test Cases for a specified target size, for example, the target size is 10. cookie
  1. Use this to develop the theory
    1. Use this to verify the theory
      1. predict/classify the remaining data APP 1 TSi APP 2 APP 5 Voter