John Lowenthal
Cattle rancher, general guru of all things digital.
Yahoo Messenger: jlowenth25
Jabber/GTalk: johnlowenthal
AIM: pditty9600
Posts by John Lowenthal
Easy Tool for Generic HTTP Interface Testing
Jan 26th
Working on my first CloudCraze project, I’ve come across the unfortunate fact that SF does not allow callouts in the unit tests, so interface testing is kind of cludgy (see ShippingAndHandlingFedExServiceTest.cls for example of what I mean). I know one solution would be to use the Run Anonymous functionality to test a small chunk of code, but I really wanted a very easy non-SF specific way just to quickly test requests and responses rapidly.
There may exist tools for this as there are for testing SOAP calls, but I couldn’t find any generic ones readily. That in mind, I whipped up a simple HTML applet to do this. It’s nothing fancy; it takes as input an endpoint URL and the request query string, makes an AJAX POST, and returns whatever response was given from the service. More >
