Esempio n. 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);
        }
Esempio n. 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);
        }