This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class BrowserAutomation : FluentTest | |
| { | |
| public override void Setup() | |
| { | |
| ScreenshotOnAssertException = true; | |
| ScreenshotPath = @"C:\temp\"; | |
| base.Setup(); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <connectionStrings> | |
| <add | |
| name="WebContext" | |
| connectionString="DataSource=|DataDirectory|Teams.sdf" | |
| providerName="System.Data.SqlServerCe.4.0"/> | |
| </connectionStrings> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [TestFixture] | |
| public class ExampleTestClass : FluentAutomation.API.FluentTest | |
| { | |
| [Test] | |
| public void Test() | |
| { | |
| I.Open("http://www.google.com/"); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [TestFixture] | |
| public class ExampleTestClass : FluentAutomation.API.FluentTest | |
| { | |
| [Test] | |
| public void Test() | |
| { | |
| I.Use(BrowserType.InternetExplorer); | |
| I.Open("http://www.google.com/"); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [TestFixture] | |
| public class ExampleTestClass : FluentTest | |
| { | |
| public override void Setup() | |
| { | |
| ScreenshotOnAssertException = true; | |
| ScreenshotPath = @"C:\TestResults\ExceptionImages\"; | |
| I.Use(BrowserType.InternetExplorer); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [TestFixture] | |
| public class ExampleTestClass : FluentTest | |
| { | |
| public override void Setup() | |
| { | |
| ScreenshotOnAssertException = true; | |
| ScreenshotPath = @"C:\TestResults\ExceptionImages\"; | |
| base.Setup(); | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class BrowserAutomation : FluentTest | |
| { | |
| public override void Setup() | |
| { | |
| ScreenshotOnAssertException = true; | |
| ScreenshotPath = @"C:\temp\"; | |
| base.Setup(); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class CreateTeamPageWrapper : PageWrapperBase | |
| public CreateTeamPageWrapper() : base("/Teams/Create") { } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class DBWrapper | |
| { | |
| private const string DatabasePath = @"c:\Dev\WebAutomationWithSpecFlow\Web\App_Data\Teams.sdf"; | |
| private static dynamic db = Database.Opener.OpenFile(DatabasePath); | |
| public static void RemoveAllTeamsFromDatabase() | |
| { | |
| db.Teams.DeleteAll(); | |
| } | |
| public static void EmptyAllTestData() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Binding] | |
| public class SpecFlowEvents | |
| { | |
| [AfterScenario] | |
| public void AfterScenario() { DBWrapper.EmptyAllTestData(); } | |
| [AfterTestRun] | |
| public static void AfterTestRun() { PageWrapperBase.Browser.Finish(); } | |
| } |