コード例 #1
0
        public void ThenPageHeaderShouldBeDisplayedAs(string labDetails)
        {
            string HlpText = Control_ActionUtilities.GetTextOfAnObject(ReferenceRangesPage.LabTestDetails, "Lab Management Help text", "Study Administration", "Unable to verify help text for Lab Management page.");

            if (!labDetails.Equals(HlpText))
            {
                Control_ActionUtilities.LogException("Verification of Lab Management help text as '" + labDetails + "'", string.Empty, "Help text for Lab Management is not displayed as " + labDetails + " on Study Administration page.");
            }
        }
コード例 #2
0
        public void ThenICanSeeTheReferenceRangesOfALabTestInReferenceRangesPage(string labTest)
        {
            string HlpText = Control_ActionUtilities.GetTextOfAnObject(ReferenceRangesPage.LabTest, "Lab Management Lab Test", "Lab Management", "Unable to verify Lab Test on Lab Management page.");

            if (!labTest.Equals(HlpText))
            {
                Control_ActionUtilities.LogException("Verification of Lab Test '" + labTest + "'", string.Empty, "Unable to verify Lab Test " + labTest + " on Lab Management page.");
            }
        }
コード例 #3
0
        public void ThenHelpTextBelowLabManagementIsDisplayedAs_(string LabMgmtHelpText)
        {
            string HlpText = Control_ActionUtilities.GetTextOfAnObject(DL_StudyAdministrationPage.LabMgmntHelpText, "Lab Management Help text", "Study Administration", "Unable to verify help text for Lab Management page.");

            if (!LabMgmtHelpText.Equals(HlpText))
            {
                Control_ActionUtilities.LogException("Verification of Lab Management help text as '" + LabMgmtHelpText + "'", string.Empty, "Help text for Lab Management is not displayed as " + LabMgmtHelpText + " on Study Administration page.");
            }
        }
コード例 #4
0
        public void ThenISeePage(string PageName)
        {
            string HlpText = Control_ActionUtilities.GetTextOfAnObject(DL_Lab_ManageReferenceRanges.ManageReferenceRanges, "Lab Management Help text", "Study Administration", "Unable to verify help text for Lab Management page.");

            if (!PageName.Equals(HlpText))
            {
                Control_ActionUtilities.LogException("Verification of Lab Management help text as '" + PageName + "'", string.Empty, "Help text for Lab Management is not displayed as " + PageName + " on Study Administration page.");
            }
            //Control_ActionUtilities.VerifyObjectExistOnPage(DL_Lab_ManageReferenceRanges.ManageReferenceRanges, "Manage Reference Ranges title", "Lab Management", "Unable to verify manage reference range page");
        }
コード例 #5
0
 public static String GetTablePromptInTable()
 {
     try
     {
         return(Control_ActionUtilities.GetTextOfAnObject(DS_Forms.TablePromptInTable, null, "Properties Page", "Unable to get text"));
     }
     catch (Exception e)
     {
         new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e);
         return(null);
     }
 }
コード例 #6
0
 public static String GetKeySequenceInQuestion()
 {
     try
     {
         return(Control_ActionUtilities.GetTextOfAnObject(DS_Forms.KeySequenceInQuestionPage, null, "Question page in form", "Unable to get text"));
     }
     catch (Exception e)
     {
         new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e);
         return(null);
     }
 }