- 当用户关键字传递参数过多时,容易出错提示:
Keyword '筛选查询' got positional argument after named arguments.
【初始化查询】目前有5个参数
当第1个参数,传入参数名=值形式,是行不通的
而其他参数可以识别
说明:忽略大小问题
后来去掉其他参数的=,也是ok的
【筛选查询】目前有11个参数
Keyword '筛选查询' got positional argument after named arguments.
必须将所有等号去掉,才能解决问题。
- 需要设置传入参数值为空
对比【初始化查询】【筛选查询】,post请求路径是一样的,只是带的查询条件不同,后者多一些,
如果初始化查询用例也使用【筛选查询】,则需要将未用到的参数留空,year也为空,但需要写成year= ,为了保证前面的空参数生效(不然将视为有参数未填写)。
========================================================================
赋空值时,不能用Time='',而是Time= 即可。