mirror of
https://github.com/httprunner/httprunner.git
synced 2026-08-25 18:21:09 +08:00
feat: add builtin function environ/ENV
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"encoding/hex"
|
||||
"math"
|
||||
"math/rand"
|
||||
"os"
|
||||
"time"
|
||||
)
|
||||
|
||||
@@ -16,6 +17,8 @@ var Functions = map[string]interface{}{
|
||||
"md5": MD5, // call with one argument
|
||||
"parameterize": loadFromCSV,
|
||||
"P": loadFromCSV,
|
||||
"environ": os.Getenv,
|
||||
"ENV": os.Getenv,
|
||||
"load_ws_message": loadMessage,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user