Archive of UserLand's first discussion group, started October 5, 1998.

Re: any servers for testing xml-rpc?

Author:Samuel Reynolds
Posted:9/29/1999; 10:54:28 AM
Topic:any servers for testing xml-rpc?
Msg #:11605 (In response to 11601)
Prev/Next:11604 / 11606

You can do a loop-back test on a single machine. That's what I'm doing for my Software Directory web app. This is abstracted from one of my tests:

on TestMyRPC()
      params = {}
   new( tableType, @argsTable )
   << set up parameters in params
   . . .
      myIPAddress = tcp.addressDecode( tcp.myAddress() )
      myPort = user.inetd.config.http.port
      replyTable = betty.rpc.client( myIPAddress, myPort, "myRPC", @params )
   system.temp.TestMyRPC_replyTable = replyTable
   edit( @system.temp.TestMyRPC_replyTable )

This is, of course, only an example. You can make the script as complex as you like. The original from which this was abstracted, for example, took parameters, to make it more flexible. Also, in order to automate the test (for regression testing), you could compare the replyTable with the expected value (for example).

- Sam

This page was archived on 6/13/2001; 4:52:52 PM.

© Copyright 1998-2001 UserLand Software, Inc.