2012/5/4 Stephen Blessing <
stephen....@datasplice.com>:
>
> I was wondering if you could help me to understand how I might use the
> robotframework to run Perl scripts for automated testing of an application?
Thomas already proposed using `Run` keyword and its friends from the
OperatingSystem library [1]. They will definitely work, but if you
have special needs you may want to write a custom test library for
this purpose using Python's subprocess module [2]. Regardless how you
run your scripts, it will be much easier to verify did they succeed or
not if they return a return code to the system. If the script writes
something to stdout or stderr, you can easily write that to Robot's
log file. If the script creates its own log file, you can either link
that file from Robot's log or read its content and write that to the
log.
If you want to use Perl code as a test library providing various
keywords, using Perl remote server [3] as David suggested is probably
a good idea. For more information about Robot's remote library
interface in general see [4].
[1]
http://code.google.com/p/robotframework/wiki/OperatingSystemLibrary
[2]
http://docs.python.org/library/subprocess.html
[3]
http://code.google.com/p/plrobotremoteserver/
[4]
http://code.google.com/p/robotframework/wiki/RemoteLibrary
Cheers,
.peke
--
Agile Tester/Developer/Consultant ::
http://eliga.fi
Lead Developer of Robot Framework ::
http://robotframework.org