The class for an RPC test suites. The R1-RPC/J test generator generates
test cases and instantiate them into a generated test suite class.
You can manually write your own test case and suite classes.
Most of the mechanisms here are to cater for the test UI. Please refer
to the source code of the test UI as well as the generated test case and
test suite classes for how this class is used.
public var allRun:Boolean = false
allTestCases:Array [read-only]Implementation
public function get allTestCases():Array
facade:RPCFacade [read-only]
Implementation
public function get facade():RPCFacade
facadeClassName:String [read-only]Implementation
public function get facadeClassName():String
isLoggedIn:Boolean [read-only]Implementation
public function get isLoggedIn():Boolean
public var needLogin:Boolean = false
public var password:String = "null"
public var passwordEncrypted:Boolean = true
public var quietRun:Boolean = false
unblockableListener:Function [write-only]Implementation
public function set unblockableListener(value:Function):void
public var username:String = "null"
public var userObject:Object = null
public function RPCTestSuite(facade:RPCFacade)Parameters
public function callListener(tc:RPCTestCase):voidParameters
public function cancelRunAll():void
public function init():void
Override to do anything after the test cases are all added.
public function initRPC(rpcUri:String):void
Call this method to initialize the RPC object in the façade.
It uses passwordEncrypted, so make sure it is set
correctly before calling this method.
Parameters
public function login(postLoginCB:Function, username:String, password:String):voidParameters
| postLoginCB:Function |
| |
| username:String |
| |
| password:String |
public function pauseRunAll(pause:Boolean):voidParameters
public function registerUserAndLogin(postLoginCB:Function, username:String, password:String, userObj:Object):voidParameters
| postLoginCB:Function |
| |
| username:String |
| |
| password:String |
| |
| userObj:Object |
public function resetAll():void
public function runAll(interval:int = 0):void
Parameters
| interval:int (default = 0) — In milliseconds. If > 0, run all cases one by one.
Otherwise, launch all at the same time.
|
public function setListener(f:Function, extra:Object = null):void
Parameters
| f:Function — Signature is:
function f(tc:RPCTestCase, extra:Object):void {}
|
| |
| extra:Object (default = null) |
See also
r1.rpc.test_framework.RPCTestCase