Ejemplo n.º 1
0
        public void given_valid_logged_in_user_when_adding_task_should_add_task()
        {
            Threaded <Session>
            .With <Chrome>()
            .NavigateTo <LoggedOutPage>(Url)
            .Username.EnterText(ValidUsername)
            .Password.EnterText(Password)
            .Login.Click <UpgradePromptPage>()
            .NotNow.Click();

            var taskInfo = new { Name = string.Format("Task {0}", Guid.NewGuid()), Note = "This is a note." };

            Threaded <Session>
            .CurrentBlock <LoggedInPage>()
            .ToolBar
            .NewTask.Click()
            .Name.EnterText(taskInfo.Name)
            .Note.EnterText(taskInfo.Note)
            .Save.Click()
            .TaskLists.First(list => list.Name == "Actions")
            .TaskRows.First(row => row.Name == taskInfo.Name)
            .VerifyThat(row => row.Should().NotBeNull())
            .Delete();

            Threaded <Session>
            .End();
        }
Ejemplo n.º 2
0
        public void BeforeEach()
        {
            Threaded <Session> .End();

            Threaded <DerivedSession> .End();

            Threaded <DerivedSessionWithWrongArgs> .End();
        }
Ejemplo n.º 3
0
        public void given_session_has_been_loaded_with_driver_when_ending_should_end_session()
        {
            Threaded <Session>
            .With <LocalPhantomEnvironment>();

            Threaded <Session>
            .End();
        }
Ejemplo n.º 4
0
        public void Given_session_has_been_loaded_with_driver_When_ending_THen_should_end_session()
        {
            Threaded <Session>
            .With <PhantomJS>();

            Threaded <Session>
            .End();
        }
        public void Given_session_has_been_loaded_with_driver_When_ending_Then_should_end_session()
        {
            Threaded <Session>
            .With <HeadlessChrome>();

            Threaded <Session>
            .End();
        }
        public override void Dispose()
        {
            After();

            Threaded <Session>
            .End();

            base.Dispose();
        }
        public void Test()
        {
            //Act
            searchPageUnderTest.SearchInput.AppendText("Selenium");
            searchPageUnderTest.SearchButton.Tag.Submit();
            var firstResultAddress = searchPageUnderTest.FirstResultAddress.Tag.Text;

            //Assert
            Assert.Equal("www.seleniumhq.org/", firstResultAddress);

            Threaded <Session>
            .End();
        }
Ejemplo n.º 8
0
        public static void TearDownScenario()
        {
            // write any cleanup which you want to apply once for every scenario


            try
            {
                ScenarioContext.Current.Get <Cleaner>().Clean();
                Threaded <Session>
                .End();
            }
            catch (Exception e)
            {
                Console.Write(e);
            }
        }
 public void Dispose()
 {
     Threaded <Session> .End();
 }
 public void TestTearDown()
 {
     Threaded <Session>
     .End();
 }
Ejemplo n.º 11
0
 public void Cleanup()
 {
     Threaded <Session> .End();
 }
Ejemplo n.º 12
0
 public void AfterEach()
 {
     Threaded <Session>
     .End();
 }
Ejemplo n.º 13
0
 public void AfterScenario()
 {
     Threaded <Session>
     .End();
 }
Ejemplo n.º 14
0
 public void OneTimeTearDown()
 {
     Threaded <Session>
     .End();
 }
Ejemplo n.º 15
0
 public void after_each()
 {
     Threaded <Session>
     .End();
 }