The project consultant suggested using selenium for automated testing of Web applications, and decided to automate testing of functional modules with simple business logic and stable functions, such as simple login modules. The following is a brief summary of the process.
I ran selenium on Ubuntu.1. Prepare the 1.1 Java environment
Install JDK on/usr/local/jdk1.6.0 _ 24Java ide 1.2
Because
Selenium RC supports multiple typesProgramming LanguageDriver client browser. This section describes how to use python to drive selenium RC in windows. Python is an object-oriented computer.ProgramDesign Language.
1. preparations:
Download Java: currently 1.6 update7,: http://www.java.com/zh_CN/
Download Python: the current stable version is 2.5.2, http://www.python.org/download/. for information abou
Author: Jiangnan Baiyi
Most companies in China also rely on the QA group's mm to watch the test case document for manual testing. If the money is limited and they want to change the status quo, the most practical advice is to write the business layer unittest for direct access to the database and the selenium-based integration test, which are the two most practical tests.
Under the guidance of Xu Hao, springside2.0 has fully applied
Selenium 1.x era is far away, it should lie in the corner of history, by the fireplace roast fire, smoking Hanyan, in the curl of the rising smoke in the memories of that once belonged to their beautiful times.
But that is not the case, today should be retired early selenium 1.x is still the majority of the firm choice, the reason is only the 1.x era left a large number of documents, code, tutorial let peo
The first thing to do is:
1, ECLIPSE+JDK
2, Selenium-ide (http://release.seleniumhq.org/)
3. Firefox
4, Selenium-java-2.53.1.jar (as if not necessary)
5, Selenium-server-standalone-2.53.1.jar
Selenium-ide using methods, selenium code conversion Java, and Eclipse creation I h
Selenium1,selenium IDE mac installation Open the Firefox browser, go to the following URL https://addons.mozilla.org/en-US/firefox/addon/selenium-ide/, Click Add to Firefox. Can be added to the toolbar. NBSP;2,SELENIUM1) version of the jar package download: http://selenium-release.storage.googleapis.com/ Index.html the system uses the 2.50.1 to create a new Java
1. Java.lang.NoClassDefFoundError:Workaround:Import all the jar packages in Selenium-java-2.44.0\selenium-2.44.0\libs in the Java project of Eclipse.2. Under the Win7 IE8Selenium script through selenium = new Defaultselenium ("localhost", 4444, "*iexplore", "http://10.88.15.51:8080/"), the way the browser is setStart Selenium
Selenium IDE is a Firefox plugin, it is an important tool for the selenium family, we look at the definition of the official website:Website
Selenium IDE is a integrated development environment for Selenium scripts. It is implemented as a Firefox extension, and allows your to record, edit, and debug tests.
Why use Selenium Grid?
Distributed run-scale test
can easily run different browser on different OS through a central point
Minimize maintenance time on the grid and take full advantage of virtual appliances
Selenium Grid Deployment and startupHub: The master node, connecting to invoke node.Node: Responsible for executing tests, invoking the browser.The following is an example of the
About the selenium RC environment (based on the Java language), I have done before the system learning selenium, and in my series of articles can be found. It was done according to a video operation of a predecessor, I detailed the procedure of recording.
Here we have a look at the working principle of selenium RC.
Brief introduction
So before we learned the
Address: http://www.myexception.cn/open-source/969585.html
Selenium currently does not provide processing for the IE Modal Dialog Box (that is, the pop-up dialog box opened through the showmodaldialog method. The reason is that the modal dialog box suspends the Js of the parent page until the processing of the dialog box is complete. Because the underlying implementation of selenium is based on JS, the mod
[Selenium-ide installation and verification]1. Install Firefox2. Download Selenium-ide The version i downloaded is SELENIUM-IDE-2.8.0.XPISelenium-ide Install: Download selenium-ide-2.8.0.xpi drag to open Firefox, click Install, restart Firefox browser as promptedAfter rebooting, you can see the
----//Edit commandsThe script that selenium for us is not 100% in line with our needs, so editing the recorded script is an essential work.1. Edit a line of commands or comments.Select a row of commands under the Table tab, which consists of the command, Target, and value three parts. You can edit these three parts of the content.2. Insert the command. Right-click on a command and select the Insert New Command command to insert a blank and edit the bl
This bug has been fixed in the release of Selenium 2.38.4 in these two days and will still be encountered if the selenium of 2.38.1, 2.38.2, etc. are used. The bug, which tortured me for two days before determining the cause, was recorded. Description: In a Python 2.7 environment, using selenium 2.38.2 and Phantomjs 1.9.2 to write a simple script that opens a W
? SeleniumwebdriverNote: We are working on perfecting each chapter of the Help guide, although there are still areas to be perfected, but we firmly believe that the help information you see today is accurate, and we will provide more guidance to refine the help documentation.1.WebDriver IntroductionThe main new feature of Selenium2.0 is the integration of WEBDRIVERAPI. We designed Webdriver to provide a more straightforward interface to compensate for SELENI
I. Deployment Readiness
Platform Requirements:
Operating system: Windows, Linux can
Test Server environment: jre1.5 above, browser (recommended Firefox 3.5)
Testing the Client environment: PHP 5.X
Required Tools:
selenium-server-1.0.3 Download Address: http://selenium.googlecode.com/files/selenium-remote-control-1.0.3.zip
Autotest Download Address: (internal)Virtual machines (no virtual machines can also be
(reproduced online)I. Installing the JDK can beJAVADownload the latest JDK in http://www.java.com/zh_CN/download/and follow the prompts to install environment variable configuration: My Computer right----high-level--environment variables Add variable java_home, variable value such as: C:\Program files\java\jdk1.7.0_17 New variable classpath, variable value is:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar; Modify the variable path to increase the JDK path:%java_home%\bin; Two. Install
Selenium is a browser automation library. Most often used for testing web-applications, Selenium May is used for any task this requires automating interaction with The browser.Selenium is a browser Automation test library, most of the time we use it to test the Web application,Selenium can do any task of automated testing on the browser. as we all know,
(); Select.getfirstselectedoption ();Single box option (Radio Button) to find the Radio box element: Webelement sex=driver.findelement (by.id ("Sex")); Select a single option: Sex.click (); Clear a single option: Sex.clear (); Determine if a single option has been selected: sex.isselected ();check box multi-option (CheckBox) Multi-option operation is similar to radio: Webelement area =driver.findelement (by.id ("area."); Area. Click (), area. Clear (), area. isSelected (), area.
By wormhole, 29122 reading, 13 comments, favorites, Edit
---- // Preface
For our new users, automated testing has always been a relatively advanced field, of course, relative to manual testing. Recently, I was interested in automated testing. No, the specific point should be the interest in the selenium tool. Why is it not qtp? I have studied qtp before, and I also bought this advanced guide for qtp automated testing. After reading this document for a
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.