After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 339884 - the node </ldtp> will be writen more times
the node </ldtp> will be writen more times
Status: RESOLVED FIXED
Product: LDTP
Classification: Other
Component: ldtp
0.3.x
Other All
: Normal normal
: ---
Assigned To: Nagappan Alagappan
LDTP Development Mailing List
Depends on:
Blocks:
 
 
Reported: 2006-04-27 07:04 UTC by lavi.xu
Modified: 2006-05-02 11:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Modified startlog default argument value (763 bytes, patch)
2006-04-27 07:13 UTC, Nagappan Alagappan
accepted-commit_now Details | Review

Description lavi.xu 2006-04-27 07:04:05 UTC
Please describe the problem:
the node </ldtp> will be writen more times.
like below:
<?xml version='1.0' encoding='utf-8'?>
<!-- XML Logging -->
<ldtp>
<group name="Executing-group1">
<debug>Data file maynot be present</debug>
<script name="1_test.py">
<warning>data xml tag missing</warning>
<debug>Reporting Bug</debug>
<debug>Check: rbtnTheapplicationdoesnotfunctioncorrectly!</debug>
<debug>Check: rbtnThedocumentationiswrong!</debug>
<debug>click the button: btnForward</debug>
<debug>Succuessful Starting</debug>
</script>
<groupstatus>1 test scripts passed of 1</groupstatus>
</group>
</ldtp>                      <!-------------<<<<-------------->
<group name="Executing-group1">
<debug>Data file maynot be present</debug>
<script name="1_test.py">
<warning>data xml tag missing</warning>
<debug>Reporting Bug</debug>
<debug>Check: rbtnTheapplicationdoesnotfunctioncorrectly!</debug>
<debug>Check: rbtnThedocumentationiswrong!</debug>
<debug>click the button: btnForward</debug>
<debug>Succuessful Starting</debug>
</script>
<groupstatus>1 test scripts passed of 1</groupstatus>
</group>
</ldtp>


Steps to reproduce:
1. set the option logfileoverwrite to 0.
2. run one script twice.
3. check the log file


Actual results:
there are twice node </ldtp>.

Expected results:
can not correctly show the xml in Mozilla.

Does this happen every time?
every time

Other information:
1. can the format of logfile indent?
    it will nice for check after runed.
2. if you delete the logfile and run script again.
    the belowe doesnt be writen again. 
<?xml version='1.0' encoding='utf-8'?>
<!-- XML Logging -->
<ldtp>
Comment 1 Nagappan Alagappan 2006-04-27 07:13:33 UTC
Created attachment 64369 [details] [review]
Modified startlog default argument value

Lavi: I assume that log file overwrite should be the default option. With respect to this bug, on appending some existing file, I guess that, we should not write the following XML tags...

<?xml version='1.0' encoding='utf-8'?>
<!-- XML Logging -->
<ldtp>

Please correct me, if I'm wrong...