Revision: 3919
Author: janne.t.harkonen
Date: Wed Aug 25 21:26:12 2010
Log: Created wiki page through web user interface.
http://code.google.com/p/robotframework/source/detail?r=3919

Added:
 /wiki/JavaIntegration.wiki

=======================================
--- /dev/null
+++ /wiki/JavaIntegration.wiki  Wed Aug 25 21:26:12 2010
@@ -0,0 +1,28 @@
+#summary Describes various ways to use Robot Framework from Java.
+
+= Introduction =
+
+Starting from Robot Framework 2.5.2, RF is distributed also as a jar file. This jar file allows execution of Robot Framework without having Python installed, but it also contains a programmatic entry point for using RF within Java code.
+
+Currently, an API exists only for test execution.
+
+= Test execution API =
+
+There is currently a very simple class, [http://robotframework.googlecode.com/svn-history/r3918/trunk/doc/java/org/robotframework/JarRobot.html JarRobot] which allows running Robot Framework tests.
+
+Here's a simple example:
+
+{{{
+public class Test {
+
+    public void runTests() {
+        int rc = JarRobot
+                .run(new String[] { "--outputdir", "/tmp", "mytests" });
+        if (rc == 0)
+            System.out.println("All tests passed");
+        else
+            System.out.println(rc + " tests failed.");
+    }
+
+}
+}}}

Reply via email to