Parameterisation of test data

Parameterisation

Parameterisation enables a test to be reused for different test data sets.

Parameters can be controlled both on the test level and on the sub test level.

Both page element identifiers (e.g. label text, name and ID) and user input can be parameterised with data from a spreadsheet file (semicolon separated), or from the built in parameterisation editor.

Parameterization is controlled in the Graphical Test Editor, on the Parameterisation property sheet of a Test.

The data from a parameter row is inserted into the test, and stored there. This is controlled by the parameter index.

To use parameters: 

  1. Create a parameter file by right clicking on the "Create new parameter file" button on the parameterisation property sheet of a Test.
  2. Add data to the parameter file (Click Add key / Add Row)
  3. Save the parameter file and (on the parameterisation property sheet of the Test) press "Refresh parameters".
  4. Assign parameters to page element identifiers in the property tab of page elements.
    To parameterise user input, choose "Enter parameter text" in the User Interactions dialog (in the dropdown of the Action Type column), and select the appropriate parameter name.
    This "Enter parameter text" option is only available on action types that accept text input.

If the test is used as a sub test, the parameter index can be controlled independently on the sub test level.

Running a test with different data sets 

Create a new "wrapper-test" (a normal test) and add the test to be parameterized as a sub test multiple times (one for each parameter index), and set the index on the subtests accordingly.

In the future, there will probably be a an option in the runner to loop over all the indexes automatically.

Comments

Anonymous says:

For page identifiers there is a separate checkbox below the property where you can choose the parameter to be used

Anonymous says:

Parametrization:

Even if you have parameters file created for the test, Cubic Test does not allow you to "Refresh parameters", thus it is not possible to parametrize User Interaction  (define the column Action Type = 'Enter parameter text'), without checking the "Parameterisation" checkbox for a Page Element (select Page Element, see Properties tab),  before that.

So, if you want to parametrize only User Interaction, but not Page Element - you are not able to do so.

Am  I doing something wrong, or this is bug, or feature?!?

Regards,

SV

Anonymous says:


i ask my cuctom step 2 times in test suit with diferent input data (i made logining to gmailbox and put Username and Password) in each time because i login in 2 diferent mailboxes

 But how can i use this entered data in java file? and use them in method

Anonymous says:

hi,

 In Parameterisation, i have done all the settings given above but the script is taking only a first element in the parameter file and not taking the element in the next row. only 0 parameter index value is taken by the script but it is not taking 1 parameter index value. Please tell me the solution for this.

Anonymous says:

There is a limitation, it does not work in a loop. you need to create sub test to pass multiple value.

If you read the  article 'Running a test with different data sets ' on this page' it is written . See the extract below:

" In the future, there will probably be a an option in the runner to loop over all the indexes automatically."

So as far as now. There is no option to run a loop of all paramitrised values.

Regards,

Rohit

919316010245


Browse Space

- Pages
- News
- Labels
- Attachments
- Bookmarks
- Mail
- Activity
- Advanced

Explore Confluence

- Popular Labels
- Notation Guide

Your Account

Log In

 

Other Features

Add Content