Set Library Search Order issues

482 views
Skip to first unread message

Angelos Kypriotis

unread,
May 11, 2011, 4:29:40 AM5/11/11
to robotframework-users
Greetings,

We currently have two separate library trees with some
incompatibilities, let's say :

SimulatorApi and ResultsApi
Vs
SimulatorApiEldorado and ResultsApiGold

and a testcase that uses the first set of libraries.

Now we want to 'port' the testcase to the second set of libraries but
first we want to check how '
'painful' the migration will be, so we have done sth like the
following :

Inside the 'Suite'

Set Library Search Order lib/python/SimulatorApiEldorado lib/python/
SimulatorApi ResultsApiGold ResultsApi,

but it still fails to find certain keywords that are present in one
set of libraries only e.g. ResultsApiGold.

It seems that if a keyword is present in both sets it is resolved
according to seach path, but if it is present on one set it is not
found !

Could it be that I have the 'Set Library Search Order' syntax wrong?

And a clarification : Should I explicitly 'Import' the respective
libraries when I set the search order or one approach is in conflict
with the other?

We use RF 2.5.6

Thanks in advance.

Angelos

Pekka Klärck

unread,
May 11, 2011, 5:30:32 AM5/11/11
to angelosk...@gmail.com, robotframework-users
2011/5/11 Angelos Kypriotis <angelosk...@gmail.com>:

>
> And a clarification : Should I explicitly 'Import' the respective
> libraries when I set the search order or one approach is in conflict
> with the other?

Yes, you still need to import those libraries. If you didn't do it,
that probably explains why the keyword wasn't found.

Cheers,
.peke
--
Agile Tester/Developer/Consultant :: http://eliga.fi
Lead Developer of Robot Framework :: http://robotframework.org

Angelos Kypriotis

unread,
May 11, 2011, 6:12:58 AM5/11/11
to robotframework-users
Hello,

Thanks for your prompt response.

Inside the testcase several resource files are specified in 'Settings'
table that import relevant libraries like this :

Resource imports/libraries_old.txt
Resource imports/libraries_new.txt

Each of the above files has a 'Settings' table specified as :

Library lib1 arg1
Library lib2 arg2

.
.
.
.

Though libraries are specified explicitly so to speak running the
testcase reports ambiguity with the message :
"Multiple Keywords with name 'foo' found....
Give the full name of the keyword you want to use"

So it seems that 'Search Library Search Order' somehow does not take
place. How could I debug this?

Best Regards,

Angelos


On May 11, 12:30 pm, Pekka Klärck <p...@iki.fi> wrote:
> 2011/5/11 Angelos Kypriotis <angeloskyprio...@gmail.com>:

Angelos Kypriotis

unread,
May 11, 2011, 8:34:50 AM5/11/11
to robotframework-users
Hello,

It seems that when running with --runmode dryrun it fails, but with a
normal run it works ok.

Cheers,

Angelos

On May 11, 1:12 pm, Angelos Kypriotis <angeloskyprio...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages