feat: input params by funcion in ui automation

This commit is contained in:
xucong.053
2022-10-13 14:17:24 +08:00
parent 21463adb02
commit 6ec187d995
4 changed files with 21 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ var Functions = map[string]interface{}{
"md5": MD5, // call with one argument
"parameterize": loadFromCSV,
"P": loadFromCSV,
"split_by_comma": splitByComma, // call with one argument
"environ": os.Getenv,
"ENV": os.Getenv,
"load_ws_message": loadMessage,
@@ -225,3 +226,7 @@ func multipartContentType(w *TFormDataWriter) string {
}
return w.Writer.FormDataContentType()
}
func splitByComma(s string) []string {
return strings.Split(s, ",")
}