Running a Test Case Using a Sample Record for Each Table Used by the Data-Driven Test Case

This is useful if you want to do a quick test or are not connected to your data source. The sample record is created as you replace values in the test case. When you first use a column to replace a test case value, that value is inserted into the table record in the field for that column.

  1. On the Run Testcase dialog box, click Use Sample Data from Script.
    By default, Silk Test Classic runs every combination of rows in your tables. The number of test cases that runs is:
    # of rows selected for Table 1 X the # of rows selected for
    Table 2 X the number of rows for Table 3
    ... and so on

    For example, if your test case uses 3 tables with 5 rows each, Silk Test Classic will run 125 test cases.

  2. To select the rows you want to run on a table-by-table basis, click Specify Rows on the Run Testcase dialog box to use the Specify Rows dialog box to create a query.
  3. Specify arguments, if necessary, in the Arguments text box. Remember to separate multiple arguments with commas.
  4. To wait one second after each interaction with the application under test is executed, check the Animated Run Mode (Slow-Motion) check box. Typically, you will only use this check box if you want to watch the test case run. For instance, if you want to demonstrate a test case to someone else, you might want to check this check box. Executions of the default base state and functions that include one of the following strings are not delayed:
    • BaseStateExecutionFinished
    • Connecting
    • Verify
    • Exists
    • Is
    • Get
    • Set
    • Print
    • ForceActiveXEnum
    • Wait
    • Sleep
  5. To view results using the Silk TrueLog Explorer, check the Enable TrueLog check box. Click TrueLog Options to set the options you want to record.
  6. Click Run. Silk Test Classic runs the test case and generates a results file.