History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: SEL-268
Type: Improvement Improvement
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: dhwang
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Selenium

Make waitForCondition display the actual time waited in the value column

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


 Description  « Hide
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 {

 All   Comments   Work Log   Change History      Sort Order:
dhwang - 12/Dec/07 07:32 PM
Actually, instead of just waitForCondition, it should apply to all wait command and open command.

Reporting time waited works as a simple profiling tool.