示例#1
0
        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
            });
        }
示例#2
0
        public void AddEditDeleteVedtakstype()
        {
            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("Vedtaksoppfølging", "Vedtakstype", "Vedtakstyper(alle)");
                adminPage.ClickOnButton("New");
                adminPage.SetTextBox("Decision code", "AT");
                adminPage.Save();
                driver.HandleErrorPopUpAndThrowErrorMessage();
                adminPage.VerifyDesctiptionIsExist("AT");
                adminPage.EditDescription("AT", "Description", "Automation Testing", Description.TextBox);
                adminPage.ClickDeleteAndConfirmDelete();

                #region Logout from Admin Module
                LogoutPage logoutPage = LogoutPage.Connect(driver);
                logoutPage.LogoutApplication();
                #endregion
                #endregion
            });
        }
示例#3
0
        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
            });
        }
示例#4
0
        public void AddEditDeleteBehandlingsStatus()
        {
            Selenium_Run((driver) =>
            {
                #region Login to Admin Module
                FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue());
                #endregion

                #region Navigate to Behandlingsstatus and add, save and delete
                AdminstratorPage adminPage = AdminstratorPage.Connect(driver);
                adminPage.NavigateToMenuItem("Utvalgsbehandling", "Behandlingsstatus", "Behandlingsstatus (alle)");
                adminPage.ClickOnButton("New");
                adminPage.SetTextBox("Status", "GD");
                adminPage.SetTextBox("Description", "Automation Testing");
                adminPage.SetTextBox("Sort order", "1");
                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
            });
        }
示例#5
0
        public void AddEditDeleteAvskrivingsmate()
        {
            Selenium_Run((driver) =>
            {
                #region Login to Admin Module
                FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue());
                #endregion

                #region Navigate to Avskrivingsmåte and add, save and delete
                AdminstratorPage adminPage = AdminstratorPage.Connect(driver);
                adminPage.NavigateToMenuItem("Arkivstyring");
                adminPage.NavigateToMenuItem("Avskrivingsmåte", "Avskrivingsmåte");
                adminPage.ClickOnButton("New");
                adminPage.SetTextBox("Mode of depreciation", "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
            });
        }
示例#6
0
        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 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 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 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
            });
        }
示例#11
0
        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
            });
        }
示例#12
0
        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
            });
        }
示例#13
0
        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
            });
        }