GNOME Bugzilla – Bug 339884
the node </ldtp> will be writen more times
Last modified: 2006-05-02 11:12:38 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>
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...