Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-13-2004, 04:06 PM
Pyro Pyro is online now
Registered User
 
Join Date: 07-13-2004
Posts: 6
Outputting Elapsed Time in HTML

In addition to the defaults of Start/Finish time, etc. that are listed in the HTML version of the log, I'd like to add the total elapsed time as well, which appears to be an already created field for me in the .log file itself.

I have edited my .xslt file to include the lines:

<td class="tablehdr">Elapsed</td>

and

<td><xsl:value-of select="status/@elapsed"/></td>

in the Summary area. This works and looks great for every build except the current one, where the table cell is simply blank. And that's all I really care about since I start my log file from scratch every time. Any ideas on how to get that field to show up?

Thanks,
Rob
Reply With Quote
  #2  
Old 07-14-2004, 10:54 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,003
The Transform XML Log action does not currently write the elapsed time for the current build when closing the XML log file (it should, and we've put it on the list), and the logging component won't add it until the build has completed (which is too late to get reported on during that build run). The attached sample shows how to write the missing value out after the log file has been closed and generate the HTML report from the modified log file, and it also includes TransformLog2.xlst file with an elapsed time column (LogElapsed.bld expects it to be in your VisBuildPro\Style folder).
Attached Files
File Type: zip logelapsed.zip (3.3 KB, 759 views)
Reply With Quote
  #3  
Old 07-16-2004, 07:26 PM
Pyro Pyro is online now
Registered User
 
Join Date: 07-13-2004
Posts: 6
You'll definitely want to use Int() instead of CInt() in the script step of this build. Int() truncates fractions, where CInt() rounds.

My build was >30 min. and <60 min., so because of the rounding problem, it told me my build was 1 hour, -13 min, -19 sec.

Rob
Reply With Quote
  #4  
Old 07-17-2004, 08:50 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,003
You learn something new every day. We've also updated the download with a fix to the Transform XML Log action, so the workaround script is no longer necessary.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 07:34 AM.


Copyright © 1999-2023 Kinook Software, Inc.