fin*_*pin 9 rest automated-tests http robotframework
有谁知道如何使用REST库进行机器人框架?该图书馆位于http://code.google.com/p/robotframework-restlibrary/source/browse/trunk/RestLibrary.py.似乎没有可用的文档.
我在Robot Framework中尝试了类似的东西,但是没有来自请求的响应:
REST Test Case
Get https://maps.googleapis.com/maps/api/timezone/json?location=39.6034810,-119.6822510×tamp=1331161200&sensor=true
Response test
Run Code Online (Sandbox Code Playgroud)
任何想法如何使用这个库?
我找到了另一个可以进行http调用甚至解析json的库.此外,它还有很好的文档http://peritus.github.com/robotframework-httplibrary/HttpLibrary.html.
用于Robot Framework的REST库自2009年以来未开发(请参阅更改).
Robot Framework官方页面引用了几个HTTP级别测试库,例如:
robotframework-requests - 开发处于活动状态并使用Requests HTTP python库.
用法示例:
Grab Avatar Url
Create Session github https://api.github.com
${resp}=
... Get Request github /users/jandias
Should Be Equal As Strings
... ${resp.status_code} 200
Dictionary Should Contain Key
... ${resp.json()} avatar_url
Run Code Online (Sandbox Code Playgroud)robotframework-httplibrary - 使用WebTest(带有livetest)python库...
| 归档时间: |
|
| 查看次数: |
32469 次 |
| 最近记录: |