简体   繁体   English

使用Webdriver 2和Selenium Java Client Client驱动程序进行Selenium Eclipse配置

[英]Selenium eclipse Configuration with Webdriver 2 and Selenium Java Client Driver

I was setting up the environment for selenium in eclipse for automation testing. 我正在为日食设置硒环境以进行自动化测试。 I have downloaded the Selenium Server 2.42.2 as well as Selenium Client & WebDriver Language Bindings for java from here 我已经从此处下载了Selenium Server 2.42.2以及用于Java的Selenium Client和WebDriver语言绑定

My Question, 我的问题,

  1. In Many website, eclipse has been configured with selenium webdriver alone. 在Many网站中,仅使用硒webdriver配置了eclipse。 But in some other sites like this suggested to install only selenium client driver bindings alone 但在类似这样的其他站点中,建议仅单独安装selenium客户端驱动程序绑定

Initially, i have configured using selenium server alone and run the basic tests in firefox browser and its works fine. 最初,我仅配置了使用Selenium服务器,并在firefox浏览器中运行了基本测试,并且工作正常。 Please advice us the need to set up the selenium client driver binding libs for selenium. 请告知我们需要为selenium设置selenium客户端驱动程序绑定库。

  1. is java client driver bindings is a sub set of selenium webdriver? 是java客户端驱动程序绑定是硒webdriver的子集吗? can i run automated test scripts without java client driver jar? 没有Java客户端驱动程序jar的情况下,我可以运行自动化测试脚本吗?

  2. what are the usage of selenium server and java client driver and how both differs from each other? selenium服务器和java客户端驱动程序的用法是什么,两者有何不同? any example would be much helpful. 任何例子都会很有帮助。

1.Is java client driver bindings is a sub set of selenium webdriver? 1. Java客户端驱动程序绑定是Selenium WebDriver的子集吗? can i run automated test scripts without java client driver jar? 没有Java客户端驱动程序jar的情况下,我可以运行自动化测试脚本吗?

If you want to write your selenium test cases using java, yes it is necessary to have.So you can say java client driver bindings is a subset of selenium webdriver to write and execute your test cases using java. 如果要使用Java编写selenium测试用例,则必须要有。因此,可以说Java客户端驱动程序绑定是硒webdriver的子集,可以使用Java编写和执行测试用例。

2.What are the usage of selenium server and java client driver and how both differs from each other? 2. selenium服务器和java客户端驱动程序的用法是什么,两者有何不同?

Selenium Server.jar is used to run selenium server which was mandatory to run while there were Selenium RC only. Selenium Server.jar用于运行Selenium服务器,而Selenium Server仅在存在Selenium RC时才必须运行。 Now with the arrival of Selenium 2.0 if your test cases are being executed on your local machine only you may not require Selenium Server. 现在,随着Selenium 2.0的到来,如果仅在本地计算机上执行测试用例,则您可能不需要Selenium Server。

If you want to run your test cases on a remote machine using RemoteWebdriver then only you would be needing Selenium Server.You can say its more or less the part of Selenium Grid. 如果要使用RemoteWebdriver在远程计算机上运行测试用例,则只需要Selenium Server。您可以说它或多或少是Selenium Grid的一部分。

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

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