How do I set up and use parameters to pass test data to a SilkTest testcase in SilkCentral Test Manager?

0 Likes

Problem:

How do I set up and use parameters to pass test data to a SilkTest testcase in SilkCentral Test Manager?

Resolution:

The Parameters list helps you to specify test data that will be used within a testcase. This functionality will allow you to easily edit the value of testdata that is passed to a testcase. The process you need to follow to enable you to use parameters with in your testdata is illustrated below.

  1. Go to the Testplan unit, select the testcase that requires a parameter and select the "parameter" tab
  2. Enter the parameter name, type and value as shown in the screenshot below. You will notice that the parameter is greyed out initially when created.

  3. Right click the testcase that will use the parameter value and select edit.
  4. Navigate to the "Edit SilkTest Test properties" dialog where you add testdata for the test.
  5. In the test data dialog you enter the name of the parameter using "${name}" notation (See screenshot below).

  6. Click ok
  7. If you navigate back to the parameters tab for the testcase you will notice that the parameter is no longer grayed out. This shows that the parameter value is linked to the testdata and this will pass the value to the testcase.
  8. Run your testcase - the parameter should be correctly used.

Old KB# 24677
Comment List
Anonymous
Related Discussions
Recommended