Getting exceptions on running a test

67 views
Skip to first unread message

Simmi Singhal

unread,
Jul 5, 2011, 1:20:50 AM7/5/11
to fit...@googlegroups.com
Hi,

I'm getting following exceptions whenever I run any test in fitnium. Also its is taking too long to execute a test. Can you help me.

__EXCEPTION__:com.thoughtworks.selenium.SeleniumException: ERROR Server Exception: sessionId should not be null; has this session been started yet?
	at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:97)
	at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:91)
	at com.thoughtworks.selenium.DefaultSelenium.setContext(DefaultSelenium.java:699)
	at com.magneticreason.fitnium.api.FitniumDebugAPI.writeToDebug(FitniumDebugAPI.java:22)
	at com.magneticreason.fitnium.FitniumFixture.writeToDebug(FitniumFixture.java:162)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at fitnesse.slim.MethodExecutor.callMethod(MethodExecutor.java:47)
	at fitnesse.slim.MethodExecutor.invokeMethod(MethodExecutor.java:31)
	at fitnesse.slim.MethodExecutor.findAndInvoke(MethodExecutor.java:87)
	at fitnesse.slim.FixtureMethodExecutor.execute(FixtureMethodExecutor.java:18)
	at fitnesse.slim.StatementExecutor.call(StatementExecutor.java:155)
	at fitnesse.slim.Statement.callMethodAtIndex(Statement.java:99)
	at fitnesse.slim.Statement.call(Statement.java:92)
	at fitnesse.slim.Statement.execute(Statement.java:72)
	at fitnesse.slim.ListExecutor.execute(ListExecutor.java:36)
	at fitnesse.slim.SlimServer.executeInstructions(SlimServer.java:93)
	at fitnesse.slim.SlimServer.processTheInstructions(SlimServer.java:78)
	at fitnesse.slim.SlimServer.processOneSetOfInstructions(SlimServer.java:69)
	at fitnesse.slim.SlimServer.tryProcessInstructions(SlimServer.java:55)
	at fitnesse.slim.SlimServer.serve(SlimServer.java:30)
	at fitnesse.socketservice.SocketService$ServerRunner.run(SocketService.java:95)
	at java.lang.Thread.run(Unknown Source)

Keith Sterling

unread,
Jul 5, 2011, 9:36:53 AM7/5/11
to Fitnium
Looks like Selenium server is not running, have you run all three
batch files, runFitnesse.cmd, runSelenium.cmd and runJetty.cmd

K

Simmi Singhal

unread,
Jul 5, 2011, 9:41:21 AM7/5/11
to fit...@googlegroups.com
yes I ran runAll.bat file

--
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



--
--
Regards,
Simmi Singhal
Programmer (Trainee)
Xebia IT Architects India Pvt. Ltd.
Gurgaon, Haryana

Keith Sterling

unread,
Jul 5, 2011, 9:44:59 AM7/5/11
to Fitnium
Did you check the that it actually started and was showing no
exceptions in the Selenium windows

Just need to make sure that port 4444 is available for Selenium to use

What operating system are you using XP, Vista or 7

K

Keith Sterling

unread,
Jul 5, 2011, 9:51:07 AM7/5/11
to Fitnium
OK, you'll need to send the script for me to see where its going wrong

Simmi Singhal

unread,
Jul 5, 2011, 9:53:24 AM7/5/11
to fit...@googlegroups.com
I'm unable to test the examples present in fitnium userguide. The browser gets opened up but nothing happens after that. :(

Keith Sterling

unread,
Jul 5, 2011, 9:58:19 AM7/5/11
to Fitnium
Do you have firefox installed on your system the scripts default to
use firefox 3 ?

Try changing *firefox or *chrome in the test to *iexplore

Simmi Singhal

unread,
Jul 5, 2011, 10:04:57 AM7/5/11
to fit...@googlegroups.com
Yes its working fine with explorer but why not on firefox or chrome?

Simmi Singhal

unread,
Jul 5, 2011, 10:06:40 AM7/5/11
to fit...@googlegroups.com
After complete execution, getting following exception

