TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Jun 2017 |
Maintained by house of pods.
Depends on: | |
JSONRPCom | >= 0 |
SocketRocket | >= 0 |
OCMockito | >= 0 |
##Intro Silent Runner is a testing tool for iOS to trigger some method calls remotely
Idea is simple:
Useful for
Samples of messages:
{
"jsonrpc": "2.0",
"method": "execute",
"params": {
"commandId": "app",
"method": "application:didReceiveRemoteNotification:fetchCompletionHandler:",
"arguments": [{
"class": "UIApplication",
"properties": [{
"name": "delegate",
"value": "https://github.com/andrewBatutin/SilentRunner"
}],
"methods": [{
"name": "isIgnoringInteractionEvents",
"returnValue": "YES"
}]
}, {
"value": {
"opt1": "test"
}
},
{
"block": {
"returnValue": "notUsed"
}
}]
}
}
// register your app delegate to be callable from test server
[SRClientPool addClient:[UIApplication sharedApplication].delegate forTag:@"app"];
// create server instance
self.serv = [SRServer serverWithURL:@"ws://localhost:9000/chat" withErrorHandler:^(NSError * error) {
[self.serv sendErrorMessage:error];
}];
// run the engine
[self.serv runServer];
If you'r testing some method make sure you've implemented it in your app.
So for push notifications check if you have application:didReceiveRemoteNotification:fetchCompletionHandler:
implemented
###Dependencies
###TODO