EE QA:安装和配置Selenium,Java,Eclipse和TestNG

本文是三篇文章系列的第二篇,介绍了ExpertsExchange质量检查团队如何在其网站上进行自动化测试。主要内容包括Java和Eclipse的安装配置,TestNG的简单安装过程,以及Selenium WebDriver和Selenium IDE插件在Firefox中的安装配置。
摘要由CSDN通过智能技术生成

Introduction

介绍

This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by Experts Exchange QA Team. We develop our automated test cases in a Windows environment so that’s the focus here.

本文是三篇文章的第二篇,这三篇文章解释了为什么Experts Exchange质量检查团队以及如何对我们的网站进行自动化测试。 本文介绍了Experts Exchange质量检查小组使用的测试自动化工具的基本安装和配置。 我们在Windows环境中开发自动化测试用例,因此这里是重点。

Java and Eclipse Installation and Configuration

Java和Eclipse安装和配置

First we install Java and Eclipse. We use Installing Eclipse video as our guide. You should be able to install and configure them after watching this video. More java help can be found here.

首先,我们安装Java和Eclipse。 我们使用“ 安装Eclipse”视频作为指南。 观看此视频后,您应该能够安装和配置它们。 在这里可以找到更多的Java帮助。

TestNG Installation and Configuration

TestNG安装和配置

Installation and configuration of TestNG is fairly simple. Follow the steps for Eclipse plug-in here. Here’s a snapshot of part of the installation process. The installation wizard does a good job of walking you through the process.

TestNG的安装和配置非常简单。 在此处按照Eclipse插件的步骤进行操作。 这是安装过程一部分的快照。 安装向导可以很好地指导您完成该过程。

EEQA_2_NG.png

Installation of the Eclipse plug-in makes it possible to run TestNG suites while in Eclipse, but the TestNG classes are actually included in the selenium WebDriver jar file. You’ll see in EE QA: Developing and Running Automated Tests For Our Website how we use TestNG features in our automation.

Eclipse插件的安装使在Eclipse中运行TestNG套件成为可能,但是TestNG类实际上包含在SeleniumWebDriver jar文件中。 您将在EE QA:为我们的网站开发和运行自动测试中看到如何在自动化中使用TestNG功能。

Selenium WebDriver Installation and Configuration

Selenium WebDriver安装和配置

We use the standalone server in our environment so all we do is get it from the download page.

我们在环境中使用独立服务器,因此我们要做的就是从下载页面获取它。

EEQA_2_WD.png
Build Path -> Configure Build Path
EEQA_2_BP.png

Installation of the Selenium IDE plugin into Firefox is super easy. We start off by installing Firefox. Once that is done, we go to the Selenium IDE plugin web site, download and install it, along with all the language options we want. When we see the ‘Se’ icon in the banner we know the install was successful.

将Selenium IDE插件安装到Firefox非常简单。 我们首先安装Firefox 。 完成后,我们将转到Selenium IDE插件网站, 下载并安装它以及所需的所有语言选项。 当我们在横幅中看到“ Se”图标时,我们知道安装成功。

EEQA_2_2.png

Once we have it installed we set the Clipboard Format option to be java by clicking on the ‘Se’ icon, then in IDE we go into the Options menu and select Clipboard Format -> Java /JUnit4/ WebDriver. This setting means when we copy something in the IDE it will be pasted as Java code.

安装完成后,我们通过单击“ Se”图标将“剪贴板格式”选项设置为java,然后在IDE中进入“选项”菜单,然后选择“剪贴板格式-> Java / JUnit4 / WebDriver”。 此设置意味着当我们在IDE中复制内容时,它将粘贴为Java代码。

EEQA_2_1.png

In the center section of the IDE we always have the ‘Table’ tab selected. With that, Selenium IDE is now installed and configured. Items copied from the IDE to the clipboard will be pasted as Java code. More details on this will be provided in the EE QA: Developing and Running Automated Tests For Our Website

在IDE的中心部分,我们始终选择“表格”标签。 这样,即可安装和配置Selenium IDE。 从IDE复制到剪贴板的项目将粘贴为Java代码。 有关此问题的更多详细信息,将在EE QA:为我们的网站开发和运行自动测试中提供

Conclusion

结论

Installation and configuration of these tools is fairly straightforward. You should be able to do all of it in a couple hours, or less. If you do encounter any problems or have questions regarding any of these tools Experts-Exchange is here to help. Submit your question to the experts, be sure to include Quality Assurance as one of the topics.

这些工具的安装和配置非常简单。 您应该能够在几小时或更短的时间内完成所有操作。 如果您确实遇到任何有关这些工具的问题或疑问,请访问Experts-Exchange 。 将您的问题提交给专家,请确保将质量保证作为主题之一。

First Article: EE QA: How Selenium, Java, Eclipse, and TestNG help us achieve our test automation goals

第一篇: EE质量保证:Selenium,Java,Eclipse和TestNG如何帮助我们实现测试自动化目标

Third Article : EE QA: Developing and Running Automated Tests For Our Website

第三条: EE质量检查:为我们的网站开发和运行自动测试

翻译自: https://www.experts-exchange.com/articles/21919/EE-QA-Install-and-Configure-Selenium-Java-Eclipse-and-TestNG.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值