a question about isolation in combination
-
Saturday, May 28, 2011 9:31 AMFrom the document, i cannot understand this concept well, can someone give me an example, when should I use it in my testing?
All Replies
-
Monday, May 30, 2011 2:33 AMModerator
Hi, Feng,
If you look at the comment of Combination.Isolated, it is very clear said the combination should be generated satisfying the given condition, but not other isolated conditions. Which means the generated combinations will contain combinations satisfying each isolated conditions, but no one satisfying more than one isolated condition. If you indicate the conditions like:
Combination.Isolated(a==1);
Combination.Isolated(a==1);
You will get error state saying isolation cannot be satisfied because there is no combination just satisfying one condition.
It is usually used in negative testing. When you have a negative condition, you expect other conditions are not negative; otherwise, you cannot judge if the negative condition is the only condition resulting in negative result.
For example, user name invalid is an isolated condition, and empty password is another isolated conition, which might result in an error message.
- Proposed As Answer by Xiang LiModerator Monday, May 30, 2011 2:34 AM
- Marked As Answer by Xiang LiModerator Wednesday, June 08, 2011 7:17 AM

