Reputation: 11
I want to use keywords written in DateTime Library http://robotframework.googlecode.com/hg/doc/libraries/DateTime.html?r=2.8.5
I have robot framework 2.8.6.
Whenever I import this library in my tests in RIDE; it is shown in red (not resolved). Also in documentation I am not able to search the keywords.
Upvotes: 1
Views: 5140
Reputation: 9
I'm use RF with Python and by default my IDE sees Python DateTime library. Use full path:
Library robot.libraries.DateTime
Upvotes: 0
Reputation: 3
ombre42 is right, RIDE (my current is 1.3.0) includes an older version of RobotFramework which does not includes DateTime module. You have the RobotFramework 2.8.6 installed, but you doesn't use it when you launch tests using RobotFramework-RIDE.
Two important things:
Upvotes: 0
Reputation: 2384
Your problem is probably with RIDE and not Robot Framework. RIDE uses its own copy of RF regardless of what you have installed. The included version is out of date. Try copying DateTime.py from Robot Framework installation to the folder in RIDE.
For example, copy C:\apps\Python27\Lib\site-packages\robot\libraries\DateTime.py to C:\apps\Python27\Lib\site-packages\robotide\lib\robot\libraries
Then restart RIDE.
Upvotes: 2