error while running same as selenium project from xml file

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

error while running same as selenium project from xml file

maddy1
hi tarun,
   when i run the java project  by right clicking on xml file and run it as testng . it doesn't execute anything and just skips the methods inside the "@Test" attribute .


i have attached the project . bcos everything is replica of the selenium project and the only change i did is with the google login page .

Google.zip


thanks
Reply | Threaded
Open this post in threaded view
|

Re: error while running same as selenium project from xml file

softwaretestingforum
Administrator
Hello Madhukar,

Can you post the stack trace of error?
Also -

 1. Can you try to right click on test method and execute test?
 1. Can you try to execute test from testng eclipse plugin - http://testng.org/doc/eclipse.html
~ seleniumtests.com
Reply | Threaded
Open this post in threaded view
|

Re: error while running same as selenium project from xml file

maddy1
tarun,

i tried the following

 1. Can you try to right click on test method and execute test? -> tried and copied the stack trace below
 1. Can you try to execute test from testng eclipse plugin - http://testng.org/doc/eclipse.html
here is the stack trace. - > installed testng eclipse plugin and the project u provided works fine but im encountering this error which i searched and it says i need to update my Firefox version which i already have as im running on FF v16.0.2 ,selenium server jar version is 2.21.0.

org.openqa.selenium.WebDriverException: Unable to bind to locking port 7054 within 45000 ms
Build info: version: '2.21.0', revision: '16552', time: '2012-04-11 19:08:38'
System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', java.version: '1.6.0_07'
Driver info: driver.version: FirefoxDriver
        at org.openqa.selenium.internal.SocketLock.lock(SocketLock.java:95)
        at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:69)
        at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:200)
        at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:94)
        at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:147)
        at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:85)
        at com.Selenium.Tests.tests.launchBrowser(tests.java:23)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
        at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:564)
        at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213)
        at org.testng.internal.Invoker.invokeMethod(Invoker.java:653)
        at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
        at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
        at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
        at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
        at org.testng.TestRunner.privateRun(TestRunner.java:767)
        at org.testng.TestRunner.run(TestRunner.java:617)
        at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
        at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
        at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
        at org.testng.SuiteRunner.run(SuiteRunner.java:240)
        at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
        at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
        at org.testng.TestNG.runSuitesSequentially(TestNG.java:1197)
        at org.testng.TestNG.runSuitesLocally(TestNG.java:1122)
        at org.testng.TestNG.run(TestNG.java:1030)
        at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)
        at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)
        at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)
Reply | Threaded
Open this post in threaded view
|

Re: error while running same as selenium project from xml file

maddy1
tarun , it works now .

updated the selenium server standalone server.jar to version 2.26.0
Reply | Threaded
Open this post in threaded view
|

Re: error while running same as selenium project from xml file

softwaretestingforum
Administrator
Good to know
~ seleniumtests.com