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?
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.