Hi,
It seems that this is a bug in QuickFix. Could you please open ticket on github (
https://github.com/nokia/RED) sharing some more details (how does the import look like inside suite file, how is your red.xml configured etc.) - it would be great if you could provide some small example.
However when playing with with virtualenv and RED I was able to do the following:
- install virtualenv for python 2.7.9
- create new environment
- install robotframework, requests and robotframework-requests inside it using pip
- added this new environment in RED preferences page (Robot Framework -> Installed frameworks)
- choose this installation in red.xml file of my project
At this point I wasn't able to add the library using quick fix. However this is what I was able to do:
- open red.xml, go to Referenced libraries page and under 'Add Python library' button choose $virtualenv/Lib/site-packages/RequestsLibrary/__init__.py file; then in next dialog choose RequestsLibrary
- if 'Auto discover libraries after test suite save action' option is enabled in red.xml (and it should be by default) then RED was also properly recognizing the library after some change&save in my suite file
- the latter can be also run manually by clicking RMB on project and choosing 'Robot framework' -> 'Automatically discover and add libraries to red.xml' from context menu
After any of those methods RED was properly recognizing the library, seeing keywords, providing assistance etc. Note that the example taken from robotframework-requests github page was importing the library using its name ("Library RequestsLibrary"; inside suite settings section) - this may be important for proper setup. However as I mentioned earlier I wasn't able to import the library properly using QuickFix, so I think we have to look for a deeper cause and fix it.
Hope this will help you. Please report the issue on our github page - thanks in advance!
Michał