public void AddEditDeleteTypeordningsprinsipp() { Selenium_Run((driver) => { #region Login to Admin Module FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue()); #endregion #region Navigate to Bortsettingskoder and add, save and delete AdminstratorPage adminPage = AdminstratorPage.Connect(driver); adminPage.NavigateToMenuItem("Arkivstruktur"); adminPage.NavigateToMenuItem("Type ordningsprinsipp", "Type ordningsprinsipp"); adminPage.ClickOnButton("New"); adminPage.SetTextBox("Type order principles", "AT"); adminPage.SetTextBox("Description", "Automation_Testing"); adminPage.Save(); driver.HandleErrorPopUpAndThrowErrorMessage(); adminPage.VerifyDesctiptionIsExist("AT"); adminPage.EditDescription("AT", "Description", "Edit_Automation Testing", Description.TextBox); adminPage.ClickDeleteAndConfirmDelete(); #region Logout from Admin Module LogoutPage logoutPage = LogoutPage.Connect(driver); logoutPage.LogoutApplication(); #endregion #endregion }); }
public void AddEditDeleteSakspartrolle() { Selenium_Run((driver) => { #region Login to Admin Module FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue()); #endregion #region Navigate to Informasjonstype and add, save and delete AdminstratorPage adminPage = AdminstratorPage.Connect(driver); adminPage.NavigateToMenuItem("Arkivstyring"); adminPage.NavigateToMenuItem("Sakspartrolle", "Sakspartrolle"); adminPage.ClickOnButton("New"); adminPage.SetTextBox("Code", "AT"); adminPage.SetTextBox("Description", "Automation Testing"); adminPage.Save(); driver.HandleErrorPopUpAndThrowErrorMessage(); adminPage.VerifyDesctiptionIsExist("AT"); adminPage.EditDescription("AT", "Description", "Edit_Automation Testing", Description.TextBox); adminPage.ClickDeleteAndConfirmDelete(); #region Logout from Admin Module LogoutPage logoutPage = LogoutPage.Connect(driver); logoutPage.LogoutApplication(); #endregion #endregion }); }
public void AddEditDeleteFunksjon_i_utvalg() { Selenium_Run((driver) => { #region Login to Admin Module FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue()); #endregion #region Navigate to Vedtakstyper and add, save and delete AdminstratorPage adminPage = AdminstratorPage.Connect(driver); adminPage.NavigateToMenuItem("Utvalgsbehandling"); adminPage.NavigateToMenuItem("Funksjon i utvalg", "Funksjon i utvalg"); adminPage.ClickOnButton("New"); adminPage.SetTextBox("Function code", "GDR"); adminPage.SetTextBox("Description", "Automation Testing"); adminPage.Save(); driver.HandleErrorPopUpAndThrowErrorMessage(); adminPage.VerifyDesctiptionIsExist("GDR"); adminPage.EditDescription("GDR", "Description", "Edit_Automation Testing", Description.TextBox); adminPage.ClickDeleteAndConfirmDelete(); #region Logout from Admin Module LogoutPage logoutPage = LogoutPage.Connect(driver); logoutPage.LogoutApplication(); #endregion #endregion }); }
public void AddEditDeleteJournalenhet() { Selenium_Run((driver) => { #region Login to Admin Module FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue()); #endregion #region Navigate to Journalenhet and add, save and delete AdminstratorPage adminPage = AdminstratorPage.Connect(driver); adminPage.NavigateToMenuItem("Arkivstruktur", "Journalenhet", "Journalenhet (alle)"); adminPage.ClickOnButton("New"); adminPage.SetTextBox("Registry management unit", "AT"); adminPage.SetTextBox("Description", "Automation Testing"); adminPage.Save(); driver.HandleErrorPopUpAndThrowErrorMessage(); adminPage.EditDescription("AT", "Description", "Edit_Automation Testing", Description.TextBox, false); adminPage.ClickDeleteAndConfirmDelete(); #region Logout from Admin Module LogoutPage logoutPage = LogoutPage.Connect(driver); logoutPage.LogoutApplication(); #endregion #endregion }); }
public void AddEditDeleteStoppord() { Selenium_Run((driver) => { #region Login to Admin Module FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue()); #endregion #region Navigate to Stoppord and add, save and delete AdminstratorPage adminPage = AdminstratorPage.Connect(driver); adminPage.NavigateToMenuItem("Arkivstyring", "Stoppord stikkordsindeksering", "Stoppord (alle)"); adminPage.ClickOnButton("New"); adminPage.SetTextBox("Word", "AutomationTesting"); adminPage.Save(); driver.HandleErrorPopUpAndThrowErrorMessage(); adminPage.EditDescription("AutomationTesting", "Word", "EditAutomationTesting", Description.TextBox); adminPage.ClickDeleteAndConfirmDelete(); #region Logout from Admin Module LogoutPage logoutPage = LogoutPage.Connect(driver); logoutPage.LogoutApplication(); #endregion #endregion }); }
public void AddEditDeleteReguleringsformal() { Selenium_Run((driver) => { #region Login to Admin Module FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue()); #endregion #region Navigate to Reguleringsformål and add, save and delete AdminstratorPage adminPage = AdminstratorPage.Connect(driver); adminPage.NavigateToMenuItem("Plansak", "Reguleringsformål", "Reguleringsformål (alle)"); adminPage.ClickOnButton("New"); adminPage.SetTextBox("Code", "10"); adminPage.SetTextBox("Description", "Automation Testing"); adminPage.Save(); driver.HandleErrorPopUpAndThrowErrorMessage(); adminPage.VerifyAccessCodeExist("10"); adminPage.EditDescription("10", "Description", "Edit_Automation Testing", Description.TextBox); adminPage.ClickDeleteAndConfirmDelete(); #region Logout from Admin Module LogoutPage logoutPage = LogoutPage.Connect(driver); logoutPage.LogoutApplication(); #endregion #endregion }); }
public void AddEditDeleteLovForskrift() { Selenium_Run((driver) => { #region Login to Admin Module FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue()); #endregion #region Navigate to Lov/forskrift - presendes and add, save and delete AdminstratorPage adminPage = AdminstratorPage.Connect(driver); adminPage.NavigateToMenuItem("Arkivstyring", "Lov/forskrift - presendes", "Lov/forskrift (alle)"); adminPage.ClickOnButton("New"); adminPage.SetTextBox("Shortname", "AT"); adminPage.SetTextBox("Law/requirements", "Automation Testing"); adminPage.Save(); driver.HandleErrorPopUpAndThrowErrorMessage(); adminPage.VerifyDesctiptionIsExist("AT"); adminPage.EditDescription("AT", "Law/requirements", "Edit_Automation Testing", Description.TextBox); adminPage.ClickDeleteAndConfirmDelete(); #region Logout from Admin Module LogoutPage logoutPage = LogoutPage.Connect(driver); logoutPage.LogoutApplication(); #endregion #endregion }); }
public void AddEditDeleteSkjematyper() { Selenium_Run((driver) => { #region Login to Admin Module FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue()); #endregion #region Navigate to Fraser and add, save and delete AdminstratorPage adminPage = AdminstratorPage.Connect(driver); adminPage.NavigateToMenuItem("SGK-funksjoner", "Skjematyper", "Skjematyper (alle)"); adminPage.ClickOnButton("New"); adminPage.SetTextBox("Schema name", "Name 1000"); adminPage.SetTextBox("Description", "Automation Testing"); adminPage.SetTextBox("Schema template", "Automation Schema template"); adminPage.Save(); driver.HandleErrorPopUpAndThrowErrorMessage(); adminPage.VerifyDesctiptionIsExist("Automation Testing"); adminPage.EditDescription("Automation Testing", "Description", "Edit_Automation Testing", Description.TextBox, false); adminPage.ClickDeleteAndConfirmDelete(); #region Logout from Admin Module LogoutPage logoutPage = LogoutPage.Connect(driver); logoutPage.LogoutApplication(); #endregion #endregion }); }
public void AddEditDeleteArkivdeler() { Selenium_Run((driver) => { #region Login to Admin Module FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue()); #endregion #region Navigate to Arkivdeler and add, save and delete AdminstratorPage adminPage = AdminstratorPage.Connect(driver); adminPage.NavigateToMenuItem("Arkivstruktur", "Arkivdeler", "Arkivdeler (alle)"); adminPage.ClickOnButton("New"); adminPage.SetTextBox("Record section", "AT"); adminPage.SetTextBox("Description", "Automation Testing"); adminPage.SelectHtmlComboBox("Registry office", "Edit Automation Testing"); adminPage.SelectHtmlComboBox("Primary organizing principle", "K-Kode fagklasse/fellesklasse bokmål"); adminPage.Save(); driver.HandleErrorPopUpAndThrowErrorMessage(); adminPage.EditDescription("AT", "Description", "Edit_Automation Testing", Description.TextBox, false); adminPage.ClickDeleteAndConfirmDelete(); #region Logout from Admin Module LogoutPage logoutPage = LogoutPage.Connect(driver); logoutPage.LogoutApplication(); #endregion #endregion }); }
public void AddEditDeleteVarslingsform() { Selenium_Run((driver) => { #region Login to Admin Module FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue()); #endregion #region Navigate to Varslingsform and add, save and delete AdminstratorPage adminPage = AdminstratorPage.Connect(driver); adminPage.NavigateToMenuItem("SGK-funksjoner", "Varslingsform", "Varslingsform (alle)"); adminPage.ClickOnButton("New"); adminPage.SetTextBox("Code", "GDR"); adminPage.SetTextBox("Notification type", "Automation Testing"); adminPage.Save(); driver.HandleErrorPopUpAndThrowErrorMessage(); adminPage.VerifyDesctiptionIsExist("GDR"); adminPage.EditDescription("Automation Testing", "Notification type", "Edit_Automation Testing", Description.TextBox); adminPage.ClickDeleteAndConfirmDelete(); #region Logout from Admin Module LogoutPage logoutPage = LogoutPage.Connect(driver); logoutPage.LogoutApplication(); #endregion #endregion }); }
public void AddEditDeleteTilgangskoder() { Selenium_Run((driver) => { #region Login to Admin Module FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue()); #endregion #region Navigate to Tilgangskoder and add, save and delete AdminstratorPage adminPage = AdminstratorPage.Connect(driver); adminPage.NavigateToMenuItem("Brukeradministrasjon/tilgangsstyring", "Tilgangskoder", "Tilgangskoder (alle)"); adminPage.ClickOnButton("New"); adminPage.SetTextBox("Access code", "10"); adminPage.SetTextBox("Description", "Automation Testing"); adminPage.Save(); driver.HandleErrorPopUpAndThrowErrorMessage(); adminPage.VerifyDesctiptionIsExist("10"); adminPage.EditDescription("10", "Description", "Edit_Automation Testing", Description.TextBox); adminPage.ClickDeleteAndConfirmDelete(); #region Logout from Admin Module LogoutPage logoutPage = LogoutPage.Connect(driver); logoutPage.LogoutApplication(); #endregion #endregion }); }
public void AddEditDeleteStandardverdier() { Selenium_Run((driver) => { #region Login to Admin Module FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue()); #endregion #region Navigate to Standardverdier and add, save and delete AdminstratorPage adminPage = AdminstratorPage.Connect(driver); adminPage.NavigateToMenuItem("Administrativ inndeling", "Standardverdier", "Standardverdier (alle)"); adminPage.ClickOnButton("New"); adminPage.SelectKendoDropdownAndAddValue("Adm. Unit", "English Department"); adminPage.Save(); driver.HandleErrorPopUpAndThrowErrorMessage(); adminPage.VerifyDesctiptionIsExist("English Department"); adminPage.EditDescription("English Department", "Delimiter adm. unit", "Comma", Description.DropdownHTMLComboBox); adminPage.ClickDeleteAndConfirmDelete(); #region Logout from Admin Module LogoutPage logoutPage = LogoutPage.Connect(driver); logoutPage.LogoutApplication(); #endregion #endregion }); }
public void AddEditDeleteDokumenttilknytning() { Selenium_Run((driver) => { #region Login to Admin Module FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue()); #endregion #region Navigate to Dokumenttilknytning and add, save and delete AdminstratorPage adminPage = AdminstratorPage.Connect(driver); adminPage.NavigateToMenuItem("Elektronisk arkiv", "Dokumenttilknytning", "Dokumenttilknytning (alle)"); adminPage.ClickOnButton("New"); adminPage.SetTextBox("Linking code", "GD"); adminPage.SetTextBox("Description", "Automation Testing"); adminPage.Save(); driver.HandleErrorPopUpAndThrowErrorMessage(); adminPage.VerifyDesctiptionIsExist("GD"); adminPage.EditDescription("GD", "Description", "Edit_Automation Testing", Description.TextBox); adminPage.ClickDeleteAndConfirmDelete(); #region Logout from Admin Module LogoutPage logoutPage = LogoutPage.Connect(driver); logoutPage.LogoutApplication(); #endregion #endregion }); }
public void AddEditDeleteArbeidsflytmaler() { Selenium_Run((driver) => { #region Login to Admin Module FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue()); #endregion #region Change Role to Secretary of Boards - Eng DashboardPage dashboardPage = DashboardPage.Connect(driver); CommonMethods.PlayWait(2000); dashboardPage.ChangeRole(RolesInApplication.MainRegistrar); #endregion #region Navigate to Maler (alle) and add, save and delete AdminstratorPage adminPage = AdminstratorPage.Connect(driver); adminPage.NavigateToMenuItem("SGK-funksjoner", "Arbeidsflytmaler", "Maler (alle)"); adminPage.ClickOnButton("New"); adminPage.SelectHtmlComboBox("Object type", "Case workflow"); adminPage.SetTextBox("Title", "Automation Testing"); adminPage.Save(); driver.HandleErrorPopUpAndThrowErrorMessage(); adminPage.VerifyDesctiptionIsExist("Automation Testing"); adminPage.EditDescription("Automation Testing", "Title", "Edit_Automation Testing", Description.TextBox); adminPage.ClickDeleteAndConfirmDelete(); #region Logout from Admin Module LogoutPage logoutPage = LogoutPage.Connect(driver); logoutPage.LogoutApplication(); #endregion #endregion }); }
public void AddEditDeleteLogging() { Selenium_Run((driver) => { #region Login to Admin Module FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue()); #endregion #region Navigate to Logging and add, save and delete AdminstratorPage adminPage = AdminstratorPage.Connect(driver); adminPage.NavigateToMenuItem("SGK-funksjoner", "Logging", "Logging (alle)"); adminPage.ClickOnButton("New"); adminPage.SelectHtmlComboBox("Table name", "ADMINDEL"); adminPage.SetTextBox("Text", "Automation Testing"); adminPage.SetTextBox("Being kept", "10"); adminPage.Save(); driver.HandleErrorPopUpAndThrowErrorMessage(); adminPage.EditDescription("ADMINDEL", "Text", "Edit_Automation Testing", Description.TextBox, false); adminPage.ClickDeleteAndConfirmDelete(); #region Logout from Admin Module LogoutPage logoutPage = LogoutPage.Connect(driver); logoutPage.LogoutApplication(); #endregion #endregion }); }
public void AddEditDeleteOrdningsprinsipp() { Selenium_Run((driver) => { #region Login to Admin Module FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue()); #endregion #region Navigate to Vedtakstyper and add, save and delete AdminstratorPage adminPage = AdminstratorPage.Connect(driver); adminPage.NavigateToMenuItem("Arkivstruktur", "Ordningsprinsipp", "Ordningsprinsipp (Alle)"); adminPage.ClickOnButton("New"); adminPage.SetTextBox("Principles for order values", "AT"); adminPage.SetTextBox("Caption", "OrdiningsCaption"); adminPage.SetTextBox("Description", "Automation Testing"); adminPage.Save(); driver.HandleErrorPopUpAndThrowErrorMessage(); adminPage.EditDescription("AT", "Description", "Edit_Automation Testing", Description.TextBox, false); adminPage.ClickDeleteAndConfirmDelete(); #region Logout from Admin Module LogoutPage logoutPage = LogoutPage.Connect(driver); logoutPage.LogoutApplication(); #endregion #endregion }); }
public void AddEditDeleteStyreRadogutvalg() { Selenium_Run((driver) => { #region Login to Admin Module FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue()); #endregion #region Change Role to Secretary of Boards - Eng DashboardPage dashboardPage = DashboardPage.Connect(driver); CommonMethods.PlayWait(2000); dashboardPage.ChangeRole(RolesInApplication.SecretaryOfTheBoard); #endregion #region Navigate to Styre, råd og utvalg and add, save and delete AdminstratorPage adminPage = AdminstratorPage.Connect(driver); adminPage.NavigateToMenuItem("Utvalgsbehandling", "Styre, råd og utvalg", "Styre, råd og utvalg (alle)"); adminPage.ClickOnButton("New"); adminPage.SetTextBox("Board name", "Automation Testing"); adminPage.SetTextBox("Board meetingcode", "AT"); adminPage.SelectHtmlComboBox("Adm.unit", "Adm.enhet B2"); adminPage.Save(); driver.HandleErrorPopUpAndThrowErrorMessage(); adminPage.VerifyDesctiptionIsExist("AT"); adminPage.EditDescription("AT", "Board name", "Edit_Automation Testing", Description.TextBox); adminPage.ClickDeleteAndConfirmDelete(); #region Logout from Admin Module LogoutPage logoutPage = LogoutPage.Connect(driver); logoutPage.LogoutApplication(); #endregion #endregion }); }
public void AddEditDeleteKunngjoringsmater() { Selenium_Run((driver) => { #region Login to Admin Module FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue()); #endregion #region Navigate to Kunngjøringsmåter and add, save and delete AdminstratorPage adminPage = AdminstratorPage.Connect(driver); adminPage.NavigateToMenuItem("Ansettelsessak", "Kunngjøringsmåter", "Kunngjøringsmåter (alle)"); adminPage.ClickOnButton("New"); adminPage.SetTextBox("Announcement method", "AT"); adminPage.SetTextBox("Description", "Automation Testing"); adminPage.Save(); driver.HandleErrorPopUpAndThrowErrorMessage(); adminPage.VerifyDesctiptionIsExist("AT"); adminPage.EditDescription("AT", "Description", "Edit Automation Testing", Description.TextBox); adminPage.ClickDeleteAndConfirmDelete(); #region Logout from Admin Module LogoutPage logoutPage = LogoutPage.Connect(driver); logoutPage.LogoutApplication(); #endregion #endregion }); }
public void AddEditDeleteTilleggsattributter() { Selenium_Run((driver) => { #region Login to Admin Module FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue()); #endregion #region Navigate to Tilleggsattributter and add, save and delete AdminstratorPage adminPage = AdminstratorPage.Connect(driver); adminPage.NavigateToMenuItem("SGK-funksjoner", "Tilleggsattributter", "Tilleggsattributter (alle)"); adminPage.ClickOnButton("New"); adminPage.SetTextBox("Code", "AT"); adminPage.SetTextBox("No.", "10"); adminPage.SetTextBox("Description", "Automation Testing"); adminPage.SetTextBox("Caption", "Tilleggsattributter Captions "); adminPage.SelectHtmlComboBox("Field type", "Text box"); adminPage.SelectHtmlComboBox("Type", "Note"); adminPage.Save(); driver.HandleErrorPopUpAndThrowErrorMessage(); adminPage.EditDescription("AT", "Description", "Edit_Automation Testing", Description.TextBox, false); adminPage.ClickDeleteAndConfirmDelete(); #region Logout from Admin Module LogoutPage logoutPage = LogoutPage.Connect(driver); logoutPage.LogoutApplication(); #endregion #endregion }); }
public void AddEditDeleteGebyrtyper() { Selenium_Run((driver) => { #region Login to Admin Module FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue()); #endregion var time = DateTime.Now; //12.02.2020 07:04:05 4:25 5:00 string fromDate = time.ToString("dd.MM.yyyy"); #region Navigate to Vedtakstyper and add, save and delete AdminstratorPage adminPage = AdminstratorPage.Connect(driver); adminPage.NavigateToMenuItem("Byggesak", "Gebyrtyper", "Gebyrtyper (alle)"); adminPage.ClickOnButton("New"); adminPage.SetTextBox("Description", "Automation_Testing"); adminPage.SetTextBox("Cost", "1000"); adminPage.SetTextBox("From date", fromDate); adminPage.Save(); driver.HandleErrorPopUpAndThrowErrorMessage(); adminPage.EditDescription("Automation_Testing", "Description", "Edit_Automation Testing", Description.TextBox, false); adminPage.ClickDeleteAndConfirmDelete(); #region Logout from Admin Module LogoutPage logoutPage = LogoutPage.Connect(driver); logoutPage.LogoutApplication(); #endregion #endregion }); }
public void AddEditDeleteStillingsstatus() { Selenium_Run((driver) => { #region Login to Admin Module FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue()); #endregion #region Navigate to Vedtakstyper and add, save and delete AdminstratorPage adminPage = AdminstratorPage.Connect(driver); adminPage.NavigateToMenuItem("Ansettelsessak", "Stillingsstatus", "Stillingsstatus (alle)"); adminPage.ClickOnButton("New"); adminPage.SetTextBox("Position status", "11"); adminPage.SetTextBox("Description", "Automation_Testing"); adminPage.Save(); adminPage.VerifyDesctiptionIsExist("11"); adminPage.EditDescription("11", "Description", "Edit_Automation Testing", Description.TextBox); adminPage.ClickDeleteAndConfirmDelete(); #region Logout from Admin Module LogoutPage logoutPage = LogoutPage.Connect(driver); logoutPage.LogoutApplication(); #endregion #endregion }); }
public void AddEditDeleteVedtakstatus() { Selenium_Run((driver) => { #region Login to Admin Module FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue()); #endregion #region Navigate to Vedtaksstatus and add, save and delete AdminstratorPage adminPage = AdminstratorPage.Connect(driver); adminPage.NavigateToMenuItem("Vedtaksoppfølging", "Vedtaksstatus", "Vedtaksstatus(alle)"); adminPage.ClickOnButton("New"); adminPage.SetTextBox("Decision status", "K"); adminPage.Save(); driver.HandleErrorPopUpAndThrowErrorMessage(); adminPage.VerifyDesctiptionIsExist("K"); adminPage.EditDescription("K", "Description", "Automation Testing", Description.TextBox); adminPage.ClickDeleteAndConfirmDelete(); #region Logout from Admin Module LogoutPage logoutPage = LogoutPage.Connect(driver); logoutPage.LogoutApplication(); #endregion #endregion }); }
public void AddEditDeleteImportsentraler() { Selenium_Run((driver) => { #region Login to Admin Module FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue()); #endregion #region Navigate to Importsentraler and add, save and delete AdminstratorPage adminPage = AdminstratorPage.Connect(driver); adminPage.NavigateToMenuItem("SGK-funksjoner", "Importsentral", "Importsentraler (alle)"); adminPage.ClickOnButton("New"); adminPage.SelectHtmlComboBox("Type", "IMAP"); adminPage.SetTextBox("Description", "Automation Testing"); adminPage.SelectHtmlComboBox("Person", "EPHORTE"); adminPage.Save(); driver.HandleErrorPopUpAndThrowErrorMessage(); adminPage.EditDescription("Automation Testing", "Description", "Edit_Automation Testing", Description.TextBox, false); adminPage.ClickDeleteAndConfirmDelete(); #region Logout from Admin Module LogoutPage logoutPage = LogoutPage.Connect(driver); logoutPage.LogoutApplication(); #endregion #endregion }); }
public void CasePartyScreenedOrRestricted() { // #Case 138908 #region Private variables var caseId = string.Empty; var caseId2 = string.Empty; var caseScreenedTitle = string.Format("Case party screened or restricted"); var caseUnScreenedTitle = string.Format("Case party unscreened not restricted"); #endregion #region Case Level - Step 1 to 4 //Pre-requisite #region ---- Admin Module - Prereq ---- Selenium_Run((driver) => { #region Login to Admin Module FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue()); #endregion #region Navigate to Tilgangskoder and check the Access code is 6 is setup AdminstratorPage adminPage = new AdminstratorPage(driver); adminPage.NavigateToMenuItem("Brukeradministrasjon/tilgangsstyring", "Tilgangskoder", "Tilgangskoder (alle)"); adminPage.VerifyAccessCodeExist("6"); adminPage.ClickItemInGrid("6"); adminPage.ClickCheckBoxInAdminModuleSwitchOnOff("Hide title automatically when creating new post", true); adminPage.ClickCheckBoxInAdminModuleSwitchOnOff("Hide sender/recipient automatically when creating new post", true); adminPage.Save(); #endregion #region Guilt User - authorized for access code 6 for adm unit ENG adminPage.NavigateToMenuItem("Person", "Person"); adminPage.SelectPerson("GUILT"); adminPage.AddOrEditAutorization("6", "Adm.unit", "ENG"); #endregion #region Sda User - is NOT Authorized for access code 6 on adm unit ENG adminPage.ClickDropDownInAdminModule("Person"); adminPage.SelectPerson("SDA"); adminPage.RemoveAutorization("6", "SDA"); #endregion #region Logout from Admin Module LogoutPage logoutPage = new LogoutPage(driver); logoutPage.LogoutApplication(); #endregion }); #endregion //Step 1-3 #region Login to RM module with Guilt user as TstIndia1 Selenium_Run((driver) => { #region Login to RM Module as User 1 -Guilt FrontPage.LoginToApplication(driver); #endregion #region Create new Case and edit title CasePage casePage = new CasePage(driver); casePage.AddTitle(caseScreenedTitle); casePage.SelectKendoDropdownAndAddValue("Access code", "6"); casePage.SaveCase(); caseId = casePage.GetCaseNumber(); #endregion #region create a new case party and add restricted (checkbox) casePage.AddParties("Short name", "AA"); #endregion #region Logout from Application LogoutPage logoutPage = new LogoutPage(driver); logoutPage.LogoutApplication(); #endregion }); #endregion //Step 4 #region Login to RM module with user 2 SDA Selenium_Run((driver) => { #region Login to RM Module as User 2 - SDA User FrontPage.LoginToApplication(driver, ApplicationModules.RecordManagement.GetStringValue(), "SDA", "SDA"); #endregion #region Open Case Number and verify the case parties is resticted CasePage casePage = new CasePage(driver); casePage.QuickSearchCaseId(caseId); casePage.VerifyCasePartryIsRestricted("*****", true); #endregion #region Logout from Application LogoutPage logoutPage = new LogoutPage(driver); logoutPage.LogoutApplication(); #endregion }); #endregion //Step 5 #region Login to RM module with user 1 Guilt Selenium_Run((driver) => { #region Login to RM Module as User 1 - Guilt User FrontPage.LoginToApplication(driver); #endregion #region Open Case Number and verify the case parties is resticted CasePage casePage = new CasePage(driver); casePage.CreateCase(caseUnScreenedTitle); caseId2 = casePage.GetCaseNumber(); #endregion #region create a new case party and add restricted (checkbox) casePage.AddParties("Short name", "AA", false); #endregion #region Logout from Application LogoutPage logoutPage = new LogoutPage(driver); logoutPage.LogoutApplication(); #endregion }); #endregion #region Login to RM module with user 2 SDA Selenium_Run((driver) => { #region Login to RM Module as User 2 - SDA User FrontPage.LoginToApplication(driver, ApplicationModules.RecordManagement.GetStringValue(), "SDA", "SDA"); #endregion #region Open Case Number and verify the case parties is resticted CasePage casePage = new CasePage(driver); casePage.QuickSearchCaseId(caseId2); casePage.VerifyCasePartryIsRestricted("Anda Apotek", false); #endregion #region Logout from Application LogoutPage logoutPage = new LogoutPage(driver); logoutPage.LogoutApplication(); #endregion }); #endregion #endregion }