Ticket #241 (closed enhancement: fixed)
Transaction log format change to reduce transaction log file size
| Reported by: | fcohen | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Version: | 5.2 | Keywords: | |
| Cc: |
Description
Luis Carlos wrote:
I am worried about the size of the xml if the test this amount of time. The size of the XML will be huge! It won't be able to process them. I propose 2 improvements to the current XML result system
- In the xml scenario add an attribute in logging tag: logerror="boolean" to indicate if the xml should log information about the error. This is to error information to increase the size of the XML in long runs.
- Modify the XML to shrink the size. A common line of result XML is
<testmaker version="126" usecase="DL03_Model_usecase" target="NoTarget" node="cu005"> <testcase size="1" description="DL03_Model_usecase" cvus="25"> <transaction cvus="25" threadid="20" sequence="DL03_Model_sequence" duration="900" error="" nodename="cu005" result="true" timestamp="1211848870312" totaltime="91721" ></transaction> <transaction cvus="25" threadid="3" sequence="DL03_Model_sequence" duration="900" error="" nodename="cu005" result="true" timestamp="1211848406831" totaltime="79620" ></transaction> <transaction cvus="25" threadid="14" sequence="DL03_Model_sequence" duration="900" error="" nodename="cu005" result="true" timestamp="1211848875438" totaltime="96113" ></transaction> </testcase> </testmaker>
I will change it to
<testmaker version="126" usecase="DL03_Model_usecase"
target="NoTarget" node="cu005" size="1"
description="DL03_Model_usecase" cvus="25" duration="900" >
<Definitions>
<Sequences>
<Sequence name=
"DL03_Model_sequence" id= "1" />
<Sequences>
<Steps>
....
< Steps >
</ Definitions >
<results>
<tx thread="20" seq="1" result="true" timestamp="1211848870312"
totaltime="91721"/>
<tx thread="3" seq="1" result="true" timestamp="1211848406831"
totaltime="79620"/>
<tx thread="14" seq="1" result="true" timestamp="1211848875438"
totaltime="96113"/>
</results>
</testmaker>
We can shrink the names of thread,result,true-false,timestamp and totaltime to save space Like
<tx id="20" seq="1" rslt="1" stamp="1211848870312" dur="91721"/>
instead
<tx thread="20" seq="1" result="true" timestamp="1211848870312" totaltime="91721"/>
Change History
Note: See
TracTickets for help on using
tickets.
