
| Key: |
SEL-268
|
| Type: |
Improvement
|
| Status: |
Open
|
| Priority: |
Minor
|
| Assignee: |
Unassigned
|
| Reporter: |
dhwang
|
| Votes: |
0
|
| Watchers: |
1
|
|
If you were logged in you would be able to see more operations.
|
|
|
Selenium
Created: 21/Jun/06 01:30 PM
Updated: 12/Dec/07 07:32 PM
|
|
| Component/s: |
Waiting
|
| Affects Version/s: |
0.7.0
|
| Fix Version/s: |
None
|
|
|
Original Estimate:
|
Unknown
|
Remaining Estimate:
|
Unknown
|
Time Spent:
|
Unknown
|
|
|
I made following change to get the time used by waitForCondition command as part of result table.
this.continueTestWhenConditionIsTrue = function () {
LOG.debug("testLoop.continueTestWhenConditionIsTrue()");
try {
if (this.waitForCondition == null || this.waitForCondition()) {
LOG.debug("condition satisfied; let's continueTest()");
-> var currentTime = new Date();
-> var diffTime = currentTime.getTime() - this.waitForConditionStart ;
-> var message = this.currentCommand.command + " used " + diffTime + " msec.";
-> LOG.debug(message);
-> if (this.currentCommand.command == "waitForCondition") {
-> selenium.doEcho(message);
-> }
this.waitForCondition = null;
this.waitForConditionStart = null;
this.continueTest();
} else {
|
|
Description
|
I made following change to get the time used by waitForCondition command as part of result table.
this.continueTestWhenConditionIsTrue = function () {
LOG.debug("testLoop.continueTestWhenConditionIsTrue()");
try {
if (this.waitForCondition == null || this.waitForCondition()) {
LOG.debug("condition satisfied; let's continueTest()");
-> var currentTime = new Date();
-> var diffTime = currentTime.getTime() - this.waitForConditionStart ;
-> var message = this.currentCommand.command + " used " + diffTime + " msec.";
-> LOG.debug(message);
-> if (this.currentCommand.command == "waitForCondition") {
-> selenium.doEcho(message);
-> }
this.waitForCondition = null;
this.waitForConditionStart = null;
this.continueTest();
} else { |
Show » |
|
Reporting time waited works as a simple profiling tool.