Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WCAT report.xsl invalid

Tags:

wcat

WCAT from Microsoft is as simple as it promises to be. Running it on Windows 7 x64 is not that straight forward though. The included script file breaks and the XML transformation for the output summary also uses MS-only features.

like image 426
Elementenfresser Avatar asked Jun 19 '12 08:06

Elementenfresser


2 Answers

You can still look at a formatted version of the log.xml using Internet Explorer 9, hitting F12 for the developer features and enable Browser Mode:"Compatibility View". This will allow the xsl transformation, which will not work anywhere else, as other browser complain about some invalid functions and syntax.

like image 91
Elementenfresser Avatar answered Jan 04 '23 16:01

Elementenfresser


If you have Visual Studio installed, you can also use it to apply the XSLT.

In Visual Studio 2012:

  1. Ensure that the XML file that WCAT created (log.xml) and the XSLT file (report.xsl) are in the same directory.
  2. Open the XML file.
  3. In VS2012, click on the XML menu > Start XSLT Debugging (or Start XSLT Without Debugging).
  4. Wait a few seconds for the result html file to be generated.

As an aside...

Remember that the1 WCAT 6.3 report.xsl file has some bugs/typos in it.

The report.xsl causes the the following errors when you transform with it:

  1. Variable 'i' has not been declared (line: 52, column: 13)
  2. The variable or parameter 'rowId' is either not defined or it is out of scope. (line: 1182, column: 37)
  3. The variable or par

You can fix this manually (reference):

  1. Cut the code on lines 1151-1157 and paste it on line 1146.
  2. On line 51 add: var i=0;
like image 43
Vince Horst Avatar answered Jan 04 '23 17:01

Vince Horst