CSE 4939 Alex Riordan Brian Pruitt-Goddard. Remote Unit Testing. Design an interactive source control application that works between an android phone and a project located on a remote server.
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
Remote Unit Testing
Design an interactive source control application that works between an android phone and a project located on a remote server.
Use XML-RPC to send data over HTTP encoded as XML.
Simple and light-weight
Works across different OS and environments
Supports complex data structures
Call server methods from client (RPC)
How to communicate between client and server? XML-RPC!
Use android-xmlrpc library
XMLRPCClientclient = newXMLRPCClient("http://foo.bar.com");
//Call the add server function with params 2 and 4
intsum = (Integer) client.call("add", 2, 4);
Use Apache XML-RPC
//Create WebServer at specified port number
WebServerwebServer = newWebServer(8888);
XmlRpcServerxmlRpcServer = webServer.getXmlRpcServer();
//Create property mapping to Foo class
PropertyHandlerMappingphm = newPropertyHandlerMapping();
Phone with Android version 2.2
Access to Project/SVN server
Phone is connected to the Internet
Assumptions and Dependencies
UI should be responsive
Server has to respond to client within reasonable amount of time
If it is operating on a large program, give some indication of progress
Simple and intuitive client
Server handles file errors and outputs meaningful error message
Reliable source control operations
Basic Android functionality
Server and Client talking
Able to call server methods from client and get results
Be able to transmit objects (files) over connection
Have server compile and run java file and pipe output
Handle output at server and report it to client