Time Out Error

21 views
Skip to first unread message

Soumya

unread,
Jun 22, 2011, 6:08:40 AM6/22/11
to Fitnium
Hi, while running the test each time there is Time out error. I
tried increasing the time but still it continues. How can i solve this.

Keith Sterling

unread,
Jun 22, 2011, 6:28:00 AM6/22/11
to Fitnium
Hi Souyma

So I'll need a little bit more info to help

Where is it timing out, on which Fitnium API call

Can you post the stack trace

K

Soumya Pattanayak

unread,
Jun 22, 2011, 6:28:08 AM6/22/11
to fit...@googlegroups.com

Soumya Pattanayak

unread,
Jun 22, 2011, 6:49:55 AM6/22/11
to fit...@googlegroups.com
Hi,
    The script is showing timeout error at  wait For Page To Load For 180 seconds.
  
| script | Base Fitnium Fixture |
| the server is located at | localhost |
| the server is on port | 4444 |
| using the browser | *firefox | start at | www.google.com |
|check | is selenium initialised | true |
|wait For Page To Load For | 180 | seconds |
|set speed to |50| milliseconds |
|set timeout to |50000| milliseconds |
|write to debug | starting test |

--
You received this message because you are subscribed to the Google
Groups "Fitnium" group.
To post to this group, send email to fit...@googlegroups.com
To unsubscribe from this group, send email to
fitnium+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/fitnium?hl=en

Fitnium is hosted at http://www.magneticreason.com/tools/fitnium/fitnium.html

Keith Sterling

unread,
Jun 22, 2011, 6:58:35 AM6/22/11
to Fitnium
Thats because you have not opened a page yet, so there is nothing to
wait for, but Selenium doesn't knwo this, the API

| using the browser | *firefox | start at |www.google.com|

Only configures fitnium/selenium to a base point, you then need to
issue an
I'm guessing you have copied the example from the documentation, but
you have copied only the initialisation section

If you go to the FitniumUserGuide.SlimGuides.FirstTest page, you will
see there are 2 scripts, the first configures Selenium to start at
google.co.uk
The second script is the actual test part of the script and it
contains the API which is missing

| starting at URL | some url |

This could just be

| starting at URL | / |

Keith

Soumya Pattanayak

unread,
Jun 22, 2011, 7:14:28 AM6/22/11
to fit...@googlegroups.com
I had only mentioned the 1st script but i also have another script where i'm searching some text mentioning in the textbox and clicking on the search button but error is on page to load.
And yes as i'm new to Fitnium i had copied from User guide too.

Keith Sterling

unread,
Jun 22, 2011, 7:16:15 AM6/22/11
to Fitnium
Remove the line

|wait For Page To Load For | 180 | seconds |

From the first page, at this stage in the script there is no page to
view or load

Soumya Pattanayak

unread,
Jun 22, 2011, 7:29:28 AM6/22/11
to fit...@googlegroups.com
Hi,
    Again in this second script i'm getting exception at the 2 wait for page to load for statement.

| script | Base Fitnium Fixture |
|starting at URL| / |
|enter |Magnetic Reason| in input field | xpath=//input[@name='q']|
|click element | btnG |
|wait For Page To Load For | 5 | seconds |
|click link | xpath=//a[em='Magnetic Reason'][1] |
|wait For Page To Load For | 15 | seconds |
|check|title of current page | Magnetic Reason |
|write to debug | test complete |

Keith Sterling

unread,
Jun 22, 2011, 7:51:45 AM6/22/11
to Fitnium
When you watch the script, do you see it actually go to the next page,
does the Magnetic Reason website appear

Soumya Pattanayak

unread,
Jun 22, 2011, 9:02:28 AM6/22/11
to fit...@googlegroups.com
Hi,
   I'm trying the 1st test given in the User guide. But sometimes it is working with only 1 exception of not getting the link and sometime its showing 4 exception of time out and also button not found.
Also sometimes the Magnetic reason page opens and sometime does not.

Soumya Pattanayak

unread,
Jun 23, 2011, 8:23:33 AM6/23/11
to fit...@googlegroups.com
Hi,
   I'm trying to check links on a page and using the command

| check does link with ids | id="Courses for Professionals"|exist| true|

i also tried this giving xpath and using command check is element present but there is error. Pls help me in this matter.

Soumya Pattanayak

unread,
Jun 27, 2011, 3:14:34 AM6/27/11
to fit...@googlegroups.com
Hi,

    Can u pls help me out in checking a link.
When i'm clicking on a link it does not go to that page. It remains on the same page.
Reply all
Reply to author
Forward
0 new messages