Since: API Level v2
public class

RemoteCommandPlugin

com.webmbt.plugin.RemoteCommandPlugin
Known Direct Subclasses

Class Overview

Universal plugin works with TestOptimal agents (TOAgent) which calls back to TestOptimal server to retrieve the testing commands and report result from last remote command. These requests are handled by AgentCallbackReq class.

Copyright © 2008 - 2017 TestOptimal LLC. All Rights Reserved.

Summary

Public Constructors
RemoteCommandPlugin()
Public Methods
String remoteCmd(String... params_p)
returns null if command is not executed.
void setCmdFormat(String format_p)
sets the remote command format: xml, json, text, qtp.
String snapScreen(String fileName_p)
INTERNAL USE ONLY.

Public Constructors

public RemoteCommandPlugin ()

Since: API Level v2

Public Methods

public String remoteCmd (String... params_p)

Since: API Level v2

returns null if command is not executed. Example: $remoteCmd('action1','firstName=John','lastName='Smith')@return

Parameters
params_p parameter list, optional. Use format paramName=value.
Throws
Exception

public void setCmdFormat (String format_p)

Since: API Level v2

sets the remote command format: xml, json, text, qtp. Default is text.

public String snapScreen (String fileName_p)

Since: API Level v2

INTERNAL USE ONLY. snap the current testing app browser under testing (AUT) and save the screen in png into the file passed in.

Throws
Exception