The installation method of third-party libraries frequently used in the Robot Framework, robotframework
Pip upgrade:Python-m pip install -- upgrade pip
1. Install robotframework-selenium2library, which is equivalent to selenium in pythonCmd> pip install robotframework-selenium2library
Ii. Interface Test requestCmd> pip install requests (step 2 is supported; other
Robot Framework (Chinese station/social knowledge Community, source code) is a Python-written common open-source functional test automation framework for acceptance testing and acceptance test-driven development (ATDD), which is a keyword-driven test framework that uses tabular test data syntax, It can also run on Jyth
These days to study under the Robotframework+http Library (requests) to do interface testing (HTTP protocol), after the installation of the requests library, in the ride import the library when the display is red, that is, import failure (normal import should appear as black), Online also did not search for useful information, so these days are constantly in the company's computer and home computer repeatedly toss. Today at home to rest, continue to toss, Kung fu is not a conscientious, finally
The Robot framework framework was developed based on the Python language, so it is essentially a library of Python.Baidu Search ExampleCreate the py_robot.py file with the following code:From Robot.apiImport TestSuiteFrom Robot.apiImport ResultwriterFrom Robot.modelImport Keyword# Baidu Search TestClassBaidusearchtest:Def__init__(Self, name, librarys=["Seleniumli
Robot Framework runs scripts through JybotThe main explanation is how to set the script to run through Jybot mode in the robot framework, so the robot framework is capable of running scripts in Pybot mode, such as unclear how to i
.
There are many configurable items. In order to quickly execute the case, we will first introduce the required items.
A. restrict where this project can be run: The preceding label is used here. Used to specify the label on which the job is executed. The specified slave label for multiple configuration items is not here.
B. Source Code Management: SVN is recommended for RF cases. This demonstration will not be processed. The next article will explain it briefly.
C. Build: we need to add the b
The Robot framework is a keyword-driven acceptance automation testing framework that is now being used more and more widely in China. A common test solution for Web UI Automation is Robot Framework+selenium2library (RFS). In general, to use the Selenium2library library, you
Install Python
Down an Python installation package, https://www.python.org/downloads/release/python-2710/
Install by default path
Add the path to the Python installation directory in the environment variable.
Add a Python subdirectory to the environment variable scripts:c:\python27\scripts
Enter Python in the console to verify that the installation was successful
Installing Setuptools
Download Setuptools installation package, https://pypi.pyt
Robot Framework Simple Web site compatibility testIntroduction to the 0.Robot FrameworkThe Robot framework is a common automated testing framework for "acceptance testing" and "acceptance test driven Development (ATDD)" (ATDD is d
Databaselibrary:On the RF official website, there are databaselibrary download links, Databaselibrary has 2 versions, Python and Java edition. I am using the Python version.1, download and official website introduction:http://franz-see.github.com/Robotframework-Database-Library/Installation:Using Easy_install:easy_install Robotframework-databaselibraryUsing Pip:pip Install Robotframework-databaselibraryor download the installation package:Python setup.py Install2. Import the Databaselibrary libr
as the confirmation Save as processingAll right, here's the case script for the specific implementation.Where A's script is lines 3rd through 7th, B's script is 9th line to 12th Line, C's script is 14th line to 16th line.A lot of sleep in the middle of the wait, it is autoitlibrary script execution is too fast, in order to ensure the success rate of the demo, I temporarily added, we can try other programs do not sleep, as the practice of this article.Well, this two introduction selenium2library
Under the robot framework, the Selenium2library library is often used for testing.
Novice most likely to encounter the situation of IE browser open failure, this time, please see the specific information, Protected mode ... This can be guessed that the protection mode of IE browser is inconsistent, this time, the browser's "Tools"-"Internet Options"-"security" in the "Enable Protected mode" checkbox on t
Robot Framework Automated Environment Setup and the first scriptTraining Teacher: Sho Nenyu2016/06/07Course PurposeI. ROBOT framework environment and first scriptCourse Content1 Pre-Installation preparation workThe installation files needed to build the environment are already downloaded, and can be extracted from SVN,
Opening Robot Framework Report failedVerify. You has JavaScript enabled in your browser.Make sure is using a modern enough browser. Firefox 3.5, IE 8, or equivalent is required, newer browsers is recommended.Check is there messages in your browser ' s JavaScript error log. Please be problem if you suspect a bug with encountered a.Solution 1:First in the browser run add this code HTML file If you can play t
I. Build a robot framework environment: Official Website: http://robotframework.org/
Serial number
Installation Package name
Installation Method
Remarks
1
Python
EXE file, double-click to install
Https://www.python.org/download/releases/2.7.8/
The installation path cannot contain spaces.
organizing it into a test Suite for performing tests. In fact, the testing of 3 search engines, because of homogeneity, can also be combined into a test, using different input parameters to specify the search engine to be tested. This is considered to be three components, just to illustrate how to organize multiple test modules in a selenium+testng environment.From top to bottom, the test scenario described in the previous paragraph can be decomposed
Robot framework is an extensible keyword-driven automated testing framework developed based on python. It is usually used for end-to-end acceptance testing. It encapsulates the definitions of test cases, keywords, and test data into HTML or TSV (tab-separated) files. The user manual and the following: http://code.google.com/p/robotframework/
Some basic concepts
shortcuts on the desktop)Robotframework-ride-1.2.3.win32.exe5, Robotframework-selenium2library (need to import after the RF installation is successful)Robotframework-selenium2library-1.6.0.win32.exe6, decorator-3.4.0 (s2l Library's dependent library. https://pypi.python.org/pypi/decorator/3.4.0)7, docutils-0.11 (s2l Library's dependent library. https://pypi.python.org/pypi/docutils/0.11)8, selenium-2.35.0 (is the
There is a keyword 'Start process' in the Library 'process'.
(Starts a new process on background)
Note: There is also a keyword 'Start Process' in the Library 'operatingsystem'. But has been abandoned, it is recommended to use Process.Start Process.
= = = This is the part where I found this "pit". Not interested, can jump directly to the end of the text = =
Recently encountered a problem. > Phenomenon :
Note: The system under test (SUT) is a WinForm program, written in C #. NetWhen a case is e
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.