__EXCEPTION__:com.thoughtworks.selenium.SeleniumException: Timed out after 5000ms
	at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:97)
	at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:91)
	at com.thoughtworks.selenium.DefaultSelenium.waitForPageToLoad(DefaultSelenium.java:635)
	at com.magneticreason.fitnium.api.FitniumWaitAPI.waitForPageToLoadForSeconds(FitniumWaitAPI.java:1314)
	at com.magneticreason.fitnium.FitniumFixture.waitForPageToLoadForSeconds(FitniumFixture.java:4530)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at fitnesse.slim.MethodExecutor.callMethod(MethodExecutor.java:47)
	at fitnesse.slim.MethodExecutor.invokeMethod(MethodExecutor.java:31)
	at fitnesse.slim.MethodExecutor.findAndInvoke(MethodExecutor.java:87)
	at fitnesse.slim.FixtureMethodExecutor.execute(FixtureMethodExecutor.java:18)
	at fitnesse.slim.StatementExecutor.call(StatementExecutor.java:155)
	at fitnesse.slim.Statement.callMethodAtIndex(Statement.java:99)
	at fitnesse.slim.Statement.call(Statement.java:92)
	at fitnesse.slim.Statement.execute(Statement.java:72)
	at fitnesse.slim.ListExecutor.execute(ListExecutor.java:36)
	at fitnesse.slim.SlimServer.executeInstructions(SlimServer.java:93)
	at fitnesse.slim.SlimServer.processTheInstructions(SlimServer.java:78)
	at fitnesse.slim.SlimServer.processOneSetOfInstructions(SlimServer.java:69)
	at fitnesse.slim.SlimServer.tryProcessInstructions(SlimServer.java:55)
	at fitnesse.slim.SlimServer.serve(SlimServer.java:30)
	at fitnesse.socketservice.SocketService$ServerRunner.run(SocketService.java:95)
	at java.lang.Thread.run(Unknown Source)

Keith Sterling

unread,
Jul 5, 2011, 10:07:29 AM7/5/11
to Fitnium
It would mean that firefox.exe and chrome.exe are either not
installed, or if they are they are not in your path

Selenium needs to know where to execute the selected browser and it
does this by picking them up from your path statement

K

Keith Sterling

unread,
Jul 5, 2011, 10:09:02 AM7/5/11
to Fitnium
That means one of the statements is timing out, can you tell me which
line in the test is timing out

If you could tell me which test you are running that would also help

K
> On Tue, Jul 5, 2011 at 4:04 PM, Simmi Singhal <singhal.si...@gmail.com>wrote:
>
>
>
>
>
>
>
>
>
> > Yes its working fine with explorer but why not on firefox or chrome?
>

Simmi Singhal

unread,
Jul 5, 2011, 10:17:41 AM7/5/11
to fit...@googlegroups.com
Do I need to install firefox 3.5.16 ?? Currently I have the latest one

On Tue, Jul 5, 2011 at 4:14 PM, Hanumath P Duvvuri <han...@gmail.com> wrote:
Try on firefox  3.5 .16 
On 5 July 2011 15:12, Simmi Singhal <singha...@gmail.com> wrote:
So what should I do to include them in path? Because both chrome and firefox are present on my machine

Hanumath P Duvvuri

unread,
Jul 5, 2011, 10:19:23 AM7/5/11
to fit...@googlegroups.com
yes Please. Try uninstall the latest one & install 3.5.16 and give a try just 

Keith Sterling

unread,
Jul 5, 2011, 10:20:57 AM7/5/11
to Fitnium


You don't need firefox 5 to run this, I am using firefox 4 for my
normal work and its fine, but also use 3 for lots of stuff to

Best thing to do is open a cmd prompt and type firefox.exe, if it
doesn't run then add the full path to firefox directory to your PATH
statement

K

Simmi Singhal

unread,
Jul 5, 2011, 10:24:58 AM7/5/11
to fit...@googlegroups.com
and what about chrome ? which version?


--
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

Simmi Singhal

unread,
Jul 5, 2011, 9:48:13 AM7/5/11
to fit...@googlegroups.com
No exceptions in the selenium window. I'm using windows XP

Simmi Singhal

unread,
Jul 5, 2011, 10:38:08 AM7/5/11
to fit...@googlegroups.com
Thank you for your help. Its working fine for firefox3 :)

Can you please tell me for which version of chrome I should run my tests??

Hanumath P Duvvuri

unread,
Jul 5, 2011, 10:14:57 AM7/5/11
to fit...@googlegroups.com
Try on firefox  3.5 .16 
On 5 July 2011 15:12, Simmi Singhal <singha...@gmail.com> wrote:
So what should I do to include them in path? Because both chrome and firefox are present on my machine

Simmi Singhal

unread,
Jul 5, 2011, 10:12:07 AM7/5/11
to fit...@googlegroups.com
So what should I do to include them in path? Because both chrome and firefox are present on my machine

Hanumath P Duvvuri

unread,
Jul 5, 2011, 10:42:52 AM7/5/11
to fit...@googlegroups.com

I never used it on Chrome , Please check this to make it work on other versions of Firefox
Reply all
Reply to author
Forward
0 new messages