D E V M A T E

Loading

Refactoring Test Model

You are here:
Estimated reading time: 1 min

The test model basically represents a method signature. If a method signature changes, for example:

  • Change of names (methods, parameters)
  • Adding or deleting parameters
  • Changing the order of parameters

The model does not necessarily have to be recreated, but can simply be adapted so that the model again corresponds to the method signature.

Change Method or Parameter Name

You can change the name of the test model or an input factor in 3 different ways:

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

Adding or Deleting Parameters (Input Factors)

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

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

Changing Order of Parameters (Input Factors)

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

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

Keep in mind that the instance parameter, which is the first one in a non static method, cannot be moved or replaced.

Was this article helpful?
Dislike 0
Views: 3

Continue reading

Previous: Equivalence Class Prediction
Next: Generate Test 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