コード例 #1
0
        public void OneTimeSetup()
        {
            _userDashboardPage        = new UserDashboardPage(MainWindow);
            _projectDashboardPage     = new ProjectDashboardPage(MainWindow);
            _productBacklogPage       = new ProductBacklogPage(MainWindow);
            _userStoryDetailsPage     = new UserStoryDetailsPage(MainWindow);
            _createUserStoryPage      = new CreateUserStoryPage(MainWindow);
            _createAcceptanceTestPage = new CreateAcceptanceTestPage(MainWindow);

            LoginPage.Login("*****@*****.**", "Aut0mation");
            Assert.IsTrue(_userDashboardPage.IsCurrentPage());

            var projectListItem = (WPFListItem)_userDashboardPage.ProjectListBox.Items.Find(item => "e2eProjectName1".Equals(item.Text));

            Assert.NotNull(projectListItem);
            projectListItem.Click();

            Assert.IsTrue(_projectDashboardPage.IsCurrentPage());

            _projectDashboardPage.ProductBacklogButton.Click();

            Assert.IsTrue(_productBacklogPage.IsCurrentPage());

            _productBacklogPage.CreateStoryButton.Click();

            _createUserStoryPage.enterCorrectStoryDetails("e2eUserStoryAcceptanceTest", "10", "e2eDescription");

            Assert.IsTrue(_productBacklogPage.IsCurrentPage());

            var StoryListItem = (WPFListItem)_productBacklogPage.StoryListBox.Items.Find(item => "e2eUserStoryAcceptanceTest".Equals(item.Text));

            StoryListItem.Click();

            Assert.IsTrue(_userStoryDetailsPage.IsCurrentPage());
        }
コード例 #2
0
        public void OneTimeSetupCreateSprint()
        {
            _guid = Guid.NewGuid().ToString().Substring(0, 8);

            _userDashboardPage    = new UserDashboardPage(MainWindow);
            _projectDashboardPage = new ProjectDashboardPage(MainWindow);
            _manageSprintsPage    = new ManageSprintsPage(MainWindow);
            _createSprintPage     = new CreateSprintPage(MainWindow);

            LoginPage.Login("*****@*****.**", "Aut0mation");
            Assert.IsTrue(_userDashboardPage.IsCurrentPage());

            _userDashboardPage.GetProjectListItem("e2eProjectName1").Click();
            Assert.IsTrue(_projectDashboardPage.IsCurrentPage());

            _projectDashboardPage.ManageSprintsButton.Click();

            var messageBox = MessageBoxUtil.GetInfoMessageBox(MainWindow);

            Assert.NotNull(messageBox);
            MessageBoxUtil.ClickOKButton(messageBox);

            Assert.IsTrue(_manageSprintsPage.IsCurrentPage());

            _manageSprintsPage.CreateSprintButton.Click();
            Assert.IsTrue(_createSprintPage.IsCurrentPage());
        }
コード例 #3
0
        public void OneTimeSetup()
        {
            _userDashboardPage        = new UserDashboardPage(MainWindow);
            _projectDashboardPage     = new ProjectDashboardPage(MainWindow);
            _productBacklogPage       = new ProductBacklogPage(MainWindow);
            _userStoryDetailsPage     = new UserStoryDetailsPage(MainWindow);
            _createUserStoryPage      = new CreateUserStoryPage(MainWindow);
            _createAcceptanceTestPage = new CreateAcceptanceTestPage(MainWindow);

            LoginPage.Login("*****@*****.**", "Aut0mation");
            Assert.IsTrue(_userDashboardPage.IsCurrentPage());

            var projectListItem = (WPFListItem)_userDashboardPage.ProjectListBox.Items.Find(item => "e2eProjectName1".Equals(item.Text));

            projectListItem.Click();

            Assert.IsTrue(_projectDashboardPage.IsCurrentPage());

            _projectDashboardPage.ProductBacklogButton.Click();

            Assert.IsTrue(_productBacklogPage.IsCurrentPage());

            _productBacklogPage.CreateStoryButton.Click();

            Assert.IsTrue(_createUserStoryPage.IsCurrentPage());

            _createUserStoryPage.enterCorrectStoryDetails("e2eUserStoryTest", "10", "e2eDescriptionTest");

            Assert.IsTrue(_productBacklogPage.IsCurrentPage());

            var StoryListItem = (WPFListItem)_productBacklogPage.StoryListBox.Items.Find(item => "e2eUserStoryTest".Equals(item.Text));

            _productBacklogPage.CreateStoryButton.Click();

            _createUserStoryPage.enterCorrectStoryDetails("e2eUserStoryUserStoryDetails", "10", "e2eDescription");

            Assert.IsTrue(_productBacklogPage.IsCurrentPage());


            var ProductListItem = (WPFListItem)_productBacklogPage.StoryListBox.Items.Find(item => "e2eUserStoryUserStoryDetails".Equals(item.Text));

            ProductListItem.Click();

            _userStoryDetailsPage.CreateAcceptanceTestButton.Click();

            _createAcceptanceTestPage.enterCorrectAcceptanceDetails("e2eGiven1", "e2eWhen1", "e2eThen1");

            _createAcceptanceTestPage.CreateButton.Click();

            var messageBox = MessageBoxUtil.GetSuccessMessageBox(MainWindow);

            Assert.NotNull(messageBox);

            MessageBoxUtil.ClickOKButton(messageBox);
        }
コード例 #4
0
        public void OneTimeSetupProjectDashboardNonManagerActions()
        {
            _userDashboardPage    = new UserDashboardPage(MainWindow);
            _projectDashboardPage = new ProjectDashboardPage(MainWindow);

            LoginPage.Login("*****@*****.**", "Aut0mation");
            Assert.IsTrue(_userDashboardPage.IsCurrentPage());

            _userDashboardPage.GetProjectListItem("e2eProjectName1").Click();

            Assert.IsTrue(_projectDashboardPage.IsCurrentPage());
        }
コード例 #5
0
        public void OneTimeSetupProjectDashboardManagerActions()
        {
            _userDashboardPage    = new UserDashboardPage(MainWindow);
            _projectDashboardPage = new ProjectDashboardPage(MainWindow);

            LoginPage.Login("*****@*****.**", "Aut0mation");
            Assert.IsTrue(_userDashboardPage.IsCurrentPage());

            _userDashboardPage.GetProjectListItem("e2eProjectName1").Click();

            Assert.IsTrue(_projectDashboardPage.IsCurrentPage());
            Assert.AreEqual("e2eForename2 e2eSurname2", _projectDashboardPage.ProjectManagerNameTextBlock.Text);
        }
コード例 #6
0
        public void CreateAUserStoryAsAProjectMangerNotVisible()
        {
            var projectListItem = (WPFListItem)_userDashboardPage.ProjectListBox.Items.Find(item => "e2eProjectName1".Equals(item.Text));

            projectListItem.Click();

            Assert.IsTrue(_projectDashboardPage.IsCurrentPage());

            _projectDashboardPage.ProductBacklogButton.Click();

            Assert.IsTrue(_productBacklogPage.IsCurrentPage());

            Assert.False(_productBacklogPage.CreateStoryButton.Visible);
        }
コード例 #7
0
        public void OneTimeSetup()
        {
            _userDashboardPage    = new UserDashboardPage(MainWindow);
            _projectDashboardPage = new ProjectDashboardPage(MainWindow);
            _productBacklogPage   = new ProductBacklogPage(MainWindow);
            _createUserStoryPage  = new CreateUserStoryPage(MainWindow);

            LoginPage.Login("*****@*****.**", "Aut0mation");
            Assert.IsTrue(_userDashboardPage.IsCurrentPage());

            var projectListItem = (WPFListItem)_userDashboardPage.ProjectListBox.Items.Find(item => "e2eProjectName1".Equals(item.Text));

            projectListItem.Click();

            Assert.IsTrue(_projectDashboardPage.IsCurrentPage());

            _projectDashboardPage.ProductBacklogButton.Click();

            Assert.IsTrue(_productBacklogPage.IsCurrentPage());

            _productBacklogPage.CreateStoryButton.Click();
        }
コード例 #8
0
        public void OneTimeSetupCreateSprint()
        {
            _userDashboardPage    = new UserDashboardPage(MainWindow);
            _projectDashboardPage = new ProjectDashboardPage(MainWindow);
            _manageSprintsPage    = new ManageSprintsPage(MainWindow);
            _createSprintPage     = new CreateSprintPage(MainWindow);

            LoginPage.Login("*****@*****.**", "Aut0mation");
            Assert.IsTrue(_userDashboardPage.IsCurrentPage());

            _userDashboardPage.GetProjectListItem("e2eProjectName1").Click();
            Assert.IsTrue(_projectDashboardPage.IsCurrentPage());

            _projectDashboardPage.ManageSprintsButton.Click();

            var messageBox = MessageBoxUtil.GetInfoMessageBox(MainWindow);

            Assert.NotNull(messageBox);
            MessageBoxUtil.ClickOKButton(messageBox);

            Assert.IsTrue(_manageSprintsPage.IsCurrentPage());

            _manageSprintsPage.CreateSprintButton.Click();
            Assert.IsTrue(_createSprintPage.IsCurrentPage());

            EnterValidCredentials();

            _createSprintPage.CreateButton.Click();

            var messageBox1 = MessageBoxUtil.GetSuccessMessageBox(MainWindow);

            Assert.NotNull(messageBox1);

            MessageBoxUtil.ClickOKButton(messageBox1);

            Assert.IsTrue(_manageSprintsPage.IsCurrentPage());
        }