D E V M A T E

Loading

Define Equivalence Classes

You are here:
Estimated reading time: 2 min

We are now going to proceed with our AverageSpeed example and define equivalence classes for input factor duration.

Define a valid Equivalence Class

All added equivalence classes are by default valid and highlighted in green color. You can add an equivalence class to an input factor in two different ways:

  1. Open the context menu next to the input factor and select “Add Equivalence Class”.

  2. Highlight the input factor row by clicking on it and press “Alt+C”.

As you can see once you executed the command a new equivalence class with the name “valid” that is valid was added directly under the input factor.

Change the name of an Equivalence Class

Changing the name of an equivalence class can be done in 3 different ways:

  1. Open the context menu next to the equivalence class and select “Rename”.
  2. Highlight the equivalence class row by clicking on it and press “F2”.
  3. Double click on the name on the equivalence class.

For our example we added another equivalence class and changed the name to “zero”.

Define an invalid Equivalence Class

“Zero” as an equivalence class is still marked as a valid equivalence class. The state of an equivalence class can be changed from valid to invalid in the following 2 ways:

  1. Open the context menu of the equivalence class and select “Toggle Valid/Invalid”.
  2. Highlight the equivalence class row by clicking on it and press “Alt+I”.

We have now defined 2 different equivalence classes named “valid” and “zero” where “valid” is a valid equivalence class and “zero” is an invalid equivalence class.

Move Equivalence Classes Up and Down

If you want to change the order of equivalence classes within your input factor you can move them up and down. Again you can do this in the following 2 ways:

  1. Open the context menu of the equivalence class and select “Move Up” or “Move Down”.
  2. Highlight the equivalence row by clicking on it and press “Alt+↑” or “Alt+↓”.

An equivalence class can only be moved within its input factor. So the command “Move Up” does not work on the first equivalence class under the input factor and the command “Move Down” does not work on the last equivalence class in an input factor.

Remove an Equivalence Class from the Test Model

Deleting an equivalence class from an input factor can be done in the following 2 ways:

  1. Open the context menu of the equivalence class and select “Remove”.
  2. Highlight the equivalence row by clicking on it and press “Del”.

If you delete an equivalence class whose representative was already selected in one or more test cases be aware that after the removal no representative for those test cases are chosen and you need to reselect another one again.

Was this article helpful?
Dislike 0
Views: 14

Continue reading

Previous: Define Representatives
Next: Parse Code

We use cookies to give you the best online experience. By agreeing you accept the use of cookies in accordance with our cookie policy.

Privacy Settings saved!
Privacy Settings

When you visit any web site, it may store or retrieve information on your browser, mostly in the form of cookies. Control your personal Cookie Services here.

GetResponse, Google Analytics

We use Google Analytics for marketing purposes. You can disable these cookies.
  • __utmz
  • __utma
  • _ga
  • _gat

We use GetResponse for marketing purposes. This service cannot be disabled, otherwise the website functions will be limited.

Decline all Services
Accept all Services
Get Free Access Now to
9 eBooks!
All about Automated Software Testing
Proven experts
Learn to save up to 75% of your test efforts
Get Free Access Now!
Get Access Now! & Save 50%
Personal Trainer FREE Nutrition Custom Workout App
Get Access Now!
eBook Download
Enter your details to get your free ebook!
All about Automated Software Testing
Download Free Ebook
SUBSCRIBE
MY WEB
NEWSLETTERS
Lorem ipsum dolor sit amet, consectetur adipiscing