Running a Test Case

When you run a test case, Silk Test Classic interacts with the application by executing all the actions you specified in the test case and testing whether all the features of the application performed as expected.

Silk Test Classic always saves the suite, script, or test plan before running it if you made any changes to it since the last time you saved it. By default, Silk Test Classic also saves all other open modified files whenever you run a script, suite, or test plan. To prevent this automatic saving of other open modified files, uncheck the Save Files Before Running check box in the General Options dialog box.

  1. Make sure that the test case that you want to run is in the active window.
  2. Click Run Testcase on the Basic Workflow bar. If the workflow bar is not visible, choose Workflows > Basic to enable it. Silk Test Classic displays the Run Testcase dialog box, which lists all the test cases contained in the current script.
  3. Select a test case and specify arguments, if necessary, in the Arguments field. 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 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. For the Classic Agent, multiple tags are supported. If you are running test cases using other agents, you can run scripts that use declarations with multiple tags. To do this, check the Disable Multiple Tag Feature check box in the Agent Options dialog box on the Compatibility tab. When you turn off multiple-tag support, 4Test discards all segments of a multiple tag except the first one.
  7. Optional: If necessary, you can press both Shift keys at the same time to stop the execution of the test.