mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-06 16:29:37 +08:00
feat: support run testcases in specified folder path #1198
This commit is contained in:
@@ -116,7 +116,7 @@ func (tc *TCase) ToTestCase() (*TestCase, error) {
|
||||
var apiFullPath string
|
||||
if apiPath, ok := step.API.(string); ok {
|
||||
apiFullPath = filepath.Join(projectRootDir, apiPath)
|
||||
} else if apiPath, ok := step.API.(APIPath); ok {
|
||||
} else if apiPath, ok := step.API.(*APIPath); ok {
|
||||
apiFullPath = filepath.Join(projectRootDir, apiPath.GetPath())
|
||||
} else {
|
||||
return nil, errors.New("invalid api format")
|
||||
|
||||
Reference in New Issue
Block a user