简体   繁体   English

使用机器人框架测试使用OAuth 2.0的REST API

[英]Testing REST APIs which use OAuth 2.0 using robot framework

How do we test RESTful APIs which use OAuth 2.0 using robot framework? 我们如何通过机器人框架测试使用OAuth 2.0的RESTful API?

Do we have any keywords available? 我们有可用的关键字吗? So far I have used HTTP Basic authentication which is very simple. 到目前为止,我已经使用了非常简单的HTTP Basic身份验证。

Please let me know if there is already have implementation for this. 请让我知道是否已经为此实现。

You can use any general-purpose HTTP Requests calls or libs to do OAuth, as long as you set the credentials in the Authorization header. 您可以使用任何通用的HTTP请求调用或库来执行OAuth,只要在Authorization标头中设置凭据即可。 See How to make a POST (ReST) API in Robot framework with for more info. 有关更多信息,请参见如何在Robot框架中制作POST(ReST)API

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM