Cheers
Mark Levison Mark Levison | Agile Pain Relief
Consulting | Certified Scrum Trainer
Agile Editor @
InfoQ | Blog | Twitter | Office: (613) 862-2538
Recent
Entries: Story Slicing How Small is Small Enough,
Why use an Agile Coach
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To post to this group, send email to robotframe...@googlegroups.com.
To unsubscribe from this group, send email to robotframework-u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/robotframework-users?hl=en.
Nice!
> For testing underneath the browser we had just assumed that it would be simple to make to write
> a simple bridge, however after some questions today I'm confused. Rather than detail my
> confusion I was hoping to look at some examples that show how Robot calls out to Java and then
> figure out what we need to do on the .NET side. However as I google I can't find an examples,
> even Andreas's blog was empty :-)
> Where do I look?
Simple executable examples demonstrating Robot's features are
something we sorely miss. The test library API is, however, pretty
well documented in the User Guide [1]. A direct link to the latest
version of the test library section is [2]. As you can see, a library
can be created with Java as simply like this:
public class MyLibrary {
public void hello(String name) {
System.out.println("Hello, " + name + "!");
}
}
The above example creates a test library `MyLibrary` with keyword
`hello`. This kind of "static" libraries are very good for simple
cases. If the library gets larger, then it might be better to start
using JavaLibCore [3] which uses Robot's dynamic test library API
internally.
[1] http://code.google.com/p/robotframework/wiki/UserGuide
[2] http://robotframework.googlecode.com/svn/tags/robotframework-2.5.5/doc/userguide/RobotFrameworkUserGuide.html#creating-test-libraries
[3] http://code.google.com/p/robotframework-javatools/wiki/JavalibCore
Cheers,
.peke
--
Agile Tester/Developer/Consultant :: http://eliga.fi
Lead Developer of Robot Framework :: http://robotframework.org
I don't get your problem. Could you please extend your description a
bit for me to get a clue about that? Thanks.
Best
Dipl.-Inform. Markus Gärtner
http://www.shino.de/blog
http://www.it-agile.de
Twitter: @mgaertne
The JavaIntegration Wiki page[1] might be of interest to you. In
short, the easiest way is to use the org.robotframework.RobotFramework
class directly like this:
java -cp Foobar.jar:robotframework-2.5.3.jar
org.robotframework.RobotFramework example.html
[1] http://code.google.com/p/robotframework/wiki/JavaIntegration#Using_additional_Java_libraries
hth,
--J
--
Janne Härkönen | http://reaktor.fi
http://twitter.com/#!/janneharkonen
@Janne and Laurent, Thank you very much.
I think I grew confused over time by seeing folks integrate various test libraries in both Python and Java using different methods like the standalone jar and jybot. Needed a "this is how you do it," which of course the User Guide gives and I simply forgot about over time.
Thanks for your help. I'll be re-reading the user guide more closely.
--