public void EditRegistryEntryTitle() { Run((driver) => { #region logon into Elements var frontPage = FrontPage.Connect(driver); var loginWindow = frontPage.OpenLogin(); loginWindow.Login("guilt", "guilt"); loginWindow.SelectModule(); #endregion #region Create new Case CasePage casePage = new CasePage(driver); casePage.CreateCase("Smoke test - Create new case"); #endregion #region Registry Entry RegistryEntryPage regEntry = new RegistryEntryPage(driver); regEntry.CreateRegistryEntry(RegistryEntryType.OutgoingType.GetStringValue()); regEntry.AddRegTitle("Registry entry title"); regEntry.AddRegToAddress("AA"); regEntry.ClickSaveBttn(); #endregion #region Edit Registry entry title regEntry.EditRegistryEntryTitle("Registry entry title has edited"); #endregion #region Logout from Application LogoutPage logoutPage = new LogoutPage(driver); logoutPage.LogoutApplication(); #endregion }); }
public void EditCase() { Run((driver) => { #region logon into Elements var frontPage = FrontPage.Connect(driver); var loginWindow = frontPage.OpenLogin(); loginWindow.Login("guilt", "guilt"); loginWindow.SelectModule(); #endregion #region Edit Case Title CasePage casePage = new CasePage(driver); casePage.CreateCase("Smoke test - Edit Case"); #endregion #region Edit Case Title casePage.EditCaseTitle("Smoke test create case has edited"); #endregion #region Logout from Application LogoutPage logoutPage = new LogoutPage(driver); logoutPage.LogoutApplication(); #endregion }); }
public void AddDeleteCaseParties() { Run((driver) => { #region logon into Elements var frontPage = FrontPage.Connect(driver); var loginWindow = frontPage.OpenLogin(); loginWindow.Login("guilt", "guilt"); loginWindow.SelectModule(); #endregion #region Create new Case CasePage casePage = new CasePage(driver); casePage.CreateCase("Smoke test- Add Delete Case Parties"); #endregion #region Add and Delete Case Parties casePage.AddParties("Short name", "AA"); casePage.EditCaseParties("AB"); casePage.DeleteCaseParties(); #endregion #region Logout from Application LogoutPage logoutPage = new LogoutPage(driver); logoutPage.LogoutApplication(); #endregion }); }
public void ShowFrontpage() { Run((driver) => { var frontPage = FrontPage.Connect(driver); frontPage.WriteDbInfoToConsole(); //driver.Close(); }); }
//[Ignore] //[DataRow(1)] //[DataRow(2)] //[DataRow(3)] //[DataTestMethod] public void ShowFrontpageAndClickLogin(int iteration) { Run((driver) => { var frontPage = FrontPage.Connect(driver); var loginWindow = frontPage.OpenLogin(); loginWindow.Login("guilt", "guilt"); Console.WriteLine($"Number of windows: {driver.WindowHandles.Count}"); }); }
public void WorkFlowTests() { Run((driver) => { #region Logon Elements var frontPage = FrontPage.Connect(driver); var loginWindow = frontPage.OpenLogin(); loginWindow.Login("guilt", "guilt"); loginWindow.SelectModule(); #endregion #region Change Role DashboardPage dashboardPage = new DashboardPage(driver); dashboardPage.ChangeRole(GlobalEnum.RolesInApplication.MainRegistrar); #endregion #region Create new Case CasePage casePage = new CasePage(driver); casePage.CreateCase("Case workflow with two users involved: ad-hoc:07"); #endregion #region Work Flow WorkFlowPage workFlowPage = new WorkFlowPage(driver); workFlowPage.CreateWorkFlow("P", "New Work Flow", "case new work flow", "Parallell behandling", "28.08.2019"); workFlowPage.AddWorkFlowSubTask("sjekkpunkt", "Aktivisert", "New Work Flow Sub Task", "Sub task for new work flow", "Parallell behandling", "03.09.2019"); workFlowPage.VerifySubTaskCreated("New Work Flow Sub Task"); workFlowPage.ChooseSubTask("ODS", "Aktivisert", "ODS Work Flow Sub Task", "ODS Active status Sub task for new work flow", "Parallell behandling", "03.09.2019"); workFlowPage.VerifyChooseSubTaskTypeCreated("ODS Work Flow Sub Task"); workFlowPage.OutgoingRegistryEntryDocument("ODS document title", "Utgående post/Outbound", "Standard brev", "Reservert"); #endregion #region Logout from Application LogoutPage logoutPage = new LogoutPage(driver); logoutPage.LogoutApplication(); #endregion }); }
public void RedPopUpHandleErrorMessage() { Run((driver) => { #region logon into Elements var frontPage = FrontPage.Connect(driver); var loginWindow = frontPage.OpenLogin(); loginWindow.Login("guilt", "guilt"); #endregion #region Create new Case CasePage casePage = new CasePage(driver); casePage.SelectModule(); casePage.CreateCase("Create new Case"); #endregion #region Logout from Application LogoutPage logoutPage = new LogoutPage(driver); logoutPage.LogoutApplication(); #endregion }); }
public void EditCaseClassification() { Run((driver) => { #region logon into Elements var frontPage = FrontPage.Connect(driver); var loginWindow = frontPage.OpenLogin(); loginWindow.Login("guilt", "guilt"); loginWindow.SelectModule(); #endregion #region Create new Case CasePage casePage = new CasePage(driver); casePage.CreateCaseWithClassificationCode("Smoke test - Create new case", "009"); #endregion #region Logout from Application LogoutPage logoutPage = new LogoutPage(driver); logoutPage.LogoutApplication(); #endregion }); }
public void AddDeleteExternalReceipient() { Run((driver) => { #region logon into Elements var frontPage = FrontPage.Connect(driver); var loginWindow = frontPage.OpenLogin(); loginWindow.Login("guilt", "guilt"); loginWindow.SelectModule(); #endregion #region Create new Case CasePage casePage = new CasePage(driver); casePage.CreateCase("Smoke test - Create new case"); #endregion #region Add and Delete To address in the Registry Entry RegistryEntryPage regEntry = new RegistryEntryPage(driver); regEntry.CreateRegistryEntry(RegistryEntryType.OutgoingType.GetStringValue()); regEntry.AddRegTitle("Registry entry title"); regEntry.AddRegToAddress("AA"); regEntry.AddMultipleRegToAddress("AB"); regEntry.ClickSaveBttn(); regEntry.EditRegistryToAddress("Aktiebolaget Bolinda", "*****@*****.**"); regEntry.ClickSaveBttn(); regEntry.DeleteRegistrEntryToAddress("Aktiebolaget Bolinda"); regEntry.ClickSaveBttn(); #endregion #region Logout from Application LogoutPage logoutPage = new LogoutPage(driver); logoutPage.LogoutApplication(); #endregion }); }