Example #1
0
        public void Create_Policy_WithCriteria()
        {
            //Login
            PolicyDetails policydetails = new PolicyDetails();

            Navigate_To_Policy();
            policydetails.ClickAddPolicyButton();
            String policyName        = policydetails.setPolicyName();
            String policyDescription = policydetails.setPolicyDescription();

            policydetails.ClickAddCriteriaDialog();
            policydetails.ClickAddCriteriaButton();
            String CriteriaName = policydetails.setCriteriaName();

            policydetails.SetCriteriaType("Number");
            policydetails.setCriteriaDescription();
            policydetails.ClickSaveCriteriaButton();
            policydetails.ClickSelectCriteriaButton();
            policydetails.setCriteriaPriority();
            policydetails.ClickSaveButton();
            policydetails.WaitForStatus();
            policydetails.SearchByName(policyName);

            PurgeLinkedData.DeletAdmissionPolicyCriteriaRelation(policyName);
            PurgeLinkedData.DeletAdmissionCriteria(CriteriaName);
            PurgeLinkedData.DeletAdmissionPolicy(policyName);
        }
Example #2
0
        public void Create_Basic_Criteria()
        {
            //Login
            Navigate_To_Criteria();
            CriteriaDetails criteriadetails = new CriteriaDetails();

            criteriadetails.ClickAddCriteriaButton();
            String criteriaName        = criteriadetails.setCriteriaName();
            String criteriaDescription = criteriadetails.setCriteriaDescription();

            criteriadetails.ClickSaveButton();
            criteriadetails.WaitForStatus();
            PurgeLinkedData.DeletAdmissionCriteria(criteriaName);
        }
Example #3
0
        public void Search_Criteria_ByName()
        {
            //Insert a Criteria into database
            Guid   criteriaId          = Guid.NewGuid();
            string criteriaName        = CoreQueries.GetColumnUniqueString("AdmissionsCriteria", "Name", 10, tenantID);
            string criteriaDescription = CoreQueries.GetColumnUniqueString("AdmissionsCriteria", "Description", 10, tenantID);

            using (new DataSetup(GetCriteriaRecord(criteriaId, criteriaName, criteriaDescription)))
            {
                //Act
                //Login
                Navigate_To_Criteria();
                CriteriaDetails criteriadetails = new CriteriaDetails();
                criteriadetails.SearchByName(criteriaName);
            }
            //Purge created data
            PurgeLinkedData.DeletAdmissionCriteria(criteriaId);
        }