使用Selenium webdriver + Maven + TestNg进行REST API测试(REST API testing using Selenium webdriver+Maven+Te

编程入门 行业动态 更新时间:2024-10-17 21:17:13
使用Selenium webdriver + Maven + TestNg进行REST API测试(REST API testing using Selenium webdriver+Maven+TestNg)

有任何一个使用selenium webdriver + Maven + TestNG测试REST API。 请分享信息或示例项目

Has any one tested REST API's using selenium webdriver+Maven+TestNG. Please share the information or sample project

最满意答案

Selenium WebDriver用于与Web浏览器交互,而不是HTTP API(RESTful或其他)。

有许多HTTP客户端库可用于Maven和TestNG。 这里有一些:

Google的HTTP客户端库for Java Oracle的泽西客户端和泽西测试框架 Pivotal Software的Spring RestTemplate Apache Software Foundation的Apache CXF客户端API

Selenium WebDriver is for interacting with web browsers, not HTTP APIs (RESTful or otherwise).

There are lots of HTTP client libraries available that work well with Maven and TestNG. Here are some:

HTTP Client Library for Java by Google Jersey Client & Jersey Test Framework by Oracle Spring RestTemplate by Pivotal Software Apache CXF Client API by The Apache Software Foundation

更多推荐

本文发布于:2023-08-04 09:34:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1415255.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:测试   Maven   webdriver   Selenium   TestNg

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!