Selenium webdriver与sql数据库 [英] Selenium webdriver with sql database

查看:610
本文介绍了Selenium webdriver与sql数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用selenium WebDriver与数据库?是否可以使用带有Java的selenium webdriver进行数据库测试?
如何使用java连接数据库与selenium webriver。

How to work with selenium WebDriver with database? is it possible to do database testing with selenium webdriver with Java? How to connect database with selenium webriver using java.

推荐答案

Selenium在其API中没有连接到数据库和执行查询。 Selenium是一个浏览器自动化工具。如果你使用Selenium测试你的数据库,你是做错了!

Selenium has nothing in its API to connect to a database and perform queries. Selenium is a browser automation tool. If you are using Selenium to test your database, you are doing it wrong!

这个数据库测试与在浏览器中打开Web应用程序有什么关系吗?如果是,那么可以使用selenium / WebDriver。如果你的答案是NO,那么WebDriver / Selenium不是你需要的工具!

Does this database testing have anything to do with opening a web application in a browser ? If yes then selenium/WebDriver could be used. If your answer is NO, then WebDriver/Selenium is not the tool you need!.

这篇关于Selenium webdriver与sql数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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