Launching EggPlant Remotely

Hi,

I’m looking for ways I can launch eggplant scripts with parameters remotely, such as via SSH.

What I want to be able to do is be able to link this into our already existing test framework that running on Windows, so it can call EggPlant for tests that require Macs.

Thanks,
David L.

David–

This can definitely be done. We do this all the time here at MM. Eggplant has a command line version called runscript (Ch 9 in the EP manual for all the really gory details, I believe). but it comes down to more or less a flavor of this:

ssh -cl "/path/to/runscript" "path/to/scriptorsuite" -params param1

Thanks, that’s exactly what I was looking for.

Embarassed to ask this… but I can’t seem to figure out how to use the command line parameters I want to pass in the code.

Is there some sort of special global array, or do I need to declare some sort of function?

Sorry, I’m new to Sense Talk and haven’t figured all the in and outs yet.

What you need is to declare the incoming parameters at the top of your script, something like this:

params p1,p2,p3

Then p1, p2, and p3 (in this case) will be variables that are assigned the first three values passed in from the command line.

Thanks for the help.