create session 参数介绍

Create Session

alias, url, headers={}, cookies=None, auth=None, timeout=None, proxies=None, verify=False

创建一个HTTP会话:

url:即服务器的url

alias:使用Robot Framework的别名表示当前会话。

header:使用默认的headers字段

auth:NTLM鉴权需用username&password格式

timeout:会话超时时长

proxies:代理服务器的url

verify:如果需要证书请求则置为true

示例:

扫描二维码关注公众号,回复: 3832596 查看本文章

猜你喜欢

转载自www.cnblogs.com/chengchengla1990/p/9883786.html