Re: [wtr-general] Re: execution expired

2010-03-02 Thread windy

I just see the source code of watir's ie.wait().
according to your description,the doc should load completely.

i think there maybe a activex control that can't be loaded or not loaded.

please check the page code if it like this: 'new activex()'.

at last,you can test it directly again but not from proxy.

hope it is useful for you.


在 Tue, 02 Mar 2010 03:16:30 +0800,hliauw hli...@gmail.com 写道:


Windy, thanks a bunch.
toutval is currently set to 30s and 40s respectively. The url is an
internal test page with just 9 images in it. I tested the url manually
from the same machine and it loads within 1-2s. I should say that we
are actually using watir+browser to test a proxy server so there is a
possibility of an error there. However, we already looked at the proxy
logs and it shows that it already sent all the images back to the
browser.




On Mar 1, 12:27 pm, windy lyfi2...@sina.com wrote:
method Timeout::timeout throw Timeout::Erorr exceptions,it happens if  
browser can't open or open it too slow.


you should test the url manual,or increase var 'toutval'.

ÔÚ Tue, 02 Mar 2010 01:17:53 +0800£¬hliauw hli...@gmail.com дµÀ:



 Hi, can somebody help me understand the following exceptions?  it
 happened on both ie and firefox goto call.

 E, [2010-03-01T04:11:28.918000 #2884] ERROR -- : Exception in goto:
 execution expired: [C:/Ruby/lib/ruby/1.8/timeout.rb:60:in `wait',
 C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ie-class.rb:
 355:in `goto', C:\\myFolder/myWrapperFile.rb:64:in `goto',  
C:/Ruby/

 lib/ruby/1.8/timeout.rb:62:in `timeout', C:\\myFolder/
 myWrapperFile.rb:62:in `goto', C:/myFolder/myTestFile1.rb:30]

 E, [2010-02-27T04:13:58.575000 #3888] ERROR -- : Exception in goto:
 execution expired: [C:/Ruby/lib/ruby/1.8/timeout.rb:60:in
 `read_socket', C:/Ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/
 firewatir/jssh_socket.rb:6:in `js_eval', C:/Ruby/lib/ruby/gems/1.8/
 gems/firewatir-1.6.5/lib/firewatir/firefox.rb:492:in `wait',  
C:/Ruby/

 lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/firefox.rb:196:in
 `goto', C:\\myFolder/myWrapperFile.rb:64:in `goto', C:/Ruby/lib/
 ruby/1.8/timeout.rb:62:in `timeout', C:\\myFolder/myWrapperFile.rb:
 62:in `goto', C:/myFolder/myTestFile2.rb:26]

 here is the relevant code in myWrapperFile.rb starting from line 62:
 Timeout::timeout(toutval) do
   begin
 browser.goto(url)
   rescue Timeout::Error
 logger.error(goto call got hung after #{toutval}s);
   rescue Exception = e
 logger.error(Exception in goto: #{e.message}:
 #{e.backtrace.inspect});
   end
 end

--
ʹÓà Opera ¸ïÃüÐԵĵç×ÓÓʼþ¿Í»§³ÌÐò:http://www.opera.com/mail/





--
使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/

--
You received this message because you are subscribed to the Google Groups Watir 
General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


[wtr-general] Re: execution expired

2010-03-01 Thread hliauw
Windy, thanks a bunch.
toutval is currently set to 30s and 40s respectively. The url is an
internal test page with just 9 images in it. I tested the url manually
from the same machine and it loads within 1-2s. I should say that we
are actually using watir+browser to test a proxy server so there is a
possibility of an error there. However, we already looked at the proxy
logs and it shows that it already sent all the images back to the
browser.




On Mar 1, 12:27 pm, windy lyfi2...@sina.com wrote:
 method Timeout::timeout throw Timeout::Erorr exceptions,it happens if  
 browser can't open or open it too slow.

 you should test the url manual,or increase var 'toutval'.

 ÔÚ Tue, 02 Mar 2010 01:17:53 +0800£¬hliauw hli...@gmail.com дµÀ:



  Hi, can somebody help me understand the following exceptions?  it
  happened on both ie and firefox goto call.

  E, [2010-03-01T04:11:28.918000 #2884] ERROR -- : Exception in goto:
  execution expired: [C:/Ruby/lib/ruby/1.8/timeout.rb:60:in `wait',
  C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ie-class.rb:
  355:in `goto', C:\\myFolder/myWrapperFile.rb:64:in `goto', C:/Ruby/
  lib/ruby/1.8/timeout.rb:62:in `timeout', C:\\myFolder/
  myWrapperFile.rb:62:in `goto', C:/myFolder/myTestFile1.rb:30]

  E, [2010-02-27T04:13:58.575000 #3888] ERROR -- : Exception in goto:
  execution expired: [C:/Ruby/lib/ruby/1.8/timeout.rb:60:in
  `read_socket', C:/Ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/
  firewatir/jssh_socket.rb:6:in `js_eval', C:/Ruby/lib/ruby/gems/1.8/
  gems/firewatir-1.6.5/lib/firewatir/firefox.rb:492:in `wait', C:/Ruby/
  lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/firefox.rb:196:in
  `goto', C:\\myFolder/myWrapperFile.rb:64:in `goto', C:/Ruby/lib/
  ruby/1.8/timeout.rb:62:in `timeout', C:\\myFolder/myWrapperFile.rb:
  62:in `goto', C:/myFolder/myTestFile2.rb:26]

  here is the relevant code in myWrapperFile.rb starting from line 62:
  Timeout::timeout(toutval) do
    begin
      browser.goto(url)
    rescue Timeout::Error
      logger.error(goto call got hung after #{toutval}s);
    rescue Exception = e
      logger.error(Exception in goto: #{e.message}:
  #{e.backtrace.inspect});
    end
  end

 --
 ʹÓà Opera ¸ïÃüÐԵĵç×ÓÓʼþ¿Í»§³ÌÐò:http://www.opera.com/mail/

-- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general