I just setup Robot Framework
yesterday. I went to YouTube
to see some videos on how to set up and I found one that was just uploaded last month. I follow all the steps and I numbered it below.
- Installed
Python 2.27
and added it onEnvironmental Variables
- Installed
RobotFramework (3.0.2)
usingpip install robotframework
(CMD run as Administrator) - Installed
Selenium 2 Library
usingpip install robotframework-selenium2library
- Downloaded the browser drivers (
ChromeDriver
,GeckoDriver
andIE Driver
) and added onEnvironmental Variables
. - Dowloaded the Robotframework Database-Libary ZIP, then extracted the downloaded zip file
- In CMD, I then key in
python setup.py install
(SUCCESS) - Next, I installed the
database APIs
throughpip install py mssql
(SUCCESS) - NOW, I downloaded
PyCharm Community 2016.3
InstalledIntelliBot
plugin onPyCharm
I have created a project FirstProject
. Under it I created a directory testsuite
. In testsuite, I created my testcase1.robot
and copy pasted some sample robot framework test on the editor and run it using command pybot testcase1.robot
.
However, I encountered an error saying
[ERROR] Parsing 'testcase1.robot' failed: Data source does not exist.
Here's my code.
It'll simply open Facebook
website through Chrome
browser.
========================================================================
*** Settings ***
Documentation This is my first robot framework test script
Library Selenium2Library
*** Variables ***
*** Test Cases ***
open browser http://www.facebook.com chrome
close browser
*** Keywords ***
======================================================================= Regardless of my code, I have the next questions:
Did I miss something on my configuration?
If not, what's wrong with the code?
If fixed, will that make my test run?
Any feedback is well appreciated.