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

SilkCentral Test manager is not correctly loading the information from an Output.XML file after running a WHS test.

SilkCentral Test manager is not correctly loading the information from an Output.XML file after running a WHS test.

Problem:

SilkCentral Test manager is not correctly loading the information from an Output.XML file after running a WHS test.

Resolution:

QUESTION
----------------------------------

After running an Windows Script Host(WSH) test from SilkCentral Test Manager an Output.xml file is produced. SilkCentral Test manager is not correctly loading the information from the output.xml file.

I have indicated in the output.xml file that a number of tests have failed but SilkCentral Test manager is only indicating that one test has passed.

ANSWER
----------------------------------

In order for SilkCentral Test Manager to correctly load an output.xml file, the file must have the following structure. If not SilkCentral Test Manager will be unable to load the results correctly.


   1 
   1 
   
      some unexpected result 
      Error 
      
         function main() 
         some additional info; eg. stacktrace 
      
   
   
      some warning message 
      Warning 
      
         function main() 
         some additional info; eg. stacktrace 
      
   


The XML elements above are explained as follows:

ResultElement defines an attribute named TestItem, this specifies the name of the ResultElement. It must also contain an element named ErrorCount.

ErrorCount must be a positive number or zero, this specifies the number of tests that have failed.

WarningCount must be a positive number or zero. This is an optional element.

Incident Elements are optional elements that represent an event that happened during the execution of a WSH test.

Message and Severity must be specitied if an Incident Element is used. This data is shown in the messages list of test definition executions in SilkCentral Test Manager. The Severity element must hold one of the following values

  • Info
  • Warning
  • Error (or Exception)
  • Failure


Detail element may be contained within the Incident element. It represents detailed information about the Incident. It must define a TestName element and an Info element.

TestName is used to five detailed information about where the incident happened.

Info element holds detailed information about the Incident

The XML file may contain additional elements that are not visible in the SilkCentral Test Manager GUI. These will not be displayed by the SilkCentral Test Manager GUI but the output.xml file is stored in the database and is viewable as it is included in the file list of the executed test definition.

Old KB# 24609

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:47
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.