mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 11:29:48 +08:00
change: use data driven test
This commit is contained in:
@@ -70,7 +70,7 @@ func parseString(raw string, variablesMapping map[string]interface{}) interface{
|
||||
remainedString = remainedString[startPosition:]
|
||||
|
||||
// search variable like ${var} or $var
|
||||
varMatched := regexCompileVariable.FindStringSubmatch(raw[matchStartPosition:])
|
||||
varMatched := regexCompileVariable.FindStringSubmatch(remainedString)
|
||||
if len(varMatched) == 3 {
|
||||
var varName string
|
||||
if varMatched[1] != "" {
|
||||
|
||||
Reference in New Issue
Block a user