mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-10 23:12:41 +08:00
feat: add builtin function environ/ENV
This commit is contained in:
@@ -1,5 +1,12 @@
|
|||||||
# Release History
|
# 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)
|
## v4.0.0-beta (2022-04-24)
|
||||||
|
|
||||||
- refactor: merge [hrp] into httprunner v4, which will include golang and python dual engine
|
- refactor: merge [hrp] into httprunner v4, which will include golang and python dual engine
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import (
|
|||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"math"
|
"math"
|
||||||
"math/rand"
|
"math/rand"
|
||||||
|
"os"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -16,6 +17,8 @@ var Functions = map[string]interface{}{
|
|||||||
"md5": MD5, // call with one argument
|
"md5": MD5, // call with one argument
|
||||||
"parameterize": loadFromCSV,
|
"parameterize": loadFromCSV,
|
||||||
"P": loadFromCSV,
|
"P": loadFromCSV,
|
||||||
|
"environ": os.Getenv,
|
||||||
|
"ENV": os.Getenv,
|
||||||
"load_ws_message": loadMessage,
|
"load_ws_message": loadMessage,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user