Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

What causes the SilkTest error "can not execute testcase from testcase" when running more than one testcase from a testplan and how can this be resolved?

What causes the SilkTest error "can not execute testcase from testcase" when running more than one testcase from a testplan and how can this be resolved?

A series of tests when run individually or collectively from a .t file will execute fine, however when called from a Testplan, the first test case runs ok yet the second returns the error: "can not execute testcase from testcase".

To resolve this issue please ensure that the Testplan indentation and hierarchical levels are set correctly. This error can occur if a testcase (noted in the Testplan) is a direct child of another testcase and has no associated test description. Please ensure that each testcase has a test description.

The code below represents a simplistic example of a testplan with correct indentation and hierarchical structure.

[-] test description
    [ ] script: test.t
    [ ] testcase: test1
    [ ] testdata: data
    [ ] 
[-] test description2
    [ ] script: test2.t
    [ ] testcase: test2
    [ ] testdata: data2

This error message can occur if the attached testcases contain a series of Connect and Disconnect functions that do not compliment each other. For example for every Connect function that applies to a specific HANDLE, it is imperative that a corresponding Disconnect function to that handle is specified also.
Should a particular handle be used to connect to a database for example and it is not closed, then the highlighted error can result.

Old KB# 21822

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2013-02-15 19:24
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.