Skip to content

Conversation

@PandaMagnus
Copy link
Contributor

Adding in an overload for ignoring 5 exception types
Adding in a new class with a more generic, but more descriptive, name for the provided functionality
Obsoleted old Wait.Until terminology
Adding/tweaking some unit tests to be more reliable

<PackageTags>ui test, automated test, testing, api test, web test, integration test, await, async</PackageTags>
<PackageReleaseNotes>Initial release for long-term home, independant from Selenium dependency</PackageReleaseNotes>
<PackageReleaseNotes>Function rename to get away from Selenium terminology, and to use a more generic (but accurate) name for what the functions do (new terminology: Poll.UntilNoExceptions)
Obsoleting old Wait.Until terminology</PackageReleaseNotes>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something I have done on my OSS project is to make this a URL to a .md file or wiki page on the repo. Then I can easily update the release notes without needing to spin a new NuGet package.


private int _Attempts = 0;
private TimeSpan _Timeout = TimeSpan.MinValue;
private Stopwatch _Sw = new Stopwatch();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there are a couple of logic errors here.

  1. These fields only appear to be used inside of the ThrowExceptions method. By keeping them as fields instead of local variables inside of the method it means you are keeping the state around. Meaning subsequent calls to this method are dependant of previous calls. If this is not intended I would move them inside of the method.
  2. This does not actually start a stopwatch. In the ThrowExceptions you do start it on the first pass, but then you never Stop/Restart the stop watch. Meaning that you might never get inside of the while loop.

@Keboo Keboo merged commit bd284e8 into master Dec 12, 2018
@PandaMagnus PandaMagnus deleted the Curn-RenamingAndObsolotingOldName branch March 27, 2019 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants