Listen Zhang

Results 14 comments of Listen Zhang

> @ae86sen 你能不能提供代码例子,以及你到底是如何通过多线程运行测试的? *run.py* ```python import pytest from concurrent.futures import ThreadPoolExecutor, wait, ALL_COMPLETED def main_task(args: list): ""pytest"" pytest.main(args) if __name__ == '__main__': marks = ['-m hpc', '-m ehpc'] thread_count =...

it seems to have something to do with the ”@allure.step“. there is a new code example: *test_demo.py* ```python import time import allure import pytest @allure.title("hello") @pytest.mark.d1 @allure.step('123') def test_hpc(): time.sleep(1)...

一样,用秘钥有问题,用密码ok。

还是没有解决吗?一直中断。。

@986379041 登录接口也是走的baseapi,然后调self.send_http去请求的吗?如果是的话,确实有这个问题,可以这么优化下。我这边实际用的过程中,由于登录接口比较简单,并没有用baseapi封装,直接调request请求的,所以没这个问题。

谢谢你的反馈! 后面会考虑去掉或者做成可选项

@grassroadsZ 是不是理解错了,这里存的是整个响应,var_name是这整个响应的key。 比如,一个接口依赖是: @dependence(common.user, "user_info") 这里第一个参数表示依赖的接口是common模块下的user接口,这个接口的整个响应以key-value的形式存到cache表里,其中"user_info"是这个key。 当要使用这个响应的数据时,self.cache.get_by_jsonpath("user_info","$..xxx"),根据你的需要,需要什么参数提取什么参数,因为整个响应内容都存了。