Discover how to integrate selenium with jenkins, include the articles, news, trends, analysis and practical advice about how to integrate selenium with jenkins on alibabacloud.com
About JenkinsJenkins is a very popular continuous integration (CI) service written in Java, originating from the Hudson project. So Jenkins and Hudson function similarly.Jenkins supports various versions of control tools, such as CVS, SVN, Git, Mercurial, perforce, and ClearCase, and can execute projects built with Apache Ant or Java maven. It can also use plug-ins, shell scripts, and Windows batch commands to build projects on other platforms.In addi
. Pathnameencoding set the file path for Chinese support.4. InformationOfficial website: http://jenkins-ci.org/Source code: Https://github.com/kohsuke/hudsonSummarizeContinuous Integration is a software development practice in which team development members often integrate their work, with each member being integrated at least once a day, which means that multiple integrations may occur on a daily basis. Ea
Need to install Jenkins and Python on the server
Open Jenkins to create a free-style project named PythonautotestBecause the code is managed with SVN, the Config source management for SVN "Jenkins builds a folder named after the project name in workspace in the installation directory of Jenkins when building the pr
/ this will installed Jenkins in/var/lib/Jenkins and the service will in/etc/init. d/Jenkins
When starting Jenkins, there is an error saying/usr/bin/Java: no such file or directory
The solution is to make a soft link usingLn-S $ java_home/bin/Java/usr/bin/Java
Use this method, there is some issueWhen integating with
Python + Selenium notes (18): continuous integration of jenkins and seleniumjenkins
(1)Install xmlrunner
This module is used in the test code when Jenkins is used for testing.
Pip install xmlrunner
(2)Install jenkins
(1) download jekins
Https://jenkins.io/download/
Download is suitable for you. I download the long-term
operation interface to manipulate page elements.On the other hand, Webdriver can interact with the system bottom and send the action signal directly. such as what keys to press, where to move the mouse and so on. Visible selenium2.0 is much more powerful than 1.0. Here is a brief talk about Webdriver:Webdriver My understanding:He's kind of an API, a specification.A variety of browser vendors refer to this specification to give the selenium the inter
Download plugin:
Python:https://wiki.jenkins-ci.org/display/jenkins/python+pluginRobotframework:https://wiki.jenkins-ci.org/display/jenkins/robot+framework+pluginSelenium:https://wiki.jenkins-ci.org/display/jenkins/selenium+plugin
Plugin use:
Place the downloaded. hpi file in this directory:D:\apache
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 directory.
4. Next you can write
test report (is using ant inside the test report)
Specific Access http://blog.csdn.net/yaominhua/article/details/6589389
5. Configure Jenkins
Specific Access http://m.blog.csdn.net/article/details?id=53380373
6, configure a good Jenkins after the test report problem
Will find the test report HTML reports clicked in a blank, no content, because Jenkins banned a
Jenkins+selenium can achieve continuous integration of web automation.
The basic operation of Jenkins:
First, new view and job
New View:
New job:
You can choose to build a free-style software project or copy an existing item
Ii. Preparatory work:
Install Jenkins plugin, SSH plugin, Email Extension plugin, H
In Windows cmd execute "python test.py", no problem, the browser open normally, the test results are normal.Problem:But if it is in Jenkins, choose "Execute Windows Batch command", configure "Python test.py" run test, this time there will be a problem, Chrome browser will not open, but there are processes in the background, Test.py runs in the background, but runs test.py in the background and the browser does not open.For such a problem, the workarou
jenkins-workpace;2.1 If the startup method does not have Java Web steps as follows1: Open "System Management"--"Configure Global Security"2:TCP Port JNLP agents configured to "random", click on "Agent protocols", tick Open "Java Web start Agent Protocol3"3: Check "Enable Slave" in Plugin manager to tick:Click on "Agent protocols" security policy to turn on "Java Web Start Agent Protocol3"Check "Enable Slave" in "Plugin Manager" to tickSave it and sav
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.