-
Notifications
You must be signed in to change notification settings - Fork 35
added fix with return type of environment value #59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
updated tests with timer
updated tests with timer
getBrowser().getDriver().findElement(By.id("not_exist_element")); | ||
}catch (NoSuchElementException e){ | ||
endTime = getCurrentTimeInSeconds(); | ||
durationSample = new DurationSample(timer.duration(), waitTime, 3); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3 is hardcoded twice
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved to class variable
"Conditional should be true", Collections.singleton(IllegalArgumentException.class)); | ||
} catch (org.openqa.selenium.TimeoutException e){ | ||
double duration = timer.stop(); | ||
DurationSample durationSample = new DurationSample(timer.duration(), waitForTimeoutCondition, 7); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
7 is hardcoded 5 times in this class
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved to class variable
}, waitForTimeoutCondition, waitForTimeoutPolling, | ||
"Conditional should be true", Collections.singleton(IllegalArgumentException.class)); | ||
double duration = timer.stop(); | ||
DurationSample durationSample = new DurationSample(timer.duration(), waitForTimeoutCondition, 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0 for deviation is set 4 times in this class, should it be a private method or a default value for this parameter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed: created new constructor with default deviation equal '0'
No description provided.