Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 1536 by c.puccin...@gmail.com: ROBOT_LIBRARY_SCOPE set by an empty library passing to RF packages
http://code.google.com/p/robotframework/issues/detail?id=1536

Hi,
I am using RF 2.7.3
I have defined three different java libraries lib1, lib2, lib3 working with RF, with specific ROBOT_LIBRARY_SCOPE (one is GLOBAL, one is TEST SUITE and last one TEST CASE). They works as expected with RF.

Now I have defined the new library MY_NEW_LIB, that exports to RF the classes defined into the previous three libraries:
Below the implementation of this lib:

import java.util.ArrayList;
import java.util.List;
import org.robotframework.javalib.annotation.RobotKeywords;
import org.robotframework.javalib.library.AnnotationLibrary;

public class MY_NEW_LIB extends AnnotationLibrary {

 @SuppressWarnings("serial")
static List<String> classes = new ArrayList<String>() {{ add("com/iontrading/robotframework/lib1/keywords/**.class");
                add("com/iontrading/robotframework/lib2/keywords/**.class");
                add("com/iontrading/robotframework/lib3/**.class");}};


 public MY_NEW_LIB () {
  super(itasLibraries);
 }
}

The goal of this library is to provide one only library to be loaded from Settings table.

Now if from setting table I load MY_NEW_LIB the ROBOT_LIBRARY_SCOPE is TEST CASE (the default). So RF is not able to get the ROBOT_LIBRARY_SCOPE configured into each java libraries lib1, lib2 and lib3 already defined. All works as expected if I load from settings table the three libraries lib1, lib2 and lib3

What I am missing?

Thanks
Claudio Puccini

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

--- You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to robotframework-commit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to