Hiya,
I have developed a static keyword library in Java and packaged it as a .jar
The class providing the keyword is "KeywordClass" in package "com.clayton.robot"
In the test case file i have:
*Setting* *Value*
Library com.clayton.robot.KeywordClass
I am using robot jython standalone .jar file and the keyword .jar file is in the same directory as robot .jar file.
I execute the test case via a .bat with command:
java -jar robotframework-2.7.3.jar TestCase1.txt
However this gives an exception:
This gives an exception when running the test : "Error in file 'D:\Clayton\RobotTests\TestCase1.txt' in table 'Setting': Importing test library 'com.clayton.robot.KeywordClass' failed: ImportError: No module named clayton"
I have tried setting the keyword .jar on the class path by altering the .bat file to have:
SET CLASSPATH=<full path to keyword.jar>
java -jar robotframework-2.7.3.jar TestCase1.txt
But i get the same error.
Can anyone let me know how to properly set CLASSPATH so that Robot Framework can find my class in my jar file.
Thanks,
Clayton