Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 3b5b26510f
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (20 sloc) 0.923 kb
Feature: XML-RPC client
As a user of the cxml-rpc library, I want to call methods on the
remote endpoint.
Scenario: Call a method without arguments
Given an external XML-RPC server is running
Given the external server has a method "hello" defined following this scheme:
| returns |
| "Hello World" |
When I call the method "hello" with no arguments
Then the return value should be the string "Hello World"
Scenario: Call a method with two integer arguments
Given an external XML-RPC server is running
Given the external server has a method "add" defined following this scheme:
| a | b | returns |
| 1 | 2 | 3 |
| 5 | 402 | 407 |
When I call the method "add" with arguments (:integer 1 :integer 2)
Then the return value should be the integer 3
When I call the method "add" with arguments (:integer 5 :integer 402)
Then the return value should be the integer 407
Jump to Line
Something went wrong with that request. Please try again.