public interface DynamicVariable
System.currentTimeMillis()
method to return actual time in milliseconds. For the list of such variables
see the Var command documentation.T-Plan Robot Enterprise, (C) 2009-2022 T-Plan Limited. All rights reserved.
Modifier and Type | Method and Description |
---|---|
void |
contextCreated(ScriptingContext ctx)
This method gets called whenever a new scripting context is created.
|
String |
getCode()
Get the variable name.
|
String |
toString(String varName,
Map cliVars,
Map variables,
TestWrapper wr,
ScriptingContext ctx)
Get the variable value.
|
String getCode()
String toString(String varName, Map cliVars, Map variables, TestWrapper wr, ScriptingContext ctx)
varName
- variable namecliVars
- map of variables [name, value] passed in to the script through the
-v/--variable
CLI option.variables
- current map of variables [name, value].wr
- current test wrapper.ctx
- scripting context.void contextCreated(ScriptingContext ctx)
ScriptingContext.setVariable(java.lang.String, java.lang.Object)
method.ctx
- newly created context.