Пример #1
0
 public void GoBackToDashBoard()
 {
     Console.WriteLine("All tests have been finished, Going back to DashBoard");
     Thread.Sleep(2000);
     tabs.Dashboard();
     Thread.Sleep(4000);
     standard.Ok();
 }
Пример #2
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();
     }
 }
 public bool ValidateInformation()
 {
     if (bip.VerifyBasicInfoField())
     {
         flag = true;
         Console.WriteLine("---------------------------------- TEST PASSED -------------------------------------------\n");
         Console.WriteLine("Result: Patient information able to save Test Passed");
         Console.WriteLine("\n--------------------------------------------------------------------------------\n");
         if (count == patientids.Length - 1)
         {
             Console.WriteLine("All Test have been finished, Going to Dashboard");
             Thread.Sleep(2000);
             tabs.Dashboard();
             Thread.Sleep(3000);
             standard.Ok();
             count = -1;
         }
         return(flag);
     }
     else
     {
         flag = false;
         Console.WriteLine("\n-------------------------------------- TEST FAILED --------------------------------------------------");
         Console.WriteLine("Result: Patient information not able to save, Test Failed");
         Console.WriteLine("\n--------------------------------------------------------------------------------\n");
         if (count == patientids.Length - 1)
         {
             Console.WriteLine("All Test have been finished, Going to Dashboard");
             Thread.Sleep(2000);
             tabs.Dashboard();
             Thread.Sleep(3000);
             standard.Ok();
             count = -1;
         }
         return(flag);
     }
 }
Пример #4
0
 public void GoToDashBoard()
 {
     try
     {
         Thread.Sleep(4000);
         tabs.Dashboard();
         Thread.Sleep(5000);
         standard.Ok();
         Thread.Sleep(5000);
     }
     catch (Exception)
     {
         Console.WriteLine(">>>>>>>>>>>>>>> Exception raised on clicking the dashboard button <<<<<<<<<<<<<<<<<<<<<");
     }
 }