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"); }
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 Test001_VerifyDefaultSettingsOnCaching() { Trace.WriteLine(BasePage.RunningTestKeyWord + "'Verify Default Settings On Caching'"); HostManageWebSitesPage hostManageWebSitesPage = new HostManageWebSitesPage(_driver); hostManageWebSitesPage.OpenUsingButtons(_baseUrl); hostManageWebSitesPage.AccordionOpen(By.XPath(HostManageWebSitesPage.CachingAccordion)); Assert.That(hostManageWebSitesPage.FindElement(By.XPath(HostManageWebSitesPage.CachingProviderDefaultSelection)).GetAttribute("value"), Is.EqualTo(HostManageWebSitesPage.CachingProviderDefaultValue), "The Default value is not correct"); Assert.That(hostManageWebSitesPage.FindElement(By.XPath(HostManageWebSitesPage.WebFarmCheckbox)).FindElement(By.XPath("./following-sibling::*")).GetAttribute("class"), Is.Not.Contains("checked"), "The 'Web Farm' checkbox is checked"); Assert.That(hostManageWebSitesPage.FindElement(By.XPath(HostManageWebSitesPage.IISAppNameCheckbox)).FindElement(By.XPath("./following-sibling::*")).GetAttribute("class"), Is.Not.Contains("checked"), "The 'IIS App Name' checkbox is checked"); }
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 Test002_VerifyDefaultSettingsOnServers() { Trace.WriteLine(BasePage.RunningTestKeyWord + "'Verify Default Settings On Servers'"); HostManageWebSitesPage hostManageWebSitesPage = new HostManageWebSitesPage(_driver); hostManageWebSitesPage.OpenUsingButtons(_baseUrl); hostManageWebSitesPage.AccordionOpen(By.XPath(HostManageWebSitesPage.ServersAccordion)); Assert.That(hostManageWebSitesPage.FindElement(By.XPath(HostManageWebSitesPage.ServerName)).Text, Is.EqualTo(_serverName), "The Server name is not correct"); Assert.That(hostManageWebSitesPage.FindElement(By.XPath(HostManageWebSitesPage.Url)).Text, Is.Empty, "The Url should be hidden"); Assert.That(hostManageWebSitesPage.FindElement(By.XPath(HostManageWebSitesPage.ServerEnabled)).Text, Is.EqualTo("No"), "The Server should be disabled by default"); }