On 10 Jun 2010, at 15:12, doug livesey wrote: > However a little fake web service that simply read pre-recorded or > constructed responses from a local file (or symlink to one of several > potential files) could work. > Then, in my cuke features, I could say "Given the service will return typical > data" (or whatever), and have the corresponding step make the fake web > service's symlink to a file of fixture responses that suit. > See, I like this idea, which immediately makes me suspicious of it.
I've done something along these lines before. If a file (tmp/warren.test iirc) existed then the adapter read it and returned the data in it as a response instead of connecting to the service (RabbitMQ in this case.) Was to work around running a separate server for cucumber using culerity/celerity if I remember rightly. Couldn't mock the adapter, but could have any response returned we wanted to at the time this way. C --- Caius Durling [email protected] +44 (0) 7960 268 100 http://caius.name/ -- You received this message because you are subscribed to the Google Groups "NWRUG" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nwrug-members?hl=en.
