Re: Strange web service testing problems.

JM
2007-04-05T02:44:38Z

Michael,

If you are interested in a utility to test your web service, I would
suggest DigitForge''s Visual Web Service Client application.
Completely eliminate the need to develop test harnesses, unless of
course that is a requirement :)

DigitForge: http://www.digitforge.com.

VWS has a free trial that you can download to test against your web
service.  Can also check out the movie here:
http://digitforge.com/downloads/vwsoverview.wvx
.

Hope that helps.



On Mar 22, 8:40 am, Michael
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:
> I seem to be having some strange problems with functionally
testingwebservices.
>
> For some reason when I assert_routing of awebservice called test with
> a method test:
>
> options = {:controller => "test", :action =>
"test"}
> assert_routing "test/test", options
>
> all is fine.
>
> But once Iinvokethe method test from my test class I get a routing
> error.
>
> require File.dirname(__FILE__) + ''/../test_helper''
> require ''test_controller''
>
> class TestController; def rescue_action(e) raise e end; end
>
> class TestControllerApiTest < Test::Unit::TestCase
>   def setup
>     @controller = TestController.new
>     @request    = ActionController::TestRequest.new
>     @response   = ActionController::TestResponse.new
>   end
>
>   # passes
>   def test_routing
>     options = {:controller => "test", :action =>
"test"}
>     assert_routing "test/test", options
>   end
>
>   # routing error
>   def test_test
>    invoke:test
>   end
> end
>
> and here is the error:
>
> Loaded suite test/functional/test_api_test
> Started
> .E
> Finished in 0.062193 seconds.
>
>   1) Error:
> test_test(TestControllerApiTest):
> ActionController::RoutingError: Need controller and action!
>
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/routing.rb:1256:in
> `generate''
>
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/url_rewriter.rb:104:in
> `rewrite_path''
>
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/url_rewriter.rb:69:in
> `rewrite''
>
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:522:in
> `url_for''
>
/Users/mbrio/Documents/Source/livegames-network/config/../app/controllers/application.rb:93:in
> `remember_location''
>
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:456:in
> `send''
>
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:456:in
> `call''
>
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:450:in
> `call''
>
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:637:in
> `call_filter''
>
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:638:in
> `call_filter''
>
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:449:in
> `call''
>
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:637:in
> `call_filter''
>
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:619:in
> `perform_action_without_benchmark''
>
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:66:in
> `perform_action_without_rescue''
>     /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure''
>
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:66:in
> `perform_action_without_rescue''
>
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/rescue.rb:83:in
> `perform_action''
>
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:in
> `send''
>
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:in
> `process_without_filters''
>
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:624:in
> `process_without_session_management_support''
>
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/session_management.rb:114:in
> `process_without_test''
>
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/test_process.rb:15:in
> `process''
>
/usr/local/lib/ruby/gems/1.8/gems/actionwebservice-1.2.3/lib/action_web_service/test_invoke.rb:10:in
> `invoke''
>     test/functional/test_api_test.rb:19:in `test_test''
>
> Any help would be greatly appreciated.
>
> --
> Posted viahttp://www.ruby-forum.com/.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---