I cannot tell how to use this keyword because you have found a bug. I
just submitted it into the tracker [1] and it will be fixed for the
next release (hopefully already next week).
Probably the best workaround for this problem is using variable files
and Import Variables keyword. Alternatively you could use Import
Resource in suite setup -- variables imported there are visible to all
tests -- but based on your use case that doesn't work for you so well.
[1] http://code.google.com/p/robotframework/issues/detail?id=944
Cheers,
.peke
PS: Sorry for neglecting this mail for so long. It unfortunately got
under a big pile of other unread mails which I'm only now able to go
through.
--
Agile Tester/Developer/Consultant :: http://eliga.fi
Lead Developer of Robot Framework :: http://robotframework.org
*** Settings ***
Library Selenium2Library
Resource ../variables/AU/Resource.txt
Resource ../variables/US/Resource.txt
Resource ../variables/AU/importAU.txt
*** Variables ***
${COUNTRY} AU
*** Keywords ***
Homepage should be open
Run Keyword AU
Set Selenium Speed 1 second
Open Browser ${url_staging} chrome
*** Settings ***
Library Selenium2Library
*** Keywords ***
AU
[Documentation] Initializes the AU keyword variables
Import Variables ../variables/AU/Resource.txt
Documentation: | Imports a resource file with the given path. |
---|---|
Start / End / Elapsed: | 20150706 13:49:31.289 / 20150706 13:49:31.293 / 00:00:00.004 |
13:49:31.293 | FAIL | Resource file '..\variables\AU\Resource.txt' does not exist. |