Sunday 4 June 2017

Getting Started with RobotFramework on Windows

http://www.lyyyuna.com/2016/04/09/robotframework-tutorial-a-complete-example/


Robot Framework 是一個通用的自動化測試框架。

Robot Framework 自身和其核心庫都是由 Python 實現的。因此,如果熟悉 Python (或者打算開始熟悉 :)),用其寫自己的關鍵字是個好的選擇。


Getting Started with RobotFramework on Windows

Install python

1) Go to https://www.python.org/ and download Python 2.7.x version as shown below and install it.


2) Open command prompt and run below command.


3) encounter error when installing robotframework

   3.1)  I have installed  python36 and python27 on my PC so it show the below error           
             NameError: name 'execfile' is not defined. 
           Solution :  Go to python27 folder and use the below command to install robotframework. 
                      


  3.2) When run ride.py, it said "wxPython not found."

         solution :  install wxPython 2.8.12.1  download from https://sourceforge.net/projects/wxpython/files/wxPython/2.8.12.1/  

     3.2)  download  "robotframework-ride-1.5.2.1.win-amd64.exe" but it said "No python installation found in the register"

            solution : install robotframework by Pip 
        

4)  after solve the above issue, continue to run below command. 
 



How to us
e Robot Framework with Selenium2Library & RIDE & Command Prompt

First, open cmd prompt and write “ride.py” and then press Enter. Then, you will see RIDE editor.  

  






No comments:

Post a Comment

how-to-recursively-create-subfolder-in-each-folder-of-a-directory-in-cmd

test.cmd: @echo off setlocal for /f "usebackq tokens=*" %%a in (`dir /b /a:d`) do ( rem enter the directory pushd %%a echo...