I should have been more specific. J Thanks for the response, Andy – that’s
pretty much what I’m doing at the moment, but for the result string, I
get “ERROR: Result queue was empty”. The server is up and running, but I’m
not sure I’m actually connecting to the server. My code is as follows: protected void setUp() throws
Exception { super.setUp(); xmlrpc = new XmlRpcClient("http://localhost:8080/selenium-driver/RPC2"); } protected void tearDown() throws
Exception { super.tearDown(); } public void testTitle() throws
Exception { Vector
params = new Vector(); params.addElement("http://localhost/EntryServlet/bootstrap?initialRequest=true"); //
this method returns a string String
result = (String) xmlrpc.execute("open", params); Vector
params2 = new Vector(); params2.addElement("Login Page"); String
result2 = (String) xmlrpc.execute("verifyTitle",
params2); assertTrue(result2.equalsIgnoreCase("true")); } -dmg -----Original Message----- This is what has worked
for me. It’s all localhost for me. Using Apache’s
XML-RPC client
XmlRpcClient server = null;
server = new
XmlRpcClient("http://localhost:8080/selenium-driver/RPC2"); String command = “open”;
Vector params = new Vector();
params.addElement(“http://localhost/TestPage.html”);
String result = (String) server.execute(command, params);
if (result.equals("PASSED") || result.equals("OK") ||
result.equals("test complete"))
// passed
Else
// failed Hope it helps Andy O From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David Goudreau Does anyone have an example of
running the Selenium Server and calling it using XML-RPC from Java? I
looked at the Perl example, but couldn’t seem to get Java to communicate
with the Selenium Server and pull up a page. TIA. -dmg (415) 403-6706 |
_______________________________________________ Selenium-users mailing list Selenium-users@lists.public.thoughtworks.org http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users