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);
                }
            }
        }
        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);
                }
            }
        }
Example #3
0
 public static void AssemblyCleanup()
 {
     TestExecutionerPool.ClosePool();
 }