public void ThenPersonIsCreated() { PlaygroundPage pp = new PlaygroundPage(Driver); string name = ut.ReturnTextFromElement(pp.person); Assert.That(TestConstants.FullName, Is.EqualTo(name), "Required person is not on the list"); }
public void Setup() { Driver.Create(); Driver.driver.Navigate().GoToUrl("https://qa-sandbox.apps.htec.rs/"); LoginPage = new LoginPage(); DashboardPage = new DashboardPage(); PlaygroundPage = new PlaygroundPage(); }
public void ThenUpdatedFullNameWithSwitchedFirstAndLastNameSPlacesIsDisplayedInThePeopleList() { PlaygroundPage pp = new PlaygroundPage(Driver); string name = ut.ReturnTextFromElement(pp.person); string storedName = ScenarioContext.Current.Get <string>(TestConstants.RevertedName); Assert.That(storedName, Is.EqualTo(name), "First and last name are not properly switched"); }
public void ThenSeniorityIsCreated() { PlaygroundPage pp = new PlaygroundPage(Driver); string name = ut.ReturnTextFromElement(pp.person); string storedSen = ScenarioContext.Current.Get <string>(TestConstants.RevertedName); Assert.That(storedSen, Is.EqualTo(name), "Created seniority is not on the list"); }
public void Initialize() { FirefoxDriverService service = FirefoxDriverService.CreateDefaultService(); service.Host = "::1"; driver = new FirefoxDriver(service); pp = new PlaygroundPage(driver); }
public void Test_1_1_CreateSeniority() { Assert.IsTrue(LoginPage.IsAt(), "Login page is not opened!"); LoginPage.Login(); Assert.IsTrue(DashboardPage.IsAt(), "Dashboard page is not opened after login action!"); DashboardPage.OpenPlayground(); Assert.IsTrue(PlaygroundPage.IsAt(), "Dashboard page is not opened after login action!"); PlaygroundPage.OpenTab("Seniorities"); Assert.IsTrue(PlaygroundPage.IsSeniorityTabOpened(), "Seniority tab is not open!"); PlaygroundPage.CreateSeniority("Junior"); Assert.IsTrue(PlaygroundPage.IsCreatedSeniorityInList(), "Created Seniority is not in the list of all Seniorityies!"); }
public void Test_1_2_CreateTechnology() { Assert.IsTrue(LoginPage.IsAt(), "Login page is not opened!"); LoginPage.Login(); Assert.IsTrue(DashboardPage.IsAt(), "Dashboard page is not opened after login action!"); DashboardPage.OpenPlayground(); Assert.IsTrue(PlaygroundPage.IsAt(), "Dashboard page is not opened after login action!"); PlaygroundPage.OpenTab("Technologies"); Assert.IsTrue(PlaygroundPage.IsTechnologyTabOpened(), "Technology tab is not open!"); PlaygroundPage.CreateTechnology("Java"); Assert.IsTrue(PlaygroundPage.IsCreatedTechnologyInList(), ""); }
public void Test_1_4_SwitchPersonName() { Assert.IsTrue(LoginPage.IsAt(), "Login page is not opened!"); LoginPage.Login(); Assert.IsTrue(DashboardPage.IsAt(), "Dashboard page is not opened after login action!"); DashboardPage.OpenPlayground(); Assert.IsTrue(PlaygroundPage.IsAt(), "Dashboard page is not opened after login action!"); PlaygroundPage.OpenPeopleTab(); Assert.IsTrue(PlaygroundPage.IsPeopleTabOpened(), "People tab is not opened!"); PlaygroundPage.SwitchName(); Assert.IsTrue(PlaygroundPage.IsNameSwitched(), "Name is not switched!"); }
public void Test_1_5_DeletePerson() { Assert.IsTrue(LoginPage.IsAt(), "Login page is not opened!"); LoginPage.Login(); Assert.IsTrue(DashboardPage.IsAt(), "Dashboard page is not opened after login action!"); DashboardPage.OpenPlayground(); Assert.IsTrue(PlaygroundPage.IsAt(), "Dashboard page is not opened after login action!"); PlaygroundPage.OpenPeopleTab(); Assert.IsTrue(PlaygroundPage.IsPeopleTabOpened(), "People tab is not opened!"); PlaygroundPage.DeleteAllPersonFromList(); Assert.IsTrue(PlaygroundPage.AreAllPeopleFromListDeleted(), "List is not deleted!"); }
public SenioritiesRelatedScenarios() : base() { _seniorityPageHelper = new SeniorityPageHelper(Driver); _seniorityPage = new SenioritiesPage(Driver); _dashboardPage = new DashboardPage(Driver); _playgroundPage = new PlaygroundPage(Driver); _playgroundPageHelpers = new PlaygroudPageHelpers(Driver); var homePage = LoginHelper.LoginAsStandardUser(); _dashboardPage = homePage.MainNavigation.NavigateToDashboardPage().ClickOnPlaygroundCard(); _playgroundPage.NavigateToSenioritiesPage(); }
public TeamsRelatedScenarios() : base() { _playgroundPageHelpers = new PlaygroudPageHelpers(Driver); _validationMessagesHelper = new ValidationMessagesHelper(Driver); _teamsPageHelper = new TeamsPageHelper(Driver); _teamsPage = new TeamsPage(Driver); _dashboardPage = new DashboardPage(Driver); _playgroundPage = new PlaygroundPage(Driver); var homePage = LoginHelper.LoginAsStandardUser(); _dashboardPage = homePage.MainNavigation.NavigateToDashboardPage().ClickOnPlaygroundCard(); _playgroundPage.NavigateToTeamsPage(); }
public ProjectsRelatedScenarios() : base() { _projectPageHelper = new ProjectPageHelpers(Driver); _peoplePageHelper = new PeoplePageHelper(Driver); _technologyPageHelper = new TechnologyPageHelper(Driver); _seniorityPageHelper = new SeniorityPageHelper(Driver); _teamsPageHelper = new TeamsPageHelper(Driver); _projectPage = new ProjectsPage(Driver); _dashboardPage = new DashboardPage(Driver); _playgroundPage = new PlaygroundPage(Driver); var homePage = LoginHelper.LoginAsStandardUser(); _dashboardPage = homePage.MainNavigation.NavigateToDashboardPage().ClickOnPlaygroundCard(); }
public PeopleRelatedScenarios() : base() { _playgroundPageHelpers = new PlaygroudPageHelpers(Driver); _teamsPageHelper = new TeamsPageHelper(Driver); _seniorityPageHelper = new SeniorityPageHelper(Driver); _technologyPageHelper = new TechnologyPageHelper(Driver); _peoplePageHelper = new PeoplePageHelper(Driver); _peoplePage = new PeoplePage(Driver); _dashboardPage = new DashboardPage(Driver); _playgroundPage = new PlaygroundPage(Driver); // this will be called before each test on people page var homePage = LoginHelper.LoginAsStandardUser(); _dashboardPage = homePage.MainNavigation.NavigateToDashboardPage().ClickOnPlaygroundCard(); _playgroundPage.NavigateToPeoplePage(); }
public void Test_1_3_CreatePerson() { Assert.IsTrue(LoginPage.IsAt(), "Login page is not opened!"); LoginPage.Login(); Assert.IsTrue(DashboardPage.IsAt(), "Dashboard page is not opened after login action!"); DashboardPage.OpenPlayground(); Assert.IsTrue(PlaygroundPage.IsAt(), "Dashboard page is not opened after login action!"); PlaygroundPage.OpenPeopleTab(); Assert.IsTrue(PlaygroundPage.IsPeopleTabOpened(), "People tab is not opened!"); PlaygroundPage.CreatePerson(); Assert.IsTrue(PlaygroundPage.IsCreateFormOpened(), ""); PlaygroundPage.EnterFullName("Dragana Draganic"); PlaygroundPage.ChooseSeniorities("Junior"); PlaygroundPage.ChooseTehnologies("Java"); PlaygroundPage.SavePerson(); Assert.IsTrue(PlaygroundPage.IsCreatedPersonInList(), "Created person is not in the list!"); }
public GameSessioncs() { MainFrame = new PlaygroundPage(); MainFrame.DataContext = this; _canSaveAction = false; _canHelpAction = false; _canSolveAction = false; _canPrintAction = false; levelOfTheGame = new ObservableCollection <int>() { 1, 2, 3 }; selectedLevel = new int(); SelectedLevel = 1; amountOfHelp = 3; threadHelp = new Thread(ThreadMethodHelp); threadSolver = new Thread(ThreadMethodSolver); AmountOfHelp = 0; }
public void GivenUserClicksOnPeopleTab() { PlaygroundPage pp = new PlaygroundPage(Driver); ut.ClickOnElement(pp.peopleTab); }
public void GivenOpensFirstPersonFromTheList() { PlaygroundPage pp = new PlaygroundPage(Driver); ut.ClickOnElement(pp.person); }
public void GivenUserClicksOnTechnologyTab() { PlaygroundPage pp = new PlaygroundPage(Driver); ut.ClickOnElement(pp.techTab); }
public void GivenUserClicksOnSeniorityTab() { PlaygroundPage pp = new PlaygroundPage(Driver); ut.ClickOnElement(pp.senTab); }