如何在 Robot Framework 中使用 REST 库? [英] How to use REST library in Robot Framework?
问题描述
有人知道如何使用机器人框架的 REST 库吗?该库可在此处获得 http://code.google.com/p/robotframework-restlibrary/source/browse/trunk/RestLibrary.py.似乎没有可用的文档.
Does anybody know how to use the REST Library for Robot Framework? The library is available here http://code.google.com/p/robotframework-restlibrary/source/browse/trunk/RestLibrary.py. It seems like there is no documentation available.
我在 Robot Framework 中尝试过类似的操作,但请求没有返回响应:
I tried something like this in Robot Framework but there is no response coming back from the request:
REST Test Case
Get https://maps.googleapis.com/maps/api/timezone/json?location=39.6034810,-119.6822510×tamp=1331161200&sensor=true
Response test
任何想法如何使用这个库?
Any ideas how to use this library?
推荐答案
我找到了另一个可以进行http调用甚至解析json的库.加上它有据可查 http://peritus.github.com/robotframework-httplibrary/HttpLibrary.html.
I found another library which can do http calls and even parse json. Plus it's well documented http://peritus.github.com/robotframework-httplibrary/HttpLibrary.html.
这篇关于如何在 Robot Framework 中使用 REST 库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!