.env文件
USERNAME=134287505XX
PASSWORD=a123456
调用.env文件中的变量
config = Config("登录") \
.variables(
**{
"user_name": "${ENV(USERNAME)}",
"password": "${ENV(PASSWORD)}",
}
)
USERNAME=134287505XX
PASSWORD=a123456
config = Config("登录") \
.variables(
**{
"user_name": "${ENV(USERNAME)}",
"password": "${ENV(PASSWORD)}",
}
)
本文标题:httprunner 3.X (6)环境变量env
本文链接:https://www.haomeiwen.com/subject/uohgcrtx.html
网友评论