RF接口测试-post

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/bubblelone/article/details/69488035

1、Post Request With URL Params,如下图,首先创建会话对象Create Session,然后创建url参数Create Dictionary,发送post请求Post Request,最后断言Should Be Equal As Strings



2、Post Request With No Data



3、Post Requests,如下图,两个Create Dictionary分别创建请求头和请求体参数,两个Dictionary Should Contain Value断言,验证响应json字符串的form键的值是否包含预期值



4、Post With Unicode Data,表单参数的值为中文


猜你喜欢

转载自blog.csdn.net/bubblelone/article/details/69488035