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"); }
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"); }
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}'"); }