Web tests not running anymore

130 views
Skip to first unread message

Shaun Wiseman

unread,
Jul 5, 2012, 7:43:16 AM7/5/12
to seleniu...@googlegroups.com
Hi all,

        When I was running tests Firefox automatically updated to 13.0  so i uninstalled it and re-installed Firefox 11.0. Since then my tests wont run. I just get this:

Running GenericeVoucherWebDriverTests.GenericeVoucherWebDriverTests.AppTest
org.apache.maven.surefire.util.SurefireReflectionException: java.lang.reflect.In
vocationTargetException; nested exception is java.lang.reflect.InvocationTargetE
xception: null
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(
ReflectionUtils.java:164)
        at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke
(ProviderFactory.java:110)
        at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(Suref
ireStarter.java:175)
        at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWh
enForked(SurefireStarter.java:107)
        at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:
68)
Caused by: org.testng.TestNGException:
Cannot instantiate class GenericeVoucherWebDriverTests.GenericeVoucherWebDriverT
ests.AppTest
        at org.testng.internal.ObjectFactoryImpl.newInstance(ObjectFactoryImpl.j
ava:37)
        at org.testng.internal.ClassHelper.createInstance1(ClassHelper.java:372)

        at org.testng.internal.ClassHelper.createInstance(ClassHelper.java:284)
        at org.testng.internal.ClassImpl.getDefaultInstance(ClassImpl.java:109)
        at org.testng.internal.ClassImpl.getInstances(ClassImpl.java:181)
        at org.testng.internal.TestNGClassFinder.<init>(TestNGClassFinder.java:1
20)
        at org.testng.TestRunner.initMethods(TestRunner.java:402)
        at org.testng.TestRunner.init(TestRunner.java:228)
        at org.testng.TestRunner.init(TestRunner.java:198)
        at org.testng.TestRunner.<init>(TestRunner.java:147)
        at org.testng.SuiteRunner$DefaultTestRunnerFactory.newTestRunner(SuiteRu
nner.java:525)
        at org.testng.SuiteRunner.init(SuiteRunner.java:156)
        at org.testng.SuiteRunner.<init>(SuiteRunner.java:110)
        at org.testng.TestNG.createSuiteRunner(TestNG.java:1235)
        at org.testng.TestNG.createSuiteRunners(TestNG.java:1222)
        at org.testng.TestNG.runSuitesLocally(TestNG.java:1074)
        at org.testng.TestNG.run(TestNG.java:999)
        at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.ja
va:70)
        at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(Tes
tNGDirectoryTestSuite.java:109)
        at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider
.java:111)
        ... 9 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at org.testng.internal.ObjectFactoryImpl.newInstance(ObjectFactoryImpl.j
ava:28)
        ... 28 more
Caused by: org.openqa.selenium.WebDriverException: Unable to bind to locking por
t 7054 within 45000 ms
Build info: version: '2.2.1', revision: '16551', time: '2012-04-11 21:42:35'
System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', java.vers
ion: '1.5.0_05'
Driver info: driver.version: FirefoxDriver
        at org.openqa.selenium.internal.SocketLock.lock(SocketLock.java:95)
        at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.st
art(NewProfileExtensionConnection.java:69)
        at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.j
ava:200)
        at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.jav
a:94)
        at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:1
47)
        at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:8
5)
        at GenericeVoucherWebDriverTests.GenericeVoucherWebDriverTests.AppTest.<
init>(AppTest.java:33)
        ... 33 more

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 50.219s
[INFO] Finished at: Thu Jul 05 12:40:08 BST 2012
[INFO] Final Memory: 4M/8M
[INFO] ------------------------------------------------------------------------


Any ideas on how to fix it would be greatly appreciated.

Thanks,
Shaun

Krishnan Mahadevan

unread,
Jul 5, 2012, 7:47:32 AM7/5/12
to seleniu...@googlegroups.com
Shaun,
Can you please upgrade to Selenium 2.24.1 and retry ? I dont think 2.21.0 supports FF 13.
Also make sure you are clearing out all existing firefox profiles as well (Just in case they are still stuck in your system)

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"



--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/tJfQJXVAuRMJ.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en-US.

Shaun Wiseman

unread,
Jul 5, 2012, 7:56:15 AM7/5/12
to seleniu...@googlegroups.com
Thanks man, il do that now,

cheers,
Shaun
Reply all
Reply to author
Forward
0 new messages