-
Notifications
You must be signed in to change notification settings - Fork 130
Verify asserts without stop tests
Jakub Raczek edited this page Jun 5, 2016
·
7 revisions
Our test framework supports Verify asserts methods, in case of failure by delegating asserts to Verify test will not be stop. Thanks to this all asserts from test can be verify and the result are presented at the test end.
Verify.That(
this.DriverContext,
() => Assert.AreEqual(5 + 7 + 2, forgotPassword.EnterEmail(5, 7, 2)),
() => Assert.AreEqual("Your e-mail's been sent!", forgotPassword.ClickRetrievePassword));
You can set if screenshot will be taken or page source will be saved in case of failure of delegated assert (by default both are disabled).
Verify.That(this.DriverContext, () => Assert.IsFalse(flag), true, true);
Verify.That(
this.DriverContext,
true,
false,
() => Assert.AreEqual(5 + 7 + 2, forgotPassword.EnterEmail(5, 7, 2)),
() => Assert.AreEqual("Your e-mail's been sent!", forgotPassword.ClickRetrievePassword));
- Home
- Getting started
- Parallel tests execution
- MsTest DataDriven tests from Xml and CSV files
- NUnit DataDriven tests from Xml, CSV and Excel files
- Comparing files by NUnit DataDriven tests
- Visual Testing
- Screen shots: full desktop, selenium. PageSource saving
- Verify-asserts without stop tests
- Downloading files
- Helpers
- Override browser profile preferences, install browser extensions, Headless mode
- Debugging Test.Automation framework
- Logging
- Performance measures
- Webdriver Extends
- More common locators
- Selenium-Grid-support
- Advanced Browser Capabilities and Options
- AngularJS synchronization
- Update App.config or appsettings.json
- Cross browser parallel test execution with testing-Cloud-Providers\SeleniumGrid
- Verifying Javascript Errors from browser
- Enabling Performance Log for Chrome
- Azure DevOps Support
- Edge browser Support
- Downloading and running Selenium Grid with Powershell
- Run Ocaramba tests with Docker container
- HTTP auth in Internet explorer
- ExtentReports Support