View Source ct_rpc (common_test v1.27)

Common Test specific layer on Erlang/OTP rpc.

Common Test specific layer on Erlang/OTP rpc.

Summary

Functions

app_node(App, Candidates) -> NodeName

app_node(App, Candidates, FailOnBadRPC) -> NodeName

app_node(App, Candidates, FailOnBadRPC, Cookie) -> NodeName

call(Node, Module, Function, Args) -> term() | {badrpc, Reason}

call(Node, Module, Function, Args, TimeOut) -> term() | {badrpc, Reason}

call(Node, Module, Function, Args, TimeOut, Cookie) -> term() | {badrpc, Reason}

cast(Node, Module, Function, Args) -> ok

cast(Node, Module, Function, Args, Cookie) -> ok

Functions

Link to this function

app_node(App, Candidates)

View Source

app_node(App, Candidates) -> NodeName

From a set of candidate nodes determines which of them is running the application App. If none of the candidate nodes is running App, the function makes the test case calling this function to fail. This function is the same as calling app_node(App, Candidates, true).

Link to this function

app_node(App, Candidates, FailOnBadRPC)

View Source

app_node(App, Candidates, FailOnBadRPC) -> NodeName

Same as ct_rpc:app_node/2, except that argument FailOnBadRPC determines if the search for a candidate node is to stop if badrpc is received at some point.

app_node(App, Candidates, FailOnBadRPC, Cookie) -> NodeName

Same as ct_rpc:app_node/2, except that argument FailOnBadRPC determines if the search for a candidate node is to stop if badrpc is received at some point.

The cookie on the client node is set to Cookie for this rpc operation (used to match the server node cookie).

Link to this function

call(Node, Module, Function, Args)

View Source

call(Node, Module, Function, Args) -> term() | {badrpc, Reason}

Same as call(Node, Module, Function, Args, infinity).

Link to this function

call(Node, Module, Function, Args, TimeOut)

View Source

call(Node, Module, Function, Args, TimeOut) -> term() | {badrpc, Reason}

Evaluates apply(Module, Function, Args) on the node Node. Returns either whatever Function returns, or {badrpc, Reason} if the remote procedure call fails. If Node is {Fun, FunArgs}, applying Fun to FunArgs is to return a node name.

call(Node, Module, Function, Args, TimeOut, Cookie) -> term() | {badrpc, Reason}

Evaluates apply(Module, Function, Args) on the node Node. Returns either whatever Function returns, or {badrpc, Reason} if the remote procedure call fails. If Node is {Fun, FunArgs}, applying Fun to FunArgs is to return a node name.

The cookie on the client node is set to Cookie for this rpc operation (used to match the server node cookie).

Link to this function

cast(Node, Module, Function, Args)

View Source

cast(Node, Module, Function, Args) -> ok

Evaluates apply(Module, Function, Args) on the node Node. No response is delivered and the process that makes the call is not suspended until the evaluation is completed as in the case of call/3,4. If Node is {Fun, FunArgs}, applying Fun to FunArgs is to return a node name.

cast(Node, Module, Function, Args, Cookie) -> ok

Evaluates apply(Module, Function, Args) on the node Node. No response is delivered and the process that makes the call is not suspended until the evaluation is completed as in the case of call/3,4. If Node is {Fun, FunArgs}, applying Fun to FunArgs is to return a node name.

The cookie on the client node is set to Cookie for this rpc operation (used to match the server node cookie).