debugtalk.py创建小方法,可用于hrun的step中
1、函数的封装
1.1、uuid函数
def get_random_request_id():
return uuid.uuid4()
1.2、睡眠函数
def sleep(n_secs):
time.sleep(n_secs)
2、引用函数
引用debugtalk.py文件方法,不需要导入debugtalk.py文件
2.1、.teardown_hook() :退出后调用,teardown方法
.teardown_hook("${sleep(5)}")
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/9c95ca3a3981e13ce55d81c880f5544c.png)