java - Failure running junit test. Can`t create new browser session -


Eclipse Holeo; Jannit, Selenium-Java-Client-Driver, Selenium-Server Libs Added Libs for the project in the form of an external jar. Simple test written:

  import com.thoughtworks.selenium.SeleneseTestCase; Public class firstSTSelenstadt season {generates public zero set up (exceptions) {set up ("Nadoma.com", "* Googlechrome"); } Public Zero Test SigninIn () {String Login = "XXXXX"; String password = "XXXXXXXXXX"; Selenium.open ("nedoma.com.ua"); Selenium.click ("D £ Ð²Ñ ?? ÑÑ ?? D"); Selenium.type ("login", login); Selenium.type ("password", password); Selenium.submit ("D £ Ð²Ñ ?? ÑÑ ?? D"); Selenium.open ("http://nedoma.com.ua/settings/profile/"); AssertEquals (selenium.getText ("profile_name"). ToLowerCase (), login.toLowerCase ()); Selenium.close (); }   

Visit the satellite-server.jar in CMD "java -jar selenium-server.jar -multiwindow" as a test test in the form of a test test.

The problem is: Failure Detected:

  java.lang.RuntimeException: Could not start the Selenium session: Start a new browser session Failed to: Error while launching browser on com.thoughtworks. On selenium.DefaultSelenium.start (DefaultSelenium.java:89) com.thoughtworks.selenium.SeleneseTestBase.setUp (SeleneseTestBase.java:104) on com.thoughtworks on com.thoughtworks.selenium.SeleneseTestBase.setUp (SeleneseTestBase.java:123) on .selenium.SeleneseTestCase.setUp src.testSuit.FirstTest.setUp (SeleneseTestCase.java:78) (FirstTest.java:10) on junit.framework.TestCase.runBare (TestCase.java:132) on com.thoughtworks.selenium. SeleneseTestCase.runBare junit.framework.TestResult at $ 1.protect (SeleneseTestCase.java:212) (TestResult.java:110) junit.framework.TestResult.runProtected (TestResult.java:128) on junit.framework.TestResult.run Jr. Framework on (TestRe Sult.java113). Test Seas Rote (Testz.Jay 24) on Junior Framework. TestSite.Rent Test (TestSite.Java-43) on Junior Framework. TestSite Bread (Testsait. Java 14.) org.junit.internal.runners.JUnit38ClassRunner.run (JUnit38ClassRunner.java:83 on org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run) (JUnit4TestReference.java:46) org At .eclipse.jdt at On internal.junit.runner.TestExecution.run org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests (TestExecution.java:38) (RemoteTestRunner.java:467) on org.eclipse.jdt.internal.junit. On runner.RemoteTestRunner.runTests org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run (RemoteTestRunner.java:390) (RemoteTestRunner.java:683) on org.eclipse.jdt.internal.junit.runner.RemoteTestRunner. Reason by main (RemoteTestRunner.java197): com.thoughtworks.selenium.SeleniumException: failed to start a new browser session: Error while launching browser at com.thoughtworks.selenium HttpCommandProcessor.throwAssertionFailureExcepTionOrError at Com.thoughtworks.selenium (HttpCommandProcessor.java:97) com.thoughtworks.selenium.HttpCommandProcessor.doCommand (HttpCommandProcessor.java:91) com.thoughtworks.selenium.HttpCommandProcessor.getString com.thoughtworks.selenium.HttpCommandProcessor (HTTP compliant Processor. Java Som 62) Start at Com.thoughtworks.selenium.DefaultSelenium.start (DefaultSelenium.java:81) (HttpCommandProcessor.java Weak 23) ... 19 more   

what I have done? Please help. Waiting for any suggestions.

P.S. * Trying to use googlechrome * as chrome or * firefox.

Try to start the Selenium server set up () The function of your code, like -

  Remote Control Configuration Settings = New Remote Control Configuration (); Settings.setReuseBrowserSessions (true); Settings.setSingleWindow (wrong); Selenium server selenium server = new selenium server (settings); Seleniumserver.boot (); Seleniumserver.start ();    

Comments