public void Test001_InstallProvider()
		{
			Trace.WriteLine(BasePage.RunningTestKeyWord + "'Install Provider'");

			var adminAdvancedSettingsPage = new AdminAdvancedSettingsPage(_driver);
			adminAdvancedSettingsPage.OpenUsingButtons(_baseUrl);

			adminAdvancedSettingsPage.InstallProvider(_providerToInstall);

			adminAdvancedSettingsPage.OpenUsingButtons(_baseUrl);
			adminAdvancedSettingsPage.OpenTab(By.XPath(AdminAdvancedSettingsPage.ProvidersTab));

			Trace.WriteLine(BasePage.TraceLevelPage + "Installed Provider should not be available in the list");
			Assert.IsFalse(
				adminAdvancedSettingsPage.ElementPresent(
					By.XPath(AdminAdvancedSettingsPage.ProvidersTable + "//td/span[text() = '" + _providerToInstall + "']")),
				"Provider is present in the list");
		}
Exemple #2
0
		public void Test001_InstallLanguagePack()
		{
			Trace.WriteLine(BasePage.RunningTestKeyWord + "'Install Language pack'");

			var adminAdvancedSettingsPage = new AdminAdvancedSettingsPage(_driver);
			adminAdvancedSettingsPage.OpenUsingButtons(_baseUrl);

			adminAdvancedSettingsPage.DeployLanguagePack(adminAdvancedSettingsPage.SetLanguageName(_languagePackToDeploy));

			adminAdvancedSettingsPage.OpenUsingButtons(_baseUrl);
			adminAdvancedSettingsPage.OpenTab(By.XPath(AdminAdvancedSettingsPage.LanguagePacksTab));

			Trace.WriteLine(BasePage.TraceLevelPage + "Deployed Language Pack should not be available in the list");
			Assert.IsFalse(
				adminAdvancedSettingsPage.ElementPresent(
					By.XPath(AdminAdvancedSettingsPage.LanguagePackTable + "//td/span[text() = '" + adminAdvancedSettingsPage.SetLanguageName(_languagePackToDeploy) +
					         "']")),
				"The Language pack is present in the list");
		}
		public void Test005_OptionalModulesIsNotAvailable()
		{
			Trace.WriteLine(BasePage.RunningTestKeyWord + "'Optional Modules Is Not Available'");

			var adminAdvancedSettingsPage = new AdminAdvancedSettingsPage(_driver);
			adminAdvancedSettingsPage.OpenUsingButtons(_baseUrl);

			adminAdvancedSettingsPage.OpenTab(By.XPath(AdminAdvancedSettingsPage.OptionalModulesTab));

			Trace.WriteLine(BasePage.TraceLevelPage + "Optional Modules should not be available");
			Assert.IsFalse(
				adminAdvancedSettingsPage.ElementPresent(
					By.XPath(AdminAdvancedSettingsPage.OptionalModulesTable)),
				"Optional Module table is available");

			Trace.WriteLine(BasePage.TraceLevelPage + "Correct Warning message is present");
			Assert.That(adminAdvancedSettingsPage.WaitForElement(By.XPath(AdminAdvancedSettingsPage.OptionalModulesWarningMessage)).Text, 
				Is.StringContaining(AdminAdvancedSettingsPage.OptionalModulesWarningMessageText),
				"The message is not present or message text is not correct");
		}
		public void Test004_ExportTemplateWithLanguages()
		{
			string childSiteName = _childSiteName + "004";

			var adminAdvancedSettingsPage = new AdminAdvancedSettingsPage(_driver);
			adminAdvancedSettingsPage.OpenUsingButtons(_baseUrl);
			adminAdvancedSettingsPage.DeployLanguagePack(adminAdvancedSettingsPage.SetLanguageName(_languagePackToDeploy));

			var adminLanguagesPage = new AdminLanguagesPage(_driver);
			adminLanguagesPage.OpenUsingButtons(_baseUrl);
			adminLanguagesPage.EnableLanguage(adminLanguagesPage.SetLanguageName(_languagePackToDeploy));

			var hostSettingsPage = new HostSettingsPage(_driver);
			hostSettingsPage.OpenUsingButtons(_baseUrl);
			hostSettingsPage.EnableContentLocalization();
			
			adminLanguagesPage.OpenUsingButtons(_baseUrl);
			adminLanguagesPage.EnableLocalization(CheckBox.ActionType.Check);

			var hostSiteManagementPage = new HostSiteManagementPage(_driver);
			hostSiteManagementPage.OpenUsingButtons(_baseUrl);
			hostSiteManagementPage.ExportSiteTemplateWithContent(_siteName, "LanguageTemplate", "LanguageTemplate");

			hostSiteManagementPage.OpenUsingButtons(_baseUrl);
			hostSiteManagementPage.AddNewChildSite(_baseUrl, childSiteName, "title", "LanguageTemplate");

			var adminSiteSettingsPage = new AdminSiteSettingsPage(_driver);
			adminSiteSettingsPage.OpenUsingButtons(_baseUrl + "/" + childSiteName);
			adminSiteSettingsPage.DisablePopups();
			
			var aboutUsPage = new AboutUsPage(_driver);
			aboutUsPage.OpenUsingLink(_baseUrl + "/" + childSiteName);

			aboutUsPage.SelectMenuOption(ControlPanelIDs.ControlPanelEditPageOption, ControlPanelIDs.PageSettingsOption);
			aboutUsPage.OpenTab(By.XPath(ControlPanelIDs.LocalizationTab));

			Trace.WriteLine(BasePage.TraceLevelPage + "Two language flags should be available");
			Assert.That(adminLanguagesPage.FindElements(By.XPath(ControlPanelIDs.LanguageIcon)).Count, Is.EqualTo(2),
						"The language flag number is not correct");

			Trace.WriteLine(BasePage.TraceLevelPage + "Two language pages should be available");
			Assert.That(aboutUsPage.FindElements(By.XPath("//tr[@class = 'pageHeaderRow']/th")).Count, Is.EqualTo(2));
		}
		public void Test003_InstallAuthenticationSystem()
		{
			Trace.WriteLine(BasePage.RunningTestKeyWord + "'Install Authentication System'");

			var adminAdvancedSettingsPage = new AdminAdvancedSettingsPage(_driver);
			adminAdvancedSettingsPage.OpenUsingButtons(_baseUrl);

			adminAdvancedSettingsPage.InstallAuthenticationSystem(_authSystemToInstall);

			adminAdvancedSettingsPage.OpenUsingButtons(_baseUrl);
			adminAdvancedSettingsPage.OpenTab(By.XPath(AdminAdvancedSettingsPage.AuthenticationSystemsTab));

			Trace.WriteLine(BasePage.TraceLevelPage + "Installed Authentication System should not be available in the list");
			Assert.IsFalse(
				adminAdvancedSettingsPage.ElementPresent(
					By.XPath(AdminAdvancedSettingsPage.AuthenticationSystemsTable + "//td/span[text() = '" + _authSystemToInstall + "']")),
				"Authentication System is present in the list");
		}