示例#1
0
        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");
        }
示例#2
0
 public void Setup()
 {
     Driver.Create();
     Driver.driver.Navigate().GoToUrl("https://qa-sandbox.apps.htec.rs/");
     LoginPage      = new LoginPage();
     DashboardPage  = new DashboardPage();
     PlaygroundPage = new PlaygroundPage();
 }
示例#3
0
        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");
        }
示例#4
0
        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");
        }
示例#5
0
        public void Initialize()
        {
            FirefoxDriverService service = FirefoxDriverService.CreateDefaultService();

            service.Host = "::1";

            driver = new FirefoxDriver(service);
            pp     = new PlaygroundPage(driver);
        }
示例#6
0
 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!");
 }
示例#7
0
 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(), "");
 }
示例#8
0
 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!");
 }
示例#9
0
 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();
        }
示例#13
0
        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();
        }
示例#14
0
 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!");
 }
示例#15
0
 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;
 }
示例#16
0
        public void GivenUserClicksOnPeopleTab()
        {
            PlaygroundPage pp = new PlaygroundPage(Driver);

            ut.ClickOnElement(pp.peopleTab);
        }
示例#17
0
        public void GivenOpensFirstPersonFromTheList()
        {
            PlaygroundPage pp = new PlaygroundPage(Driver);

            ut.ClickOnElement(pp.person);
        }
示例#18
0
        public void GivenUserClicksOnTechnologyTab()
        {
            PlaygroundPage pp = new PlaygroundPage(Driver);

            ut.ClickOnElement(pp.techTab);
        }
示例#19
0
        public void GivenUserClicksOnSeniorityTab()
        {
            PlaygroundPage pp = new PlaygroundPage(Driver);

            ut.ClickOnElement(pp.senTab);
        }