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

Generating Silk Test Classic HTML result file for plan and script files

Generating Silk Test Classic HTML result file for plan and script files

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

5165.htmlscriptres.zip

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-07-08 10:46
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.