public class CommandFactory extends Object implements ICommandFactory
| Constructor and Description |
|---|
CommandFactory(Context context)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static Set<Map.Entry<String,Constructor<? extends ICommand>>> |
getCommandEntries()
Get command entries.
|
ICommand |
newCommand(int index,
String name,
String... args)
Constructs selenese command.
|
void |
registerCommandFactory(ICommandFactory factory)
Register user defined comman factory.
|
public CommandFactory(Context context)
context - Selenese Runner context.public void registerCommandFactory(ICommandFactory factory)
factory - ICommandFactory object.public ICommand newCommand(int index, String name, String... args)
ICommandFactorynewCommand in interface ICommandFactoryindex - index in selenese script file.name - command name.args - command arguments.public static Set<Map.Entry<String,Constructor<? extends ICommand>>> getCommandEntries()
Copyright © 2017. All rights reserved.