IMPORTANT NOTICE: As of 21 February, anything posted in this community WILL NOT BE MIGRATED to our new community site. We have pulled all user information and data from this site and are now in an approximately week long process of importing users, roles, and data to our new site. We are leaving this site open and active so you can post and hopefully get a response until the migration is complete. Once complete, the URL that currently takes you to this site will take you to our new site so your bookmarks will work as always. Please read the information on a New Login Process
Building on the article Generating HTML based SilkTest Classic Results files, this article provides additional functionality to generate HTML results for Silk Test Classic Plan and Script files independently.The attachment htmlplanres.zip contains the following include files: - htmlplanres.inc - prints all testcase results to the result file for tests executed via a plan file
htmlplanres.inc example HTML result file
- htmlplanres_showfailedtestsonly.inc - prints only testcase results that contain an exception for tests executed via a plan file - error raised from LogError (for example, called from LogError2HTML) is not considered as an exception
htmlplanres_showfailedtestsonly.inc example HTML result file
The attachment htmlscriptres.zip contains the following include files: - htmlscriptres.inc - prints all testcase results to the result file for tests executed via a script file
htmlscriptres.inc example HTML result file
- htmlscriptres_showfailedtestsonly.inc - prints only testcase results that contain an exception for tests executed via a script file - error raised from LogError (for example, called from LogError2HTML) is not considered as an exception
htmlscriptres_showfailedtestsonly.inc example HTML result file
The following additional functions are also provided in all the above include files and contain an optional boolean argument "log2Res" that if set to true, will also log information, errors, and warnings to the Silk Test Classic HTML result file. LogInfo2HTML(String sInfo, boolean log2Res optional) LogError2HTML(String sError, boolean log2Res optional) LogWarning2HTML(String sWarning, boolean log2Res optional)The include files also contain a constant that allows the user to configure the directory to which the html result file will be stored.
const STRING sResultsDir = "C:\ResultsFiles\"
To use the include files, simply add the desired include file in the Silk Test Classic Options | Runtime use files section of the project.Attachments:2630.htmlplanres.zip