; Project > Pydev > PydevProject, new project:Python Case, click Next. Complete the following:Creating Python packages and modulesNext, start creating Python packages and modules in the project you just created. Into the Pydev perspective, in the Python package Explorer , right-click srcand select new- >pydevPackage, enter the package name Python27.When you click Finish,thePython package is created , and the __init__.py file is automatically generated. The file does not contain any content
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 c
Origin
Recent project teams are testing using the Selenium IDE and selenium RC. Learn a few days, from the Internet search materials, feel that the document is really too little, (free Open-source software, alas ...). , the official web site on a Selenese Command reference is more formal and comprehensive documents, the other few. The Selenium RC documentation s
--> Eclipse Marketplace ..., in the popup window, there will be a search box, enter Pydev in it, this is mainly used to search Pydev, after the search, click Install. After install, restart Eclipse, then in the Eclipse menu, select Windows-->preferenc-->pydev--->interpreters--->python Interpreter, such as:After configuration is complete 5 Downloads SeleniumOffic
shown in:
Double-click the Java file to enter the code editing state as shown in:
After debugging is complete, the system code has no error prompts, as shown in:
Select Foxgis.java Run as->junit test as shown in:
After execution, you can view the results of the run as shown in:
Select Foxgis.ja
Then, in the previous chapter, use the Selenium IDE to record the 139 mailbox Calendar module to create the active script and convert it to Java script to run in Eclipse.The run discovery script runs to the Open Calendar module page and stops, and no activity is created.Analyze the reason: In fact, when you click Create activity, here an IFRAME is loaded, and the
IEDriverServer.exe. Put the browser driver directly in the Python installation directory.Four, Eclipse+pydev plug-in installation1. Install Eclipse(1) Eclipse does not need to install, unzip folder, click Eclipse.exe to use2. Install Pydev plug-in(1) Decompression Pydev can see features and plugins two directories, and then copy the contents of the two directori
1. Start by writing code, install Eclipse, website download software, https://www.eclipse.org/downloads/, remember first install Java, the proposal installs JDK1.7 above.
2. The next need to write selenium's code,testng code, from selenium, Selenium-server-standalone-2.41.0.jar,testng,testng-6.8.jar website Download the corresponding jar file, put into Eclipse's
Selenium+eclipse+junit+testng+python Step three download Selenium IDE,seleniumrc,iedriverserver, seleniumclient Drivers Selenium official website :http://www.seleniumhq.org/download/1 . Selenium IDE:selenium-ide-2.2.0.xpi is used to record scripts on Firefox. 2,
1. From write code start, install Eclipse, official website download software, https://www.eclipse.org/downloads/, remember to install Java First, the proposal installs JDK1.7 above.
2. Next you need to write selenium's code,testng code, from selenium, Selenium-server-standalone-2.41.0.jar,testng,testng-6.8.jar download the appropriate jar file and put it in the
Using Eclipse to write Webdriver drive Selenium test problem processing method
Problem: Org.openqa.selenium.firefox.NotConnectedException:Unable to connect to host 127.0.0.1 in Port 7055 after 45000 Ms. Fir Efox Console output:
Changes
Description: The version of Firefox is not consistent with the version
As a result, the problem can be handled as long as
(delegatingmethodaccessorimpl.java:43)At Java.lang.reflect.Method.invoke (method.java:498)At Org.junit.runners.model.frameworkmethod$1.runreflectivecall (frameworkmethod.java:45)At Org.junit.internal.runners.model.ReflectiveCallable.run (reflectivecallable.java:15)At org.junit.runners.model.FrameworkMethod.invokeExplosively (frameworkmethod.java:42)At Org.junit.internal.runners.statements.InvokeMethod.evaluate (invokemethod.java:20)。。。。。The source of the problem is on the pom file for this MAVE
Tags: good output ODI selected text OCA component AST numberBackground:First use JMeter to record or write performance test scripts, with Maven to add dependencies, the performance test code submitted to GitHub, in Jenkins configuration git download performance test code, configure run scripts and
It has a configuration parameter forkmode, which defaults to once, which means that when you run test, a new JVM process runs all test.This can cause garbled problems. First set Forkmode to never, i.e. not new. Run MVN test again, all OK. That's the problem!!Then find the official parameter description, found the Argli
browser, at this time the Eclipse development environment, the JUNIT results page is shown, 8:Figure 8. Automated Run ResultsDifferent versions of Webdriver for cross-browser testingThe key to implementing cross-browser testing is which webdriver to choose from.For IE and Chrome browserIn the case of IE browser, update the code shown in Figure 7 21st Behavior Driver = new Internetexplorerdriver ();After ru
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
some manual tasks, such as opening a browser and executing the operations described in a test case. However, manual tasks are prone to human errors and time-consuming. Therefore, it is a good practice to automate these tasks as much as possible to eliminate human factors. Therefore, selenium and other testing tools are available. Selenium helps you automate acce
Full Stack Engineer Development Manual (author: Shangpeng)
The Python tutorials all solution needs Environment browser (firefox/chrome/ie. Python Selenium Selenium IDE (if using Firefox) FireBug, Firepath (if using Firefox) chromedriver, Iedriverserver, Phantomjs.exe IDE (Pycharm/sublime/eclipse.. )
1, browsers suggest using Firefox or Chrome, do not use the late
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.