示例#1
0
 public void SetupTest()
 {
     application   = Setup.attachPSC();
     currentWindow = Setup.getWindow(application);
     standard      = new StandardOperations(currentWindow);
     search        = new SearchPage(currentWindow);
     tabs          = new Tabs(currentWindow);
     bip           = new BasicInfoPage(currentWindow);
 }
示例#2
0
        /*       public static void Main(string[] args)
         *     {
         *         SampleTest test = new SampleTest();
         *         Login.loginPSC(currentWindow);
         *         Thread.Sleep(5000);
         *         Screenshot screen = new Screenshot();
         *         screen.GetScreenshot("temp.png");
         *         search.SearchPatient(1);
         *         Thread.Sleep(5000);
         *         bool flag = search.IsSearchEmpty();
         *         if (flag == true)
         *         {
         *             Console.WriteLine("Not able to search the patient, So adding the patient");
         *             search.AddNewPatient();
         *             test.ProvideNewPatientInformation();
         *         }
         *         else if (flag == false)
         *         {
         *             Console.WriteLine("Patient Found");
         *             search.SelectFirstSearchRecord();
         *         }
         *         //test.InputAdditionInfo();
         *         //test.AddGuardianInformation();
         *         //test.PerformOperations();
         *         //test.AddInsuranceInfo();
         *         //test.AddNewPatient();
         *     }
         *
         *     public void InputAdditionInfo()
         *     {
         *         AdditionalInfoPage aip = new AdditionalInfoPage(currentWindow);
         *         standard.Next();
         *         Thread.Sleep(5000);
         *         aip.ProvideMailingAddress(1);
         *         Thread.Sleep(2000);
         *        // aip.SameAsMailingAddress("No");
         *        // aip.ProvideBillingAddress(1);
         *
         *     }
         *
         *     public void AddInsuranceInfo()
         *     {
         *         for (int i = 0; i < 10; i++)
         *             standard.Back();
         *
         *         Thread.Sleep(5000);
         *         AdditionalInfoPage aip = new AdditionalInfoPage(currentWindow);
         *         Thread.Sleep(2000);
         *         aip.AddInsurance(1);
         *     }
         *
         *     public void AddGuardianInformation()
         *     {
         *         //standard.Next();
         *         standard.Next();
         *         Thread.Sleep(5000);
         *         AdditionalInfoPage aip = new AdditionalInfoPage(currentWindow);
         *         //aip.AddGuardian(1);
         *         aip.AddEmergencyContact(1);
         *         Thread.Sleep(1000);
         *         standard.Delete();
         *         Thread.Sleep(2000);
         *         standard.Ok();
         *         //standard.Delete();
         *     }
         *
         *     public void PerformOperations()
         *     {
         *         //StandardOperations standard = new StandardOperations(currentWindow);
         *         Thread.Sleep(5000);
         *         tabs.Dashboard();
         *         Thread.Sleep(5000);
         *         standard.Cancel();
         *         Thread.Sleep(5000);
         *         tabs.Dashboard();
         *         Thread.Sleep(5000);
         *         standard.Ok();
         *         Console.ReadLine();
         *     }*/

        public void C_AddNewPatientInformation()
        {
            Thread.Sleep(5000);
            BasicInfoPage bip = new BasicInfoPage(currentWindow);

            bip.ProvideBasicInformation(9);
            Thread.Sleep(2000);
            standard.Save();
        }
示例#3
0
        public void SetupTest()
        {
            application   = Setup.attachPSC();
            currentWindow = Setup.getWindow(application);
            standard      = new StandardOperations(currentWindow);
            search        = new SearchPage(currentWindow);
            tabs          = new Tabs(currentWindow);
            bip           = new BasicInfoPage(currentWindow);
            aip           = new AdditionalInfoPage(currentWindow);

            //Searching for the patient
            search.SearchPatient(searchpatient);
            search.SelectFirstSearchRecord();
        }
示例#4
0
 public void AddNonExistingPatient()
 {
     if (search.IsSearchEmpty() && patientid < 3)
     {
         Console.WriteLine("Not able to search the patient, So adding the patient");
         search.AddNewPatient();
         Thread.Sleep(5000);
         BasicInfoPage bip = new BasicInfoPage(currentWindow);
         bip.ProvideBasicInformation("patientadditionalinfo.csv", patientid);
         Thread.Sleep(2000);
         standard.Save();
         Thread.Sleep(3000);
         tabs.Dashboard();
         Thread.Sleep(2000);
         standard.Ok();
     }
 }