Using batch wizard and missing reports

For technical support for all editions of CSE HTML Validator. Includes bug reports.

Using batch wizard and missing reports

Postby Daniel Lacroix » Wed Aug 11, 2010 10:22 am

Hi Albert,

I found the following ... with current v10. No problem when using v8.04.

Using the batch wizard to validate the following sub-folders on my C drive
c:\webs\www.tbs-sct.gc.ca\report
c:\webs\www.tbs-sct.gc.ca\reports-rapports
c:\webs\www.tbs-sct.gc.ca\rp
c:\webs\www.tbs-sct.gc.ca\rpp

CSE would produce 2 reports or 4 reports depending on the ordering of what to validate!


Here is how to reproduce it.


Calling the following batch file
call "c:\Program Files\htmlvalidator100\cmdlineprocessor.exe" -f c:\validator\www-tbs\batch-www-tbs-valid.inc

Content of batch-www-tbs-valid.inc
// only line 2 and line 4 would produce a validation report
-b1 c:\validator\www-tbs\www-tbs-valid-reports-rapports.lst
-b1 c:\validator\www-tbs\www-tbs-valid-report.lst
-b1 c:\validator\www-tbs\www-tbs-valid-rpp.lst
-b1 c:\validator\www-tbs\www-tbs-valid-rp.lst
-q

Content of batch-www-tbs-valid.inc
// CSE would create 4 validation reports
-b1 c:\validator\www-tbs\www-tbs-valid-report.lst
-b1 c:\validator\www-tbs\www-tbs-valid-reports-rapports.lst
-b1 c:\validator\www-tbs\www-tbs-valid-rp.lst
-b1 c:\validator\www-tbs\www-tbs-valid-rpp.lst
-q

Content of www-tbs-valid-report.lst
<?xml version="1.0"?>
<csebatchwizardtargetlist version="8">
<options htmlreportfilename="c:\reports\www-tbs-valid-report.htm" htmlreportcssfilename="c:\validator\default.css" excludestrings="*format=print.htm;*printable=true*" />
<target flags="1069547546" target="c:\webs\www.tbs-sct.gc.ca\report" />
</csebatchwizardtargetlist>


Thanks,
Daniel.
Daniel Lacroix
Rank III - Intermediate
Rank III - Intermediate
 
Posts: 93
Joined: Sat Dec 11, 2004 3:38 pm

Re: Using batch wizard and missing reports

Postby Albert Wiersch » Wed Aug 11, 2010 5:07 pm

Thanks for the report. I should be able to investigate this sometime next week and I'll get back to you then.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2435
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Re: Using batch wizard and missing reports

Postby Albert Wiersch » Mon Aug 16, 2010 9:18 am

Hi Daniel,

Are you sure that each report has its own unique report filename, otherwise older reports will get overwritten.

Also, are you getting any messages anywhere that might provide more clues as to what is going on?

I'm wondering if it could be a virus checker interfering. If it is causing trouble, like not letting CSE HTML Validator properly check that it can write the report file, then CSE HTML Validator may skip that report, but then you say it works with v8 so it could be a bug... did it work with v8 on the same system?

An option to save the Batch Progress to a file after a job is finished sounds like it would be helpful in this case.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2435
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Re: Using batch wizard and missing reports

Postby Daniel Lacroix » Mon Aug 16, 2010 10:30 am

Hi Albert,

The same behavior is happening on 2 of my production systems.

I will be sending some files to replicate the problem.

From what I can see, the problem occurs when you have similar filenames for reports with similar characters at the beginning.

Since this is running with the batch wizard, I cannot see what is going on ...

Daniel.
Daniel Lacroix
Rank III - Intermediate
Rank III - Intermediate
 
Posts: 93
Joined: Sat Dec 11, 2004 3:38 pm

Re: Using batch wizard and missing reports

Postby Albert Wiersch » Mon Aug 16, 2010 4:16 pm

Hi Daniel,

What happens if you uncheck the "Automatically delete old report files before generating a new report" option in the Report Options->File Options page of the Batch Wizard Options? That option\ was added in 9.02 and I'm wondering if it has something to do with the missing reports that you say are similarly named.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2435
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Re: Using batch wizard and missing reports

Postby Daniel Lacroix » Tue Aug 17, 2010 7:50 am

Albert,

I tried your suggestion and it is working.

Thanks again.

Daniel.
Daniel Lacroix
Rank III - Intermediate
Rank III - Intermediate
 
Posts: 93
Joined: Sat Dec 11, 2004 3:38 pm

Re: Using batch wizard and missing reports

Postby Albert Wiersch » Tue Aug 17, 2010 8:53 am

Daniel Lacroix wrote:I tried your suggestion and it is working.


Great... I'll take a look at the code that deletes the old reports and the report filenames you're using and try to address this problem for a future update.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2435
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Re: Using batch wizard and missing reports

Postby Albert Wiersch » Fri Sep 03, 2010 4:40 pm

This has been fixed for the next update. Thanks for the report!
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2435
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX


Return to CSE Tech Support

Who is online

Users browsing this forum: No registered users and 2 guests