Frage

I have asked on a few other sites, no response but it must be something silly as many authors mention in their books.

Here is the best text I found:

enter image description here

My ultimate question is: Why the OFF point lies INSIDE the domain when the border is open. If it is about being off the border, why cant it be outside too?

EDIT: THank you for your answers. I found another contradicting article, what do you think? enter image description here

According to the description, the INCLUDE gravity is when t>=1. However, for the other open domain, OFF point is OUTSIDE the domain, contradicting what you all and the other articles I quoted mentioned

War es hilfreich?

Lösung

For closed domain, both OFF and ON points are outside domain, while for open domain, the OFF point is in inside the domain. I just do not get why is that.

This is incorrect. For both open and closed domain, one point is inside and one point is outside the domain. The difference is which point is inside (and which outside).

To test a domain boundary, you need one point on the inside, as close to the boundary as feasible, and one point on the outside, also as close the the boundary as feasible.
The point ON the boundary is by definition the closest you can get. For a closed domain, this point is defined to be the last point inside the domain and for an open domain this point is defined to be the first point that lies outside the domain.

Testing with two points ON the domain boundary does not provide you any additional information, so the second point must lie OFF the boundary.
If you combine the fact that you need both a point inside and a point outside the domain with where the point ON the boundary is considered to be (inside or outside), it follows logically where the point OFF the boundary should be located.

As for why you need points on the two sides of the boundary, If you have two tests telling you that the values 10 and 11 are both outside the domain, that doesn't tell you if the domain is (correctly implemented as) "values less than 10" or perhaps "values less than 9".

Andere Tipps

From the definition, "off points" can be inside or outside the domain, both cases match that definition.

But the text says "how should you choose test points" (which means - to get a good test coverage with as few cases as possible). So when you have chosen an "on point" which is inside the domain in case of a closed boundary, it makes just more sense to choose an off point outside the domain, and vice versa.

To your edit: in the "Ignore Gravity" domain, the point 1000ms is on the boundary, and it is already outside the domain. So it makes more sense to choose an "off" point inside the domain, which means at the "Ignore Gravity" side, so 999ms would be a better choice than 1001ms (note that both values are off points for both domains). Note that when looking at the "Include Gravity" domain 1000ms is inside, and 999ms is outside, so from that point of view it makes also sense to prefer 999ms.

They are giving rules about how to chose test points.

  • you have to have in test points and out one (or you'll have tested only one side of it).

  • you have to have on test points (to be sure to test the limit) and off one.

For closed borders, the on test points are in, thus there must be an off one which is out.

For open borders, the on test points are out, thus there must be an off one which is in.

Lizenziert unter: CC-BY-SA mit Zuschreibung
scroll top