I have written a set of RF installation configuration, which is to do automated tool research when building RF summary, based on the Win32 series of software installation process. After 1 months of research, made the demo, also roughly learn the use of RF and Python basic grammar, temporarily selected to use RF as interface Automation testing tools, now need to determine the various types of RF basic software version, so I started a variety of toss.
First: Consider RF-related 4 basic software (Python,wxpython,robotframework,robotframework-ride) version selection issues.
A. Which version of Python is selected? The previous version of the demo used is as follows: Python-2.6.6.msi; wxpython2.8-win32-unicode-2.8.12.1-py26.exe; robotframework-2.6.0.win32.exe; Robotframework-ride-1.2.2.win32.exe. Among them, Python uses the version of 2.6.6, the latest version has reached 3.5.1, and it is well known that the python2.x series and 3.X series between the syntax is a big difference, then the question comes, choose 2.X Series of Python or choose 3.X series? After the investigation, the basic use of 2. X series, because other RF software temporarily has a stronger and more stable compatibility with the 2.X series. And the 2.7.X series of Python has been maintained, and now the latest version is 2.7.11. The 2.7.11 version number was chosen.
B. Which Wxpython version to choose? The selection of the Wxpython version is directly related to the previous version using Python. Wxpython is used to support the graphical interface of Python, which is used to run ride. The latest version on the official website is 3.0, but with wxPython3.0 version and the latest rf,ride use will be error, run ride will prompt, need to install wxPython2.8 Unicode version. So 2.8.12.1 is the ride stable supported version, so choose wxPython2.8.12.1 this version. And because the choice is the python2.7 series, so download the package: Wxpython2.8-win32-unicode-2.8.12.1-py27.exe, and the previous is not the same.
C. How to choose the Robotframework version? RF now the latest version of the official website is 3.0, in the watershed version is 2.8.7. There are big differences between versions prior to 2.8.7 and later versions, and one of the differences I've experienced is the cast of scalar variables and list variables in RF. 2.6.0 This old version, scalar variables and list variables are the two namespaces used, and 3.0 this new version uses a namespace. That caused me to fail when I used the demo to cast (using RF2.6.0). As shown below:
This problem does not exist in 3.0, can be cast, and output. In addition, the dictionary type variables are added, and so on. So robotframework can use the latest version, just use the 3.0 version.
D. How to choose the Robotframework-ride version? Ride is a visual interface for writing test cases, the documentation shows that you can use other interfaces to write test cases, but I have not tried, here or introduce the software. Ride version of the latest is the 1.5.2, different versions of the ride is able to give users a different sense of the intuitive, because the interface changes are still very easy to detect. So the ride installation is also the latest version can be used.
Second: Is it OK to choose Win32 or Win64 software?
Before doing the demo, casually find a few documents, stumbled, indefinitely installation is finished. can also be used normally. The reason for this problem is that I ignored a problem when I installed the software, and it took a long time. Recently installed a new operating system, is 64-bit, before the use of the demo is 32-bit, the machine itself is 64-bit, thinking of the specification, on the 64-bit operating system, installed 64 bits of the 4 basic software. Installation is no problem, but the demo before running the error. As shown below:
20160406 15:40:05.999: fail:windowserror: [Error 193]%1 \xb2\xbb\xca\xc7\xd3\xd0\xd0\xa7\xb5\xc4 Win32Ending Test: Demo.Test.login
Windowserror: [ERROR 193] Error, according to the actual situation of the demo, because the demo contains 32-bit DLL files, and the software uses 64 bits, which will be called unsuccessful, failed. Instead of developing DLL files, programming to 64-bit DLLs is not available. In this case, you can only use the Win32 set of basic software.
Third: The installation of Ride is used. EXE install or choose install package installation?
Choose. EXE installation, the most convenient place is directly generated shortcut keys, will not open ride and other a series of messy problems, but I also encountered a problem
Open after the error, because several basic versions of RF previously did not select a good problem (RF before using 3.0,ride 1.3), the problem occurs, choose a good software version reload (rf:3.0;ride:1.5.2) can be.
Select Install package installation There will also be a variety of dog blood problems, such as ride.py run reported various errors. In fact, it is possible that the version of the 4 basic software is causing problems.
IV: Choose PIP to install third-party libraries and rf,ride?
Never used Pip before, Because the pre-research phase with the python2.6.6, after the installation of Python will have to install the PIP, the trouble is very, now use 2.7.11 do not need to install PIP again, because after 2.7.9, PIP has been Python integration into the Python installation package, loaded Python, you can Using PIP to install the software directly makes it easier and quicker to install third-party libraries. In the long run, it's better to use PIP.
A quicker installation is attached below:
First step: Install Python, software version: Python-2.7.11.msi (default is 32-bit): https://www.python.org/downloads/release/python-2711/
PS: After the installation is complete, be careful to add the system environment variable path and then verify it.
Step Two: Install Wxpython, software version: wxpython2.8-win32-unicode-2.8.12.1-py27.exe:https://sourceforge.net/projects/wxpython/ Files/wxpython/2.8.12.1/
PS: Software version name, get a word of the download
Step three: Upgrade Pip to the latest version.
Fourth step: Download RF with PIP
Fifth step: Download ride with PIP
Sixth step: Start the ride interface with ride.py
According to the previous 6 steps, you can quickly set up the corresponding environment. Unlike Python, the Wxpython version is certainly not the same, but both RF and ride versions can be used up to date. You can also add your own ride desktop shortcut by following the steps above.
Build environmental experience: All kinds of wonderful problems have been met, installation to half tips have problems, installed well boot can not start the project import can not run. The problem is not scary, the key is to find the cause of the problem, know the cause of the problem, and then targeted changes to find the problem, and then to modify the problem, this should be the right way to solve the problem ~ ~ ~
Robotframework installation Configuration (ii)