func (t *TestCase) ApplyExpects(res *resty.Response, rulectx *Context) (bool, []error) {
	if res == nil { // if we've not got a response object to check, always return false
		return false, []error{t.AppErr("nil http.Response - cannot process ApplyExpects")}
	}
	ok, err := t.validateExpect(t.Expect, res)
	if !ok {
		return ok, []error{err}
	}
	failedExpects := make([]error, 0, len(t.ExpectOneOf))
	for _, expect := range t.ExpectOneOf {
		ok, err := t.validateExpect(expect, res)
		if !ok {
			failedExpects = append(failedExpects, err)
			continue
		}
	}
	// t.ExpectOneOf represents an optional list of []Expect one of which must be met
	// since the usage of t.ExpectOneOf is optional, t.ExpectOneOf can be empty
	// in this case the validation is skipped.
	// When t.ExpectOneOf is not empty, at least one of the Expect must be successful
	if len(t.ExpectOneOf) > 0 && len(failedExpects) == len(t.ExpectOneOf) {
		return false, failedExpects
	}
	if err := t.Expect.ContextPut.PutValues(t, rulectx); err != nil {
		return false, []error{t.AppErr("ApplyExpects Returns FALSE " + err.Error())}
	}
	return true, nil
}
// ApplyExpects runs the Expects section of the testcase to evaluate if the response from the system under test passes or fails
// The Expects section of a testcase can contain multiple conditions that need to be met to pass a testcase
// When a test fails, ApplyExpects is responsible for reporting back information about the failure, why it occurred, where it occurred etc.
//
// The ApplyExpect section is also responsible for running and contextPut clauses.
// contextPuts are responsible for updated context variables with values selected from the test case response
// contextPuts will only be executed if the ApplyExpects standards match tests pass
// if any of the ApplyExpects match tests fail - ApplyExpects returns false and contextPuts aren't executed
ApplyExpects runs the Expects section of the testcase to evaluate if the response from the system under test passes or fails
The Expects section of a testcase can contain multiple conditions that need to be met to pass a testcase
When a test fails, ApplyExpects is responsible for reporting back information about the failure, why it occurred, where it occurred etc.

The ApplyExpect section is also responsible for running and contextPut clauses.
contextPuts are responsible for updated context variables with values selected from the test case response
contextPuts will only be executed if the ApplyExpects standards match tests pass
if any of the ApplyExpects match tests fail - ApplyExpects returns false and contextPuts aren't executed
// ApplyExpects runs the Expects section of the testcase to evaluate if the response from the system under test passes or fails // The Expects section of a testcase can contain multiple conditions that need to be met to pass a testcase // When a test fails ApplyExpects is responsible for reporting back information about the failure why it occurred where it occurred etc . // // The ApplyExpect section is also responsible for running and contextPut clauses . // contextPuts are responsible for updated context variables with values selected from the test case response // contextPuts will only be executed if the ApplyExpects standards match tests pass // if any of the ApplyExpects match tests fail - ApplyExpects returns false and contextPuts aren ' t executed
func (t *TestCase) ApplyExpects(res *resty.Response, rulectx *Context) (bool, []error) {
	if res == nil { 
		return false, []error{t.AppErr("nil http.Response - cannot process ApplyExpects")}
	}
	ok, err := t.validateExpect(t.Expect, res)
	if !ok {
		return ok, []error{err}
	}
	failedExpects := make([]error, 0, len(t.ExpectOneOf))
	for _, expect := range t.ExpectOneOf {
		ok, err := t.validateExpect(expect, res)
		if !ok {
			failedExpects = append(failedExpects, err)
			continue
		}
	}
	if len(t.ExpectOneOf) > 0 && len(failedExpects) == len(t.ExpectOneOf) {
		return false, failedExpects
	}
	if err := t.Expect.ContextPut.PutValues(t, rulectx); err != nil {
		return false, []error{t.AppErr("ApplyExpects Returns FALSE " + err.Error())}
	}
	return true, nil
}
func ( t * TestCase ) ApplyExpects ( res * resty . Response , rulectx * Context ) ( bool , [ ] error ) { if res == nil { return false , [ ] error { t . AppErr ( " " ) } } ok , err := t . validateExpect ( t . Expect , res ) if ! ok { return ok , [ ] error { err } } failedExpects := make ( [ ] error , 0 , len ( t . ExpectOneOf ) ) for _ , expect := range t . ExpectOneOf { ok , err := t . validateExpect ( expect , res ) if ! ok { failedExpects = append ( failedExpects , err ) continue } } if len ( t . ExpectOneOf ) > 0 && len ( failedExpects ) == len ( t . ExpectOneOf ) { return false , failedExpects } if err := t . Expect . ContextPut . PutValues ( t , rulectx ) ; err != nil { return false , [ ] error { t . AppErr ( " " + err . Error ( ) ) } } return true , nil }
ApplyExpects runs the Expects section of the testcase to evaluate if the response from the system under test passes or fails
The Expects section of a testcase can contain multiple conditions that need to be met to pass a testcase
When a test fails, ApplyExpects is responsible for reporting back information about the failure, why it occurred, where it occurred etc.
ApplyExpects runs the Expects section of the testcase to evaluate if the response from the system under test passes or fails The Expects section of a testcase can contain multiple conditions that need to be met to pass a testcase When a test fails ApplyExpects is responsible for reporting back information about the failure why it occurred where it occurred etc .
// if we've not got a response object to check, always return false // t.ExpectOneOf represents an optional list of []Expect one of which must be met // since the usage of t.ExpectOneOf is optional, t.ExpectOneOf can be empty // in this case the validation is skipped. // When t.ExpectOneOf is not empty, at least one of the Expect must be successful