public void Test005_VerifyDefaultSettingsOnSSLOffloadHeader() { Trace.WriteLine(BasePage.RunningTestKeyWord + "'Verify Default Settings On SSL Offload Header'"); HostManageWebSitesPage hostManageWebSitesPage = new HostManageWebSitesPage(_driver); hostManageWebSitesPage.OpenUsingButtons(_baseUrl); hostManageWebSitesPage.AccordionOpen(By.XPath(HostManageWebSitesPage.SSLOffloadHeaderAccordion)); Assert.That(hostManageWebSitesPage.WaitForElement(By.XPath(HostManageWebSitesPage.HeaderValueTextBox)).Text, Is.Empty, "The Header Value should be NOT be set by default"); }
public void Test003_EditSettingsOnServers() { Trace.WriteLine(BasePage.RunningTestKeyWord + "'Edit default Settings On Servers'"); HostManageWebSitesPage hostManageWebSitesPage = new HostManageWebSitesPage(_driver); hostManageWebSitesPage.OpenUsingButtons(_baseUrl); hostManageWebSitesPage.AccordionOpen(By.XPath(HostManageWebSitesPage.ServersAccordion)); hostManageWebSitesPage.EnableServer(); hostManageWebSitesPage.OpenUsingButtons(_baseUrl); hostManageWebSitesPage.AccordionOpen(By.XPath(HostManageWebSitesPage.ServersAccordion)); Assert.That(hostManageWebSitesPage.WaitForElement(By.XPath(HostManageWebSitesPage.Url)).Text, Is.EqualTo(_baseUrl), "The Url should be shown"); Assert.That(hostManageWebSitesPage.FindElement(By.XPath(HostManageWebSitesPage.ServerEnabled)).Text, Is.EqualTo("Yes"), "The Server should be enabled"); }
public void Test004_VerifyDefaultSettingsOnMemoryUsage() { Trace.WriteLine(BasePage.RunningTestKeyWord + "'Verify Default Settings On Memory Usage'"); HostManageWebSitesPage hostManageWebSitesPage = new HostManageWebSitesPage(_driver); hostManageWebSitesPage.OpenUsingButtons(_baseUrl); hostManageWebSitesPage.AccordionOpen(By.XPath(HostManageWebSitesPage.MemoryUsageAccordion)); Assert.That(hostManageWebSitesPage.WaitForElement(By.XPath(HostManageWebSitesPage.ServerNameOnMemoryUsage)).Text, Is.EqualTo(_serverName), "The Server name is not correct"); Assert.That(hostManageWebSitesPage.FindElement(By.XPath(HostManageWebSitesPage.MemoryLimit)).Text, Is.Not.Empty, "The Memory Limit should be displayed"); Assert.That(hostManageWebSitesPage.FindElement(By.XPath(HostManageWebSitesPage.PrivateBytes)).Text, Is.Not.Empty, "The Private Bytes should be displayed"); Assert.That(hostManageWebSitesPage.FindElement(By.XPath(HostManageWebSitesPage.CacheObjects)).Text, Is.Not.Empty, "The Cache Objects should be displayed"); }