Selenium 简明教程
Selenium IDE - Introduction
Selenium-IDE(集成开发环境)是一款易于使用的 Firefox 和 Chrome 插件,用于开发 Selenium 测试用例。它通常用于录制和播放功能,可借助该功能来开发测试用例。
The Selenium-IDE (Integrated Development Environment) is an easy-to-use Firefox and Chrome plug-in to develop Selenium test cases. It is typically used for the record and play feature with which the test cases can be developed.
What is Selenium IDE?
Selenium 集成开发环境是一款非常容易学习和使用的工具,可用于测试任何 Web 应用程序。它是开源的,不严重依赖于任何特定软件,并且可以非常轻松地安装。Selenium 集成开发环境的最新版本可以在 Firefox 和 Chrome 浏览器中使用。
Selenium Integrated Development Environment is a very easy tool to learn and use for testing any web application. It is open-source and not heavily dependent on any specific software and can be installed very easily. The latest version of Selenium Integrated Development Environment can be used both in Firefox and Chrome browsers.
Selenium 集成开发环境主要提供了一个图形界面,使用户能够记录在被测应用程序上执行的所有操作。
Selenium Integrated Development Environment basically provides a Graphical Interface which enables the user to record all the actions that are performed on the application under test.
Selenium 集成开发环境可以通过在任何测试步骤中和周围设置断点来很好地用于调试脚本,以便排除测试用例中的错误。
Selenium Integrated Development Environment can be used very well for the purpose of debugging scripts by setting up breakpoints in and around any test steps for troubleshooting errors in test cases.
使用 Selenium 集成开发环境中的运行命令,可以在另一个测试用例中重新利用针对某个特定测试用例提出的逻辑。
The logic put up for a particular test case can be re-utilised in another test case with the help of the run command in Selenium Integrated Development Environment.
Benefits of Using Selenium IDE
Selenium 集成开发环境还提供了使用多个定位器来识别元素的功能,这使其成为一种用于自动化测试的得心应手的工具。Selenium 集成开发环境基于 Selenese 命令,它使用这些命令理解它需要执行哪些活动来进行测试。
Selenium Integrated Development Environment also gives the feature to use more than one locator to identify elements which make it an easy choice tool for automating tests. Selenium Integrated Development Environment is based on the Selenese commands with which it comprehends what activities it needs to perform for the purpose of testing.
由于易于使用,任何人都可以使用 Selenium 集成开发环境来开发自动化测试用例,而无需任何技术专长。
Because of the ease of use, the Selenium Integrated Development Environment can be used by any one to develop automated test cases without requiring any technical expertise.
How to Use Selenium IDE?
可以通过从 Chrome 和 Firefox 网上商店安装其附加组件来使用 Selenium 集成开发环境 (IDE)。作为 Selenium 集成开发环境安装的先决条件,我们需要在本地计算机上安装 Chrome 和 Firefox 浏览器。
Selenium Integrated Development Environment(IDE) can be used by installing its Addon available from the Chrome and Firefox web store store. As a precondition for Selenium Integrated Development Environment installation, we would need the browsers Chrome and Firefox installed in the local machine.
要在 Chrome 和 Firefox 中安装 Selenium 集成开发环境,我们可以使用以下链接:
To begin the installation of Selenium Integrated Development Environment in Chrome and Firefox, we can make use of the below link −
Why to Use Selenium IDE?
Selenium 集成开发环境中通过简单录制测试生成的测试脚本,可以直接使用或按照其他测试用例进行编辑。此外,录制的脚本可以转换成 Selenium 支持的各种编程语言,而且脚本也可以在其他浏览器上执行。因此,Selenium 集成开发环境可以用作启动任何简单 Web 应用程序自动化测试的初始工具。
The test scripts generated by simply recording a test in the Selenium Integrated Development Environment can either be used directly or edited as per other test cases. Moreover, the recorded scripts can be converted into various programming languages supported by Selenium and the scripts can be executed on other browsers as well. As a result, the Selenium Integrated Development Environment can be used as the initial tool to kick off automation testing for any simple web application.
When to Use Selenium IDE?
对于那些手动测试 Web 应用程序并执行大量冗余步骤的测试人员而言,他们可以大量使用 Selenium 集成开发环境。其录制和播放以及其他合适的特性使其成为一款非常流行的工具。它不需要高水平的编程知识,因此它成为了任何项目及早采用自动化测试的简单选择。
Selenium Integrated Development Environment can be used heavily by the testers who are testing a web application manually and performing redundant steps over a large amount of time. Its record and play, and other suitable features has made it a very popular tool. It does not require a high end programming knowledge, which makes it an easy choice for early adaptation of automated testing in any project.
因此,我们已经讨论了 Selenium 集成开发环境的一些特性,这将帮助我们理解该工具。
Thus, we had discussed some of the features of Selenium Integrated Development Environment which would help us to understand the tool.