コード例 #1
0
ファイル: AddThread.cs プロジェクト: bialkos/GCSeleniumTests
        public void ValidateConfirmationMessage()
        {
            testListPage = new TestListPage(driver);
            string expectedConfirmationMessage = $"Test added: Thread: {threadNumber}, Var {variationNumber.ToUpper()}";
            var    addTestPage = testListPage.GoToAddTestsPage();

            addTestPage.AddThread(threadNumber, variationNumber);
            string confirmationMessage = addTestPage.GetConfirmationMessage();

            Assert.AreEqual(expectedConfirmationMessage, confirmationMessage, "The confirmation message is not correct");
        }
コード例 #2
0
ファイル: AddThread.cs プロジェクト: bialkos/GCSeleniumTests
        public void ValidateNewTestIsAdded()
        {
            testListPage = new TestListPage(driver);
            int numberOfThreadsBefore = testListPage.GetAllThreadsCount();
            var addTestPage           = testListPage.GoToAddTestsPage();

            addTestPage.AddThread(threadNumber, variationNumber)
            .GoToTestListPage();
            int numberOfThreadsAfter = numberOfThreadsBefore + 1;

            Assert.AreEqual(numberOfThreadsAfter, testListPage.GetAllThreadsCount(), "The number of threads is not correct");
        }
コード例 #3
0
ファイル: EditFields.cs プロジェクト: bialkos/GCSeleniumTests
        public void IsDataCheckTesterUpdated()
        {
            testListPage = new TestListPage(driver);
            AddTestPage addTestPage = testListPage.GoToAddTestsPage();

            addTestPage.AddThread(threadNumber, variationNumber)
            .GoToTestListPage();
            string threadId = testListPage.GetLastThreadIdByThreadName(threadFullName);

            testListPage.SelectDataCheckTester(threadId, testerName);
            driver.Navigate().Refresh();
            var dataCheckTesterSelected = testListPage.GetSelectedDataCheckTester(threadId);

            Assert.AreEqual(testerName, dataCheckTesterSelected, $"The tester name is different than '{testerName}'");
        }