java - How can I instantiate a Robotframework library class with a factory method? -
i have java class want import library in robot file.
the problem class singleton static method newinstance instead of ordinary public constructor.
is there way tell robotframework use newinstance instead of constructor instantiate library object?
of course, can use call method desired "library" object , again call method, disable magic , simplicity of direct using of library class methods keywords. making class non-singleton not solution in case.
no, according user guide, not possible. can define library's scope bysetting robot_library_scope accordingly.
maybe helps:
global 1 instance created during whole test execution , shared test cases , test suites. libraries created modules global.
Comments
Post a Comment