Comment #3 on issue 589 by c.martin.taylor: ROBOT_LIBRARY_SCOPE = "GLOBAL" is ignored in RF 2.5
http://code.google.com/p/robotframework/issues/detail?id=589

By restructuring some AutoItLibrary test suites I've been able to reproduce this bug using non-proprietary code that tests the Windows Calculator application. Unzip the attached file to C:\ on a Windows machine with Robot Framework 2.5 installed on it. Install the AutoItLibrary from here: http://code.google.com/p/robotframework-autoitlibrary/. Double click on the CMD file Issue598_Demo\~RunTests\RunTests.bat to run the tests in the same way that I'm running my proprietary tests. Observe that the AutoItLibrary is initialized per-suite.

In building this I realized that the issue is probably due to the fact that I reference the resource file at each of the 3 suite levels. This resource file imports the library. In RF 2.1.3 it was smart enough to not re-import libraries that were already imported and had the GLOBAL scope setting. This "smartness" seems to have been broken in RF 2.5. I do this multi-level resource importing so that users can select suites to run at any level in the suite folder hierarchy.

Attachments:
        Issue598_Demo.zip  8.9 KB

Reply via email to