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); }
public void Delete_Policy_WIthout_Criteria() { //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.SearchByName(policyName); policydetails.ClickDeleteButton(); } }
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); }