This is an old revision of the document!


Remote Command Plugin

Provides a remote interface to allow mScript method $remoteCmd() to send a remote command to external test automation tools or custom testing agent. You can call $remoteCmd() from the mScript as well as in java handler.

Any external tool that supports http request can then be integrated with TestOptimal MBT execution by obtaining test sequence commands generated from your MBT model/mScript and execute them on AUT.

The following are the http commands supported:

Return: localhost:6049

    <assert value1="$remoteCmd('getTitle()')" op="eq" value2="Login Page"/>

Another example, the following mScript will send a remote command selectOption to the agent from mScript:

 <action code="$remoteCmd('selectOption(\'dropdownList1\', \'option2\')')" />

In your agent, it will receive this remote command:

  selectOption('dropdownList1','option2')

This plugin is different from RemoteTriggerPlugin which sends event trigger (traversing state/transition) instead of remote commands generated by $remoteCmd() method you coded in mScript for the model.

Additionally the remote agent callback to the server to retrieve data: dataset, user var and system var.