Пример #1
0
		public void Test001_VerifyDefaultSettingsOnCashing()
		{
			Trace.WriteLine(BasePage.RunningTestKeyWord + "'Verify Default Settings On Cashing'");

			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");
		}
Пример #2
0
		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");
		}
Пример #3
0
		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");
		}
Пример #4
0
		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");
		}
Пример #5
0
		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");
		}