mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-15 04:19:28 +08:00
feat: add builtin function environ/ENV
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
# Release History
|
||||
|
||||
## v4.0.0-beta2 (2022-04-25)
|
||||
|
||||
**go version**
|
||||
|
||||
- feat: add builtin function `environ`/`ENV`
|
||||
- fix: demo function compatibility
|
||||
|
||||
## v4.0.0-beta (2022-04-24)
|
||||
|
||||
- refactor: merge [hrp] into httprunner v4, which will include golang and python dual engine
|
||||
|
||||
@@ -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