Configuring Selenium-RC With Eclipse

Eclipse is a multi-language software development platform comprising an IDE and a plug-in system to extend it. It is written primarily in Java and is used to develop applications in this language and, by means of the various plug-ins, in other languages as well as C/C++, Cobol, Python, Perl, PHP and more.

Following lines describes configuration of Selenium-RC with Eclipse - Version: 3.3.0. (Europa Release). It should not be too different for higher versions of Eclipse

  • Launch Eclipse.
  • Select File > New > Other.

Configuring Selenium-RC With Eclipse - 风雨 - 风雨的博客
 
 
  • Java > Java Project > Next

Configuring Selenium-RC With Eclipse - 风雨 - 风雨的博客
 
  • Provide Name to your project, Select JDK in ‘Use a project Specific JRE’ option (JDK 1.5 selected in this example) > click Next
Configuring Selenium-RC With Eclipse - 风雨 - 风雨的博客
 
  • Keep ‘JAVA Settings’ intact in next window. Project specific libraries can be added here. (This described in detail in later part of document.)
Configuring Selenium-RC With Eclipse - 风雨 - 风雨的博客
 
  • Click Finish > Click on Yes in Open Associated Perspective pop up window.
Configuring Selenium-RC With Eclipse - 风雨 - 风雨的博客
 

This would create Project Google in Package Explorer/Navigator pane.

Configuring Selenium-RC With Eclipse - 风雨 - 风雨的博客
 
  • Right click on src folder and click on New > Folder
Configuring Selenium-RC With Eclipse - 风雨 - 风雨的博客
 

Name this folder as com and click on Finish button.

  • This should get com package insider src folder.
Configuring Selenium-RC With Eclipse - 风雨 - 风雨的博客
 
  • Following the same steps create core folder inside com
Configuring Selenium-RC With Eclipse - 风雨 - 风雨的博客
 

SelTestCase class can be kept inside core package.

Create one more package inside src folder named testscripts. This is a place holder for test scripts.

Please notice this is about the organization of project and it entirely depends on individual’s choice / organization’s standards. Test scripts package can further be segregated depending upon the project requirements.


 
Configuring Selenium-RC With Eclipse - 风雨 - 风雨的博客
 
  • Create a folder called lib inside project Google. Right click on Project name > New > Folder. This is a place holder for jar files to project (i.e. Selenium client driver, selenium server etc)
Configuring Selenium-RC With Eclipse - 风雨 - 风雨的博客
 

This would create lib folder in Project directory.

Configuring Selenium-RC With Eclipse - 风雨 - 风雨的博客
 
  • Right click on lib folder > Build Path > Configure build Path
Configuring Selenium-RC With Eclipse - 风雨 - 风雨的博客
 
  • Under Library tab click on Add External Jars to navigate to directory where jar files are saved. Select the jar files which are to be added and click on Open button.
Configuring Selenium-RC With Eclipse - 风雨 - 风雨的博客
 

After having added jar files click on OK button.

Configuring Selenium-RC With Eclipse - 风雨 - 风雨的博客
 

Added libraries would appear in Package Explorer as following:

Configuring Selenium-RC With Eclipse - 风雨 - 风雨的博客
 


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值