ruby on rails - Using cucumber and Rspec to develop a SOAP client with BDD -


As a learning experience, I am developing a small Rail application that is an existing SOAP API / Web service Handsoap gem) and will present just one user gathered information.

I like to use rspec and is being used for cucumber testing of my applications. The part which has stumped me is to check the conversation with the API, meaning 'non-presentation' part of leaving XML requests and reactions.

Any tips and hints have been given!

Thank you!

Take a look at the gem.

This network helps stub the interoperability, that is, you can create test responses:

  FakeWeb.register_uri (: "http://example.com/ Test1 ",: body = & gt; Hello World!))  

and the inability to send http requests:

  FakeWeb.allow_net_connect = false nets :: HTTP.get (URI.parse ("HTTP://example.com/") => FakeWeb :: increases NetConnectNotAllowedError  

Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -