'runscript.bat' Passing Parameters Quick Query

Hi there,

I’m hoping this will be a quick question for someone to answer, and apologies if its an obvious answer!

I’m calling Eggplant using the runscript.bat command and would like to pass in a parameter.

According to the pdf reference document the format to pass the parameter is:

-params “SUT1”

What I would like to know though, once the script is launched how do I reference the parameter value which has been passed in?

Thanks,

Michael.

In the script, you need to either use the params keyword to declare variables to receive the passed in parameters, e.g.,:

params codeNum, itemColor

or you can just access the parameters from the built in param array:

typeText param(1)
Click param(2)

Thanks Matt, thats working nicely.