func NewTestCaseResult(id string, pass bool, metrics Metrics, errs []error, endpoint, apiName, apiVersion, detail, refURI, httpStatus string) TestCase {
	reasons := []string{}
	for _, err := range errs {
		reasons = append(reasons, err.Error())
	}
	return TestCase{
		API:        apiName,
		APIVersion: apiVersion,
		Id:         id,
		Pass:       pass,
		Metrics:    metrics,
		Fail:       reasons,
		Endpoint:   endpoint,
		Detail:     detail,
		RefURI:     refURI,
		HttpStatus: httpStatus,
	}
}
// NewTestCaseResult return a new TestCase instance
NewTestCaseResult return a new TestCase instance
// NewTestCaseResult return a new TestCase instance
func NewTestCaseResult(id string, pass bool, metrics Metrics, errs []error, endpoint, apiName, apiVersion, detail, refURI, httpStatus string) TestCase {
	reasons := []string{}
	for _, err := range errs {
		reasons = append(reasons, err.Error())
	}
	return TestCase{
		API:        apiName,
		APIVersion: apiVersion,
		Id:         id,
		Pass:       pass,
		Metrics:    metrics,
		Fail:       reasons,
		Endpoint:   endpoint,
		Detail:     detail,
		RefURI:     refURI,
		HttpStatus: httpStatus,
	}
}
func NewTestCaseResult ( id string , pass bool , metrics Metrics , errs [ ] error , endpoint , apiName , apiVersion , detail , refURI , httpStatus string ) TestCase { reasons := [ ] string { } for _ , err := range errs { reasons = append ( reasons , err . Error ( ) ) } return TestCase { API : apiName , APIVersion : apiVersion , Id : id , Pass : pass , Metrics : metrics , Fail : reasons , Endpoint : endpoint , Detail : detail , RefURI : refURI , HttpStatus : httpStatus , } }
NewTestCaseResult return a new TestCase instance
NewTestCaseResult return a new TestCase instance