[ WARN ] Imported library java library contains no keywords. jython java library robot framework
command used: jython -Dpython.path=C:/jython2.7.2/Lib/site-packages/ com.robot-0.0.1-SNAPSHOT.jar -m robot.run searchpp.robot
In robot file added Library as
*** Settings ***
Library javalibrary.mylibrary
java class
package javalibrary;
import org.robotframework.javalib.annotation.RobotKeyword;
import org.robotframework.javalib.annotation.RobotKeywords;
@RobotKeywords
public class mylibrary {
public static final String ROBOT_LIBRARY_SCOPE="GLOBAL";
@RobotKeyword
public void hello(String name)
{
System.out.println("Hello, " + name + "!");
}
public void doNothing() {
}
}
console error:
[ WARN ] Imported library 'javalibrary.mylibrary' contains no keywords.
==============================================================================
Searchpp
==============================================================================