Classes
The following classes are available globally.
-
See moreStubResponse
is the base response to simulateURLResponses
. It defines the HTTP Status code, the Responder Header and Body. It can also define a delay in seconds, simulating delayed server responses.Declaration
Swift
open class StubResponse
-
Defines the main Stub Server object. It can be subclassed to provide various other types of local server.
See moreDeclaration
Swift
public class StubServer
-
The
UITestResponse
is the base response forUITestServer
. It contains methods to send the response data to the Local Server. This type also provides support to the concept of states for simulating Stateful behaviors- Basics: http://orca.st.usm.edu/~seyfarth/network_pgm/net-6-3-3.html
- Concept: https://en.wikipedia.org/wiki/State_(computer_science)
The response can be tied to a initial state and be connected to a next state, creating a state chain if needed.
See moreDeclaration
Swift
public final class UITestResponse : StubResponse