Open josepedrocorreia opened 10 years ago
I added loop count information to log message. For example, it is as follows:
#1@1 while
#2@1-1 while
#3@1-1 ...
#4@1-1 endWhile
#2@1-2 while
#3@1-2 ...
#4@1-2 endWhile
#5@1 endWhile
#1@2 while
#2@2-1 while
#3@2-1 ...
#4@2-1 endWhile
#2@2-2 while
#3@2-2 ...
#4@2-2 endWhile
#5@2 endWhile
#6 ...
the loop counter is incremented at next loop, and reset at exiting loop.
Hmm, this is not exactly what I had in mind. In general, I don't like the fact that command numbers still go back, as in your example 1-2-3-4-2-3-4-5-... I would prefer that the numbering would reflect the execution order, and you could use indentation for the commands inside the loop body, like what is done for rollup rules.
Anyway, this is just my opinion, so if you prefer the way it is, feel free to close the ticket, since what you made already helps.
I am sorry, I misunderstood your proposal. Please let me think just for a moment.
When using
while
loops, command numbering in the log is not so intuitive. When running the following example:one gets the following output:
As you can see the numbering goes 1-2-3-4-5-6-7-4-8. What I find not intuitive is that the numbering should reflect either the logical structure of the test case, in which case they could go something like 1-2-3-4-4.1-4.2-4.3-4-5, or they should reflect the execution order, in which case I would expect them to just go sequentially.
This is not a major issue of course, but I'm mentioning it since I'm parsing this log and this raises problems for me.