Quality Testing

Quality is delighting customers

Hello friends,

                   I make a script & i got a error that is [error] Timed out after 30000ms,i m also set his default to 120000 etc but this error is not resolve by me ,if any one know please help me.

 

thanks

Views: 109

Reply to This

Replies to This Discussion

Please send u r script once...
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="" />
<title>New Test</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">New Test</td></tr>
</thead><tbody>
<tr>
    <td>open</td>
    <td>/schedule_dashboard</td>
    <td></td>
</tr>
<tr>
    <td>click</td>
    <td>link=Table view</td>
    <td></td>
</tr>
<tr>
    <td>clickAndWait</td>
    <td>//div[@id='table_view_div']/table[2]/tbody/tr/td[6]/a/img</td>
    <td></td>
</tr>
<tr>
    <td>clickAndWait</td>
    <td>link=Properties</td>
    <td></td>
</tr>
<tr>
    <td>clickAndWait</td>
    <td>//div[@id='property_div']/table[2]/tbody/tr/td[4]/a</td>
    <td></td>
</tr>
<tr>
    <td>clickAndWait</td>
    <td>link=My Account</td>
    <td></td>
</tr>
<tr>
    <td>click</td>
    <td>user_hide_customer_functionality</td>
    <td></td>
</tr>
<tr>
    <td>clickAndWait</td>
    <td>//input[@type='image']</td>
    <td></td>
</tr>

</tbody></table>
</body>
</html>
Are you running script in IDE?? may be xpath code is problem...change the Xpath code...
i changed xpath code but this is not the solution i think
i changed xpath code but this is not the solution i think
Can u share the site which u r testing? if possible i will try to record and play back,....

The timeout is generally caused by a WaitForPageToLoad command being fired when no page submission has happened, so there does not need to be a wait.

 

For example, if you click on a link using selenium, then you will want to execute a WaitForPageToLoad so that the next page can be fully loaded before test execution continues.

 

On the other hand, if you select an item from a select list, then you should not be executing the WaitForPageToLoad because there is no submission and thus, no need to wait for the next page to fully load.

hello,

      i am try to install selenium Rc on my machineby follow this link

                 http://www.seleniumwiki.com/software-testing/selenium-rc/how-to-ins...

& i got this error

C:\selenium>ruby googlesearch.rb
Loaded suite googlesearch
Started
E
Finished in 1.009 seconds.

  1) Error:
test_untitled(Untitled):
Errno::ECONNREFUSED: No connection could be made because the target machine acti
vely refused it. - connect(2)
    c:/ruby/lib/ruby/1.8/net/http.rb:564:in `initialize'
    c:/ruby/lib/ruby/1.8/net/http.rb:564:in `open'
    c:/ruby/lib/ruby/1.8/net/http.rb:564:in `connect'
    c:/ruby/lib/ruby/1.8/timeout.rb:56:in `timeout'
    c:/ruby/lib/ruby/1.8/timeout.rb:76:in `timeout'
    c:/ruby/lib/ruby/1.8/net/http.rb:564:in `connect'
    c:/ruby/lib/ruby/1.8/net/http.rb:557:in `do_start'
    c:/ruby/lib/ruby/1.8/net/http.rb:546:in `start'
    c:/ruby/lib/ruby/1.8/net/http.rb:1044:in `request'
    c:/ruby/lib/ruby/1.8/net/http.rb:854:in `post'
    c:/ruby/lib/ruby/gems/1.8/gems/selenium-client-1.2.18/lib/selenium/client/pr
otocol.rb:89:in `http_post'
    c:/ruby/lib/ruby/gems/1.8/gems/selenium-client-1.2.18/lib/selenium/client/pr
otocol.rb:12:in `remote_control_command'
    c:/ruby/lib/ruby/1.8/timeout.rb:56:in `timeout'
    c:/ruby/lib/ruby/1.8/timeout.rb:76:in `timeout'
    c:/ruby/lib/ruby/gems/1.8/gems/selenium-client-1.2.18/lib/selenium/client/pr
otocol.rb:11:in `remote_control_command'
    c:/ruby/lib/ruby/gems/1.8/gems/selenium-client-1.2.18/lib/selenium/client/pr
otocol.rb:19:in `string_command'
    c:/ruby/lib/ruby/gems/1.8/gems/selenium-client-1.2.18/lib/selenium/client/ba
se.rb:85:in `start_new_browser_session'
    googlesearch.rb:14:in `setup'

1 tests, 1 assertions, 0 failures, 1 errors

 

please resolve this issues if any one know

 

Thanks

RSS

TTWT Magazine


Advertisement

Advertisement

Advertisement

Advertisement

© 2022   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service