Status: New
Owner: ----
Labels: Type-Enhancement Priority-Medium
New issue 857 by [email protected]: Provision for Library constructor
with Suite/Test details map as a parameter
http://code.google.com/p/robotframework/issues/detail?id=857
We create an instance of the test library depending on the attribute
ROBOT_LIBRARY_SCOPE
Here we invoke the default constructor unless we pass in the parameters
while loading it from the test case.
I want provision invoking another constructor with a map/hash containing
the RF parameters if ROBOT_LIBRARY_SCOPE = "GLOBAL", RF parameters + suite
details if the scope is "TEST SUITE" and RF parameters + suite + test
details when the scope is "TEST CASE"
Something on the lines of
public TestLibrary() {
}
/**
* Invoke this if available
*/
public TestLibray(Map details) {
}
For libraries with need parameters we could have something on the lines of
public TestLibrary(String arg1, String arg2) {
}
/**
* Invoke this if available
*/
public TestLibray(Map details, String arg1, String arg2) {
}