Friday, July 25, 2008

Silktest - TestPlan solutions

TestPlan is one of the good features in Silktest. You can query to execute certain testcases from Testplan. Also you can mark only failures from the silktest results. Below I have given the two test plan issues and solutions for them.

1. How to pass Dollar ($) sign in TestPlan?
TestPlan is using $ symbol to represent the variables. Silktest will through the error, if any testdata contains dollar ($) character explicitly.
Solution:
Replace symbol $ by {Chr(36)}


2. Running Main() from TestPlan
Few weeks back, I wanted to run the Main() function from Testplan. It is very old suite ( 10 years old). I thought, Silktest does not have any provision to call Main () function. I put the query into Borland forum and I got the answer.
Solution:
We have to represent the Main() as testcase. We should not change the hierarchy/indentation for script and testcase statements. See the sample plan below.



[-] SilkTest Issues
[ ] Developer: Palani Selvam
[ ] script: silkIssues.t
[ ] testcase: main()
[ ]



By this way, we can run the functions too..


[-] SilkTest Issues
[ ] Developer: Palani Selvam
[ ] script: silkIssues.t
[ ] // testcase: main()
[ ] testcase: MyTestCalls5 ()


1 comment:

Tee Chess said...

Nice post. Thanks for sharing the information about the test plan. Its true that test plan is the main thing that plays the important role in testing process, the better the test plan the testing process would also be better. Software Testing Services