History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: WET-253
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Shreenidhi Nidugala
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
WET

Old batch results get over written when a second batch of test is run

Created: 05/Oct/06 12:40 AM   Updated: 08/Jun/07 05:12 AM
Component/s: None
Affects Version/s: 0.9.8_beta1, 0.9.8 Final, 0.9.8_Patch
Fix Version/s: 1.0.0

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
I need to run my test scripts in batches.
But when the second batch is run, the batch results that were generated for the first batch gets over written if the results are not saved in some other location.

Work-Around:
 Once the first batch of scripts complete execution, copy the results to some other location and then start the second batch.

 All   Comments   Work Log   Change History      Sort Order:
Raghu Venkataramana - 07/Oct/06 06:19 AM
The fix for this would be :

a) Allow a parameter to be passed which dictates the path to save
b) If this parameter is not passed, then the name of the results file should be the name of the 'test batch file itself'.

Shreenidhi Nidugala - 06/Apr/07 02:49 AM
Here is a fix for this issue:
   The fix is that, when ever the Batch results file get created, the file name of the Batch result file should be differrent for different batched. For this the batch result filename should be something like Batch_result1.html, Batch_result2.html etc...

I have resolved this issue by making the Batch results file to have the name of the batch file being executed as a part of the batch results file name.

To get this into working:
   1. Edit the BatchRunner.rb file
   2. Add few lines of code as mentioned below:
        a) In the method intialize( )
                @file_name = title #This is for having the name of the Batch file under execution.
        b) In the method result_path remove the line
                 cr="#{cr}/BatchResults.html"
                  
and add
                  test_file_name=@file_name.split(".")[0]
                  cr="#{cr}/Batch_#{test_file_name}.html"
Done!!!!
    Now we can run many batches in a single strech.

Thanks,
Shreenidhi

Raghu Venkataramana - 08/Jun/07 03:58 AM
Shreenidhi,

Is this working fine now? If yes, can you close it?

Thanks
Raghu

Shreenidhi Nidugala - 08/Jun/07 05:12 AM
The issue is now fixed.
Now the batch result filename contains the name of the batch file as a part.

For example if the batch filename is batch1.txt then the batch results filename will be batch1_Results.html

Thanks,
Shreenidhi