Beispiel #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);
        }
Beispiel #2
0
        public void Create_Basic_Policy()
        {
            //Login

            PolicyDetails policydetails = new PolicyDetails();

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

            policydetails.ClickSaveButton();
            policydetails.ClickNoCriteriaDialogButton();
            policydetails.WaitForStatus();
            //Purge created data
            PurgeLinkedData.DeletAdmissionPolicy(policyName);
        }
Beispiel #3
0
        public void Search_Policy_ByName()
        {
            //Login
            PolicyDetails policydetails = new PolicyDetails();

            //Insert a policy into database
            Guid   policyId          = Guid.NewGuid();
            string policyName        = CoreQueries.GetColumnUniqueString("AdmissionsPolicy", "Name", 10, tenantID);
            string policyDescription = CoreQueries.GetColumnUniqueString("AdmissionsPolicy", "Description", 10, tenantID);

            using (new DataSetup(GetPolicyRecord(policyId, policyName, policyDescription)))
            {
                //Act
                Navigate_To_Policy();
                policydetails.ClickAddPolicyButton();
                policydetails.SearchByName(policyName);
            }
            //Purge created data
            PurgeLinkedData.DeletAdmissionPolicy(policyId);
        }