如何在 Robot Framework 中使用 REST 库? [英] How to use REST library in Robot Framework?

查看:91
本文介绍了如何在 Robot Framework 中使用 REST 库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道如何使用机器人框架的 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&timestamp=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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