TestTrack supports many types of fields. One of the most used is the pop-up menu field, also known as a drop-down field. These fields sometimes end up with lists ranging in the hundreds of items in them, which makes them hard to use. In TestTrack you can specify field relationships, which allow you to limit the choices that are available to the user based on the value selected in another field. You designate a field to be the parent and one or more fields to be the child. The value chosen in the parent field determines which values will be available in the child field.

The TestTrack user guide already covers the mechanics of how to set up field relationships, so I am not going to repeat that. Instead, let’s look at some guidelines and possible use cases.

There are a few things to keep mind.

  • Field relationships can only be established between pop-up menu fields.
  • A parent field cannot be a multi-select pop-up menu field.
  • A parent field can have multiple children.
  • A child field can only have one parent.
  • A child field can be the parent for another field.

There are several use cases for field relationships.

Increase Usability of Fields

A list that contains hundreds of choices is virtually unusable. Use field relationships to ensure that only applicable choices are available. Remember that you can set up ‘multi-generational’ relationships, meaning that a field can be a child and parent and the same time, so the available choices can ‘cascade’ down the generational ladder.

Decrease the Chance of User Error

A defect with incorrect values selected wastes time and directly affects productivity. Let’s take a look at the most widely of field relationships, which is the relationship between the Product and Component fields. Based on the product selected, only the appropriate components are available to the user. If a product is not selected, there aren’t any components available. This ensures a valid component is selected when a defect is entered in TestTrack.

Archive Old Values

Some choices in the list may no longer be applicable, but you want to keep them for historical purposes. Set up the field relationship so the values are never available, regardless of the parent field selection.

Example

The following screenshot includes a list that has 20 choices. All are available to the user regardless of what is selected in any other field.

Component Field Choices

Component Field Choices

After configuring a relationship between the Product and Component fields, no components are available if a product is not selected.

No Components Available

No Components Available

The user is now forced to select a product first. Then, the available components will be displayed based on the selected product.

Components Available Based on Product Selected

Components Available Based on Product Selected

Share on Technorati . del.icio.us . Digg . Reddit . Slashdot . Facebook . StumbleUpon

Related posts:

  1. Links versus Relationships
  2. How To Make a TestTrack Field Required Based on State or Field Value
  3. Field Mappings in TestTrack
  4. How to display a workflow event field on the main window
  5. TestTrack SDK Helpful Hints – Creating a Defect from Scratch
2 Comments

Tags: ,

2 Comments to Limiting TestTrack Field Choices with Field Relationships

Eman
March 23, 2012

Is it possible to do it via testtrack sdk C#?

Graham Harvey
May 14, 2012

Is it possible to do it via testtrack sdk C#?

Leave a comment

WP_Big_City

Leave a Reply

Your email address will not be published. Required fields are marked *

*

* Copy this password:

* Type or paste password here:

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Spam Protection by WP-SpamFree

Page optimized by WP Minify WordPress Plugin