コード例 #1
0
        public PMSApplication(TestCaseHeaderData headerData, string userName = "", string password = "")
        {
            executioner = TestExecutionerPool.GetTestExecutioner(headerData, userName, password, landingPage);

            if (!executioner.PoolState.WasAlreadyInPool)
            {
                executioner.NavigateTo(loginURL, "Navigate to Patitnet management system's login page");

                if (!(string.IsNullOrEmpty(userName) && string.IsNullOrEmpty(password)))
                {
                    this.IsAuthenticated = AuthFeature.LoginToPMS(userName, password);
                }
            }
        }
コード例 #2
0
        public override bool StartNewTestCase(TestCaseHeaderData headerData)
        {
            SaveReport();
            Dispose();

            bool result = InitialzieNewTestCase(headerData);

            if (result)
            {
                //newTestCasePath gets initialized based on the testCaseHeader parameter
                NewTestCasePath += "\\" + TestCaseHeader.TestCaseFileName.Replace(".html", "").Replace(".", "") + ".html";
            }

            return(result);
        }
コード例 #3
0
        public void HOS20_UpdateExistingHospitalName()
        {
            TestCaseHeaderData testDescription = new TestCaseHeaderData()
            {
                TestNumber      = "HOS20",
                TestDescription = "Given an existing hospital, When the hospital name is altered, Then the hospital record should be updated accordingly",
                TestFamily      = "Hospital Tests",
                TestName        = "UpdateAnExistingHospital",
                Prereqs         = "None"
            };

            using (var testSteps = new HospitalProvisioningSteps(testDescription))
            {
                testSteps.GivenAnExistingRandomlySelectedHospital();
                testSteps.WhenTheHospitalNameIsUpdated();
                testSteps.ThenTheHospitalShouldBeUpdatedAccordingly();
            }
        }
コード例 #4
0
        public PMSApplication(string testNumber, string testName = "", string testDescription = "", string testFamily = "", string userName = "", string password = "")
        {
            TestCaseHeaderData tcHeader = new TestCaseHeaderData()
            {
                TestName        = string.Format("{0}_{1}", testNumber, testName.Replace(" ", "_")),
                TestNumber      = testNumber,
                TestDescription = testDescription
            };

            executioner = TestExecutionerPool.GetTestExecutioner(tcHeader, userName, password, landingPage);

            if (!executioner.PoolState.WasAlreadyInPool)
            {
                executioner.NavigateTo(loginURL, "Navigate to Patitnet management system's login page");

                if (!(string.IsNullOrEmpty(userName) && string.IsNullOrEmpty(password)))
                {
                    this.IsAuthenticated = AuthFeature.LoginToPMS(userName, password);
                }
            }
        }
コード例 #5
0
 protected void InitializeBugCreator(TestCaseHeaderData header, List <TestCaseStep> steps)
 {
     Header = header;
     Steps  = steps;
     InitializeBugTitleAndSummary();
 }
コード例 #6
0
 //Make sure to call base.InitializeBugCreator when you override this method!
 public abstract string CreateBug(TestCaseHeaderData header, List <TestCaseStep> steps);
コード例 #7
0
 public HospitalProvisioningSteps(TestCaseHeaderData testcaseHeader)
 {
     this.testCaseHeader = testcaseHeader;
 }
コード例 #8
0
 public override bool StartNewTestCase(TestCaseHeaderData headerData) //complete test case???
 {
     throw new NotImplementedException();
 }
コード例 #9
0
 protected void RegisterTestUnderDevelopment(TestCaseHeaderData headerData, string etaDate)
 {
     RegisterTestUnderDevelopment(headerData.TestNumber, headerData.TestName, headerData.TestDescription, headerData.TestFamily, etaDate);
 }