예제 #1
0
        public void Setup()
        {
            // Initializing objects of the pages required for the login process
            homePage   = new HomePage(Driver);
            loginPage  = new LoginPage(Driver);
            sharedData = new SharedData();
            string      FilePath = File.ReadAllText(Path.Combine(Directory.GetParent(System.IO.Directory.GetCurrentDirectory()).Parent.Parent.Parent.FullName + "\\Data\\DataFiles\\UserCredentials.json"), Encoding.UTF8);
            HelperClass helper   = new HelperClass();

            helper.ReadJsonData(FilePath);
            // Initializing objects of the pages required for accessing the interoberability project
            homePage2    = new HomePage2(Driver);
            projectsPage = new InteroperabilityProjectsPage(Driver);

            //Logging in
            homePage.ClickSignInButton();
            loginPage.Login(helper.UserName, helper.Password);
            test.Log(Status.Info, "Logged in sucessfully");

            // Impersonating the health system
            homePage2.ImpersonateIDN(sharedData.idnName);
            homePage2.WaitForPageToBeReady();
            test.Log(Status.Info, "Health system impersonated");

            // Opening the desired interoperability project
            homePage2.openInteroperabilityProjectsPage();
            homePage2.WaitForPageToBeReady();

            test.Log(Status.Info, "Navigated to interoperability projects page");

            // Searching for the desired interoperability project
            projectsPage.searchForInteroberabilityProject(sharedData.cernerInteroperabilityProjectName);
            projectsPage.WaitForPageToBeReady();
            test.Log(Status.Info, "Interoperability project search completed successfully");

            // Opening the desured interoperability project
            projectsPage.openInteroperabilityProject();
            test.Log(Status.Info, "Interoperability project opened successfully");

            // Declaring the edit interoperability page object
            editProjectPageObject = new EditInteroberabilityProjectPage(Driver);

            // Opening the alignment tab
            editProjectPageObject.GotoAlignmentTab();
            editProjectPageObject.WaitForPageToBeReady();
            test.Log(Status.Info, "Alignment tab header clicked successfully");

            // Setting this flags with true to let all subsequent TCs know that the alignment tab is already opened
            isSetupCompleted = true;
        }
예제 #2
0
 public static void impersonateHealthSystem()
 {
     homePage2.ImpersonateIDN(sharedData.idnName);
     waitForGridLoading(homePage2.emptyToDoGridRow, homePage2.todoPagingResult);
 }