rpc.mpl |
![]() |
rpc.mpl - an RPC interface for the ApTest Manager test execution area
http://example.com/atm/run/rpc.mpl?rpctoken=token&username=name& \
suite=suiteName&command=commandName...
rpc.mpl provides a simple Remote Procedure Call interface to allow basic run operations to be performed over the internet by external tools.
Using your web browser, go to the Manage ApTest Manager screen, and click on Manage System Configuration. Enter a value for "What is the authentication token for users of the RPC interface?". You will not be able to use the RPC interface until a token is set.
RPC calls can be made using GET or POST requests. POST is suggested if you wish to keep the RPC authentication token out of the server's access logs.
External tools pass in an authentication token to verify that they can access the RPC interface. There is a single token for all tools. The tool also passes a username. Assuming the tool authenticated correctly, it performs its actions as the specified user. The user will need to have at least "run" access to the suite being operated on.
The server will return a response of type text/plain. The first line will be a numeric return code (currently 0 for success or 1 for an error) followed by zero or more message lines. In the event of an error, the message will detail the error.
rpc.mpl?rpctoken=token&username=lake&suite=Example&command=createGroup& \
name=Group_C&setGroup=Group_A/Group_B
rpc.mpl?rpctoken=token&username=lake&suite=Example&command=createSet& \
set=My_Set&setGroup=Group_A/Group_B&SCHEMA_priority=high
rpc.mpl?rpctoken=token&username=lake&suite=Example&command=createSession& \
set=Group_A/Group_B/My_Set&startdateplanned=1233446400&VAR_os=Mac_OS_9
rpc.mpl?rpctoken=token&username=lake&suite=Example&command=result& \
sess=00001&tid=0&result=retest
rpc.mpl?rpctoken=token&username=lake&suite=Example&command=result& \
sess=00001&id=ATM_Administration.dir/Help_Screen.bts& \
EXECDATA_prid=42
rpc.mpl?rpctoken=token&username=lake&suite=Example&command=result& \
sess=00001&uuid=AC2CD7D2-955D-11D8-A214-90E5C9F5B464¬e=Fixed \
The following arguments are common to all requests, and are mandatory.
createGroup
, createSet
, createSession
, and result
.Copyright © 2000-2009 Applied Testing and Technology, Inc. All rights reserved.