hi

60 views
Skip to first unread message

sujeetha ramu

unread,
Apr 7, 2010, 12:01:31 AM4/7/10
to seleniu...@googlegroups.com
hi,

i am new to selenium. doing web application testing using selenium . i use junit for writing test cases. while i execute the simple junit testcase in netbeans i get error given below with code snippet too. can any one help me in resolving this.? i started selenium server in command prompt.

ERROR:

Could not start Selenium session: Internal Server Error
java.lang.RuntimeException: Could not start Selenium session: Internal
Server Error
       at
com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:
89)
       at
com.thoughtworks.selenium.SeleneseTestBase.setUp(SeleneseTestBase.java:
102)
       at
com.thoughtworks.selenium.SeleneseTestCase.setUp(SeleneseTestCase.java:
78)
       at first.NewTest.setUp(NewTest.java:29)
       at
com.thoughtworks.selenium.SeleneseTestCase.runBare(SeleneseTestCase.java:
212)
Caused by: com.thoughtworks.selenium.SeleniumException: Internal
Server Error
       at
com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:
97)
       at
com.thoughtworks.selenium.HttpCommandProcessor.getCommandResponseAsString(HttpCommandProcessor.java:
168)
       at
com.thoughtworks.selenium.HttpCommandProcessor.executeCommandOnServlet(HttpCommandProcessor.java:
104)
       at
com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:
86)
       at
com.thoughtworks.selenium.HttpCommandProcessor.getString(HttpCommandProcessor.java:
262)
       at
com.thoughtworks.selenium.HttpCommandProcessor.start(HttpCommandProcessor.java:
223)



code snippet i used is


this code snippet i used:

 public void setUp() throws Exception {
       setUp("http://www.google.com/"
, "*chrome");
            // We instantiate and start the browser
     }

     public void testNew() throws Exception {
          selenium.open("/");
          selenium.type("q", "selenium rc");
          selenium.click("btnG");
          selenium.waitForPageToLoad("30000");
          assertTrue(selenium.isTextPresent("Results * for selenium
rc"));
          // These are the real test steps
    }


--
With Regards,
R.SUJEETHA
PSG Tech
COIMBATORE.

Niraj Kumar

unread,
Apr 7, 2010, 1:10:00 AM4/7/10
to seleniu...@googlegroups.com
Try this

public void setUp()throws Exception{
        selenium = new DefaultSelenium("localhost",4444,"*chrome","http://www.google.com/");
    selenium.start();
}

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
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.



--
Thanks & Regard,
Niraj Kumar

sujeetha ramu

unread,
Apr 7, 2010, 1:31:11 AM4/7/10
to seleniu...@googlegroups.com
i tried it now but the same error comes for me...

sujeetha ramu

unread,
Apr 7, 2010, 2:14:50 AM4/7/10
to seleniu...@googlegroups.com
I have given the full code wat i executed.


import static org.junit.Assert.*;
import com.thoughtworks.selenium.*;
import com.thoughtworks.selenium.SeleneseTestCase.*;


/**
 *
 * @author sujeetha
 */

public class NewTest extends SeleneseTestCase {
// We create our Selenium test case
//selenium = new DefaultSelenium("localhost", 4444, "*iehta", "http://www.google.com/");
  /*    public void setUp() throws Exception {

        setUp("http://www.google.com/", "*chrome");
             // We instantiate and start the browser
      }

    public void setUp()throws Exception{
        selenium = new DefaultSelenium("localhost",4444,"*chrome","http://www.google.com/");
    selenium.start();
}*/


    public void setUp()throws Exception{
        selenium = new DefaultSelenium("localhost",4444,"*chrome","http://www.google.com/");
    selenium.start();
}

      public void testNew() throws Exception {
           selenium.open("/");
           selenium.type("q", "selenium rc");
           selenium.click("btnG");
           selenium.waitForPageToLoad("30000");
           assertTrue(selenium.isTextPresent("Results * for selenium rc"));
           // These are the real test steps
     }
}


Error:

Testsuite: NewTest
Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 34.625 sec

Testcase: testNew(NewTest):        Caused an ERROR

Could not start Selenium session: Internal Server Error
java.lang.RuntimeException: Could not start Selenium session: Internal Server Error
        at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:89)
        at NewTest.setUp(NewTest.java:40)

        at com.thoughtworks.selenium.SeleneseTestCase.runBare(SeleneseTestCase.java:212)
Caused by: com.thoughtworks.selenium.SeleniumException: Internal Server Error
        at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:97)
        at com.thoughtworks.selenium.HttpCommandProcessor.getCommandResponseAsString(HttpCommandProcessor.java:168)
        at com.thoughtworks.selenium.HttpCommandProcessor.executeCommandOnServlet(HttpCommandProcessor.java:104)
        at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:86)
        at com.thoughtworks.selenium.HttpCommandProcessor.getString(HttpCommandProcessor.java:262)
        at com.thoughtworks.selenium.HttpCommandProcessor.start(HttpCommandProcessor.java:223)
        at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:81)


can u give me any solution please?


On Wed, Apr 7, 2010 at 10:40 AM, Niraj Kumar <bewith...@gmail.com> wrote:

Niraj Kumar

unread,
Apr 7, 2010, 2:34:49 AM4/7/10
to seleniu...@googlegroups.com
Its working fine in my machine . Actually i have testNG plugin install in my eclipse so i tried with this only its working fine.

import org.openqa.selenium.server.RemoteControlConfiguration;
import org.openqa.selenium.server.SeleniumServer;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;

import com.thoughtworks.selenium.DefaultSelenium;
import com.thoughtworks.selenium.SeleneseTestBase;
import com.thoughtworks.selenium.Selenium;


public class grouptesting extends SeleneseTestBase{

      private SeleniumServer seleniumServer;
    Selenium selenium;
@BeforeClass
public void setUp()throws Exception{

  RemoteControlConfiguration rc = new RemoteControlConfiguration();
  rc.trustAllSSLCertificates();
seleniumServer = new SeleniumServer(rc);
selenium = new DefaultSelenium("localhost",4444,"*iexplore","http://www.google.com");
seleniumServer.start();
selenium.start();
}
@Test

public void testNew() throws Exception {
    selenium.open("/");
    selenium.type("q", "selenium rc");
    selenium.click("btnG");
    selenium.waitForPageToLoad("30000");
    assertTrue(selenium.isTextPresent("Results * for selenium rc"));
    // These are the real test steps
}

}


If u dont have TestNG  then  update ur plugin from http://beust.com/eclipse1

sujeetha ramu

unread,
Apr 7, 2010, 6:40:59 AM4/7/10
to seleniu...@googlegroups.com
i got testNg pulgin and ran the code u gave below i get error like given below.. Can u help me in this...

[Parser] Running:
  C:\Documents and Settings\sujeetha\Local Settings\Temp\testng-eclipse\testng-customsuite.xml

********************************************************************************************
****** Starting YSelenium (Selenium customized & extended for Yahoo by Yahoo's !************
********************************************************************************************
16:08:58.221 INFO - Java: Sun Microsystems Inc. 16.0-b13
16:08:58.221 INFO - OS: Windows XP 5.1 x86
16:08:58.221 INFO - v1.0-beta-2 [${svn-revision}], with Core v@VERSION@ [@REVISION@]
16:08:58.330 INFO - Version Jetty/5.1.x
16:08:58.330 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver]
16:08:58.330 INFO - Started HttpContext[/selenium-server,/selenium-server]
16:08:58.330 INFO - Started HttpContext[/,/]
16:08:58.330 WARN - Failed to start: SocketL...@0.0.0.0:4444
FAILED CONFIGURATION: @BeforeClass setUp
java.net.BindException: Selenium is already running on port 4444. Or some other service is.
    at org.openqa.selenium.server.SeleniumServer.start(SeleniumServer.java:501)
    at NewTest.setUp(NewTest.java:23)
... Removed 22 stack frames
SKIPPED: testNew

===============================================
    NewTest
    Tests run: 1, Failures: 0, Skips: 1
    Configuration Failures: 1, Skips: 0
===============================================


===============================================
testing
Total tests run: 1, Failures: 0, Skips: 1
Configuration Failures: 1, Skips: 0
===============================================

[org.testng.internal.PoolService] Shutting down poolservice org.testng.internal.PoolService@1d256fa terminated:false

Niraj Kumar

unread,
Apr 7, 2010, 6:45:17 AM4/7/10
to seleniu...@googlegroups.com
Your RC server is already running on 4444 port
just shut down that and run again

http://localhost:4444/selenium-server/driver/?cmd=shutDownSeleniumServer

hit above url once this will shut down the server then run your test case
if still u r getting same error then restart your machine and run the tcs agian

sujeetha ramu

unread,
Apr 7, 2010, 6:54:33 AM4/7/10
to seleniu...@googlegroups.com
i tried wat u said.. i get the same error wat i was telling before ..

Can u please tel me steps in running test case like wat all jars to be added and where it should be added wil help me in checking the steps what i did.. because its not getting executed same error i getting ..

FAILED CONFIGURATION: @BeforeClass setUp

java.lang.RuntimeException: Could not start Selenium session: Internal Server Error
    at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:89)
    at NewTest.setUp(NewTest.java:22)

Caused by: com.thoughtworks.selenium.SeleniumException: Internal Server Error
    at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:97)
    at com.thoughtworks.selenium.HttpCommandProcessor.getCommandResponseAsString(HttpCommandProcessor.java:168)
    at com.thoughtworks.selenium.HttpCommandProcessor.executeCommandOnServlet(HttpCommandProcessor.java:104)
    at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:86)
    at com.thoughtworks.selenium.HttpCommandProcessor.getString(HttpCommandProcessor.java:262)
    at com.thoughtworks.selenium.HttpCommandProcessor.start(HttpCommandProcessor.java:223)
    at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:81)
    ... 23 more

thanks.. in advnace

darrell

unread,
Apr 7, 2010, 11:11:46 PM4/7/10
to Selenium Users
You don't need jUnit4 (@BeforeClass) and you don't need TestNG. You
can add these in later but for now you just need
http://darrellgrainger.blogspot.com/2010/02/creating-selenium-test-case-in-java.html.
Additionally, if you try to run the Selenium Server and it gives you a
net bind error, port already in use, there is something already using
port 4444. Run the server using a different port (-port 3737) and
change the Java code so 4444 is now 3737.

Darrell

On Apr 7, 6:54 am, sujeetha ramu <sujeethab...@gmail.com> wrote:
> i tried wat u said.. i get the same error wat i was telling before ..
>
> Can u please tel me steps in running test case like wat all jars to be added
> and where it should be added wil help me in checking the steps what i did..
> because its not getting executed same error i getting ..
>
> FAILED CONFIGURATION: @BeforeClass setUp
> java.lang.RuntimeException: Could not start Selenium session: Internal
> Server Error
>     at
> com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:89)
>     at NewTest.setUp(NewTest.java:22)
> Caused by: com.thoughtworks.selenium.SeleniumException: Internal Server
> Error
>     at
> com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExcepti onOrError(HttpCommandProcessor.java:97)
>     at
> com.thoughtworks.selenium.HttpCommandProcessor.getCommandResponseAsString(H ttpCommandProcessor.java:168)
>     at
> com.thoughtworks.selenium.HttpCommandProcessor.executeCommandOnServlet(Http CommandProcessor.java:104)
>     at
> com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcess or.java:86)
>     at
> com.thoughtworks.selenium.HttpCommandProcessor.getString(HttpCommandProcess or.java:262)
>     at

> com.thoughtworks.selenium.HttpCommandProcessor.start(HttpCommandProcessor.j ava:223)


>     at
> com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:81)
>     ... 23 more
>
> thanks.. in advnace
>
>
>
> On Wed, Apr 7, 2010 at 4:15 PM, Niraj Kumar <bewith.ni...@gmail.com> wrote:
> > Your RC server is already running on 4444 port
> > just shut down that and run again
>
> >http://localhost:4444/selenium-server/driver/?cmd=shutDownSeleniumServer
>
> > hit above url once this will shut down the server then run your test case
> > if still u r getting same error then restart your machine and run the tcs
> > agian
>

> > On Wed, Apr 7, 2010 at 4:10 PM, sujeetha ramu <sujeethab...@gmail.com>wrote:
>
> >> i got testNg pulgin and ran the code u gave below i get error like given
> >> below.. Can u help me in this...
>
> >> [Parser] Running:
> >>   C:\Documents and Settings\sujeetha\Local
> >> Settings\Temp\testng-eclipse\testng-customsuite.xml
>
> >> *************************************************************************** *****************
> >> ****** Starting YSelenium (Selenium customized & extended for Yahoo by
> >> Yahoo's !************
>
> >> *************************************************************************** *****************
> >> 16:08:58.221 INFO - Java: Sun Microsystems Inc. 16.0-b13
> >> 16:08:58.221 INFO - OS: Windows XP 5.1 x86
> >> 16:08:58.221 INFO - v1.0-beta-2 [${svn-revision}], with Core v@VERSION@
> >> [@REVISION@]
> >> 16:08:58.330 INFO - Version Jetty/5.1.x
> >> 16:08:58.330 INFO - Started
> >> HttpContext[/selenium-server/driver,/selenium-server/driver]
> >> 16:08:58.330 INFO - Started HttpContext[/selenium-server,/selenium-server]
> >> 16:08:58.330 INFO - Started HttpContext[/,/]

> >> 16:08:58.330 WARN - Failed to start: SocketListen...@0.0.0.0:4444


> >> FAILED CONFIGURATION: @BeforeClass setUp
> >> java.net.BindException: Selenium is already running on port 4444. Or some
> >> other service is.
> >>     at
> >> org.openqa.selenium.server.SeleniumServer.start(SeleniumServer.java:501)
> >>     at NewTest.setUp(NewTest.java:23)
> >> ... Removed 22 stack frames
> >> SKIPPED: testNew
>
> >> ===============================================
> >>     NewTest
> >>     Tests run: 1, Failures: 0, Skips: 1
> >>     Configuration Failures: 1, Skips: 0
> >> ===============================================
>
> >> ===============================================
> >> testing
> >> Total tests run: 1, Failures: 0, Skips: 1
> >> Configuration Failures: 1, Skips: 0
> >> ===============================================
>
> >> [org.testng.internal.PoolService] Shutting down poolservice
> >> org.testng.internal.PoolService@1d256fa terminated:false
>

> >>>> Caused by: com.thoughtworks.selenium.SeleniumException: Internal Server
> >>>> Error
> >>>>         at
> >>>> com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExcepti onOrError(HttpCommandProcessor.java:97)
> >>>>         at
> >>>> com.thoughtworks.selenium.HttpCommandProcessor.getCommandResponseAsString(H ttpCommandProcessor.java:168)
> >>>>         at
> >>>> com.thoughtworks.selenium.HttpCommandProcessor.executeCommandOnServlet(Http CommandProcessor.java:104)
> >>>>         at
> >>>> com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcess or.java:86)
> >>>>         at
> >>>> com.thoughtworks.selenium.HttpCommandProcessor.getString(HttpCommandProcess or.java:262)
> >>>>         at

> >>>> com.thoughtworks.selenium.HttpCommandProcessor.start(HttpCommandProcessor.j ava:223)


> >>>>          at
> >>>> com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:81)
>
> >>>> can u give me any solution please?
>

> ...
>
> read more »

sujeetha ramu

unread,
Apr 8, 2010, 12:13:18 AM4/8/10
to seleniu...@googlegroups.com

Hi Darrell,

Thanks on ur Reply...i have followed the steps u said . i created new testcase and executed it. first i started selenium server in command line . the following lines are displayed. below given the error message i got. please look in to this and tell me solution for it.. 

09:19:36.752 INFO - Java: Sun Microsystems Inc. 16.0-b13

09:19:36.752 INFO - OS: Windows XP 5.1 x86

09:19:36.752 INFO - v1.0-beta-2 [${svn-revision}], with Core v@VERSION@ [@REVISI

ON@]

09:19:36.971 INFO - Version Jetty/5.1.x

09:19:36.971 INFO - Started HttpContext[/selenium-server/driver,/selenium-server

/driver]

09:19:36.971 INFO - Started HttpContext[/selenium-server,/selenium-server]

09:19:36.971 INFO - Started HttpContext[/,/]

09:19:37.002 INFO - Started SocketListener on 0.0.0.0:4444

09:19:37.002 INFO - Started org.mortbay.jetty.Server@5740bb

after this i executed junit test case in eclipse. 

the code is : import com.thoughtworks.selenium.SeleneseTestCase;


public class firstt extends SeleneseTestCase {


public void setUp() throws Exception {

super.setUp("http://www.google.com","*chrome");

}


public void tearDown() throws Exception {

super.tearDown();

}

public void testAGoodDescriptionOfWhatWeAreTesting() throws Exception {

        selenium.open("/");

        System.out.println(selenium.getHtmlSource());

    }


}


in command prompt, the following lines are displayed on execution.

09:20:04.705 INFO - Checking Resource aliases

09:32:20.767 INFO - Command request: getNewBrowserSession[*chrome, http://www.go

ogle.com, ] on session null

09:32:20.767 INFO - creating new remote session

09:32:20.767 INFO - Allocated session 5e75f02a2b694436bd859a66bfb9afac for http:

//www.google.com, launching...

09:32:29.782 INFO - Preparing Firefox profile...

09:32:54.314 ERROR - Failed to start new browser session, shutdown browser and c

lear all session data

java.lang.RuntimeException: Firefox refused shutdown while preparing a profile

        at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.wai

tForFullProfileToBeCreated(FirefoxChromeLauncher.java:267)

        at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.pop

ulateCustomProfileDirectory(FirefoxChromeLauncher.java:119)

        at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.lau

nch(FirefoxChromeLauncher.java:96)

        at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.lau

nchRemoteSession(FirefoxChromeLauncher.java:310)

        at org.openqa.selenium.server.BrowserSessionFactory.createNewRemoteSessi

on(BrowserSessionFactory.java:351)

        at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession

(BrowserSessionFactory.java:119)

        at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession

(BrowserSessionFactory.java:82)

        at org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowse

rSession(SeleniumDriverResourceHandler.java:658)

        at org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(Se

leniumDriverResourceHandler.java:392)

        at org.openqa.selenium.server.SeleniumDriverResourceHandler.handleComman

dRequest(SeleniumDriverResourceHandler.java:368)

        at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(Selen

iumDriverResourceHandler.java:129)

        at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)

        at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)

        at org.mortbay.http.HttpServer.service(HttpServer.java:909)

        at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)

        at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)

        at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)

        at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:

244)

        at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)

        at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)

Caused by: org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher$Fil

eLockRemainedException: Lock file still present! C:\DOCUME~1\sujeetha\LOCALS~1\T

emp\customProfileDir5e75f02a2b694436bd859a66bfb9afac\parent.lock

        at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.wai

tForFileLockToGoAway(FirefoxChromeLauncher.java:225)

        at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.wai

tForFullProfileToBeCreated(FirefoxChromeLauncher.java:265)

        ... 19 more

09:33:07.595 WARN - POST /selenium-server/driver/ HTTP/1.1

Unable to delete file C:\DOCUME~1\sujeetha\LOCALS~1\Temp\customProfileDir5e75f02

a2b694436bd859a66bfb9afac\parent.lock

        at org.apache.tools.ant.taskdefs.Delete.removeDir(Delete.java:594)

        at org.apache.tools.ant.taskdefs.Delete.execute(Delete.java:498)

        at org.openqa.selenium.server.browserlaunchers.LauncherUtils.recursively

DeleteDir(LauncherUtils.java:72)

        at org.openqa.selenium.server.browserlaunchers.LauncherUtils.deleteTryTr

yAgain(LauncherUtils.java:80)

        at org.openqa.selenium.server.browserlaunchers.LauncherUtils.deleteTryTr

yAgain(LauncherUtils.java:84)

        at org.openqa.selenium.server.browserlaunchers.LauncherUtils.deleteTryTr

yAgain(LauncherUtils.java:84)

        at org.openqa.selenium.server.browserlaunchers.LauncherUtils.deleteTryTr

yAgain(LauncherUtils.java:84)

        at org.openqa.selenium.server.browserlaunchers.LauncherUtils.deleteTryTr

yAgain(LauncherUtils.java:84)

        at org.openqa.selenium.server.browserlaunchers.LauncherUtils.deleteTryTr

yAgain(LauncherUtils.java:84)

        at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.rem

oveCustomProfileDir(FirefoxChromeLauncher.java:194)

        at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.clo

se(FirefoxChromeLauncher.java:176)

        at org.openqa.selenium.server.BrowserSessionFactory.shutdownBrowserAndCl

earSessionData(BrowserSessionFactory.java:234)

        at org.openqa.selenium.server.BrowserSessionFactory.createNewRemoteSessi

on(BrowserSessionFactory.java:368)

        at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession

(BrowserSessionFactory.java:119)

        at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession

(BrowserSessionFactory.java:82)

        at org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowse

rSession(SeleniumDriverResourceHandler.java:658)

        at org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(Se

leniumDriverResourceHandler.java:392)

        at org.openqa.selenium.server.SeleniumDriverResourceHandler.handleComman

dRequest(SeleniumDriverResourceHandler.java:368)

        at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(Selen

iumDriverResourceHandler.java:129)

        at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)

        at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)

        at org.mortbay.http.HttpServer.service(HttpServer.java:909)

        at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)

        at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)

        at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)

        at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:

244)

        at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)

        at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)




Can u please look on this and tell me the solution please....






--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
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.

Bryan C

unread,
Apr 15, 2010, 1:39:42 AM4/15/10
to Selenium Users
I am also experiencing the same parent.lock error as well.

Prior to the Firefox update and the Selenium server 1.0.3 update, this
was not an issue. All of my rc code executed in Eclipse/JUnit format
fine. Now I get this dumb message only with Firefox:

22:23:12.174 INFO - Got result: Failed to start new browser session:
Unable to d
elete file C:\DOCUME~1\Bryan\LOCALS~1\Temp
\customProfileDirfe88aa94b7e4482aa3100
c195a0a60e5\parent.lock on session null

And of course this folder and/or file cannot be deleted.

Anyone have any ideas what's going on?

Thanks,

Bryan

On Apr 7, 9:13 pm, sujeetha ramu <sujeethab...@gmail.com> wrote:
> Hi Darrell,
>
> Thanks on ur Reply...i have followed the steps u said . i created new
> testcase and executed it. first i started selenium server in command line .
> the following lines are displayed. below given the error message i got.
> please look in to this and tell me solution for it..
>
> 09:19:36.752 INFO - Java: Sun Microsystems Inc. 16.0-b13
>
> 09:19:36.752 INFO - OS: Windows XP 5.1 x86
>
> 09:19:36.752 INFO - v1.0-beta-2 [${svn-revision}], with Core v@VERSION@
> [@REVISI
>
> ON@]
>
> 09:19:36.971 INFO - Version Jetty/5.1.x
>
> 09:19:36.971 INFO - Started
> HttpContext[/selenium-server/driver,/selenium-server
>
> /driver]
>
> 09:19:36.971 INFO - Started HttpContext[/selenium-server,/selenium-server]
>
> 09:19:36.971 INFO - Started HttpContext[/,/]
>
> 09:19:37.002 INFO - Started SocketListener on 0.0.0.0:4444
>
> 09:19:37.002 INFO - Started org.mortbay.jetty.Server@5740bb
>

> *after this i executed junit test case in eclipse. *


>
> the code is : import com.thoughtworks.selenium.SeleneseTestCase;
>
> public class firstt extends SeleneseTestCase {
>
> public void setUp() throws Exception {
>
> super.setUp("http://www.google.com","*chrome");
>
> }
>
> public void tearDown() throws Exception {
>
> super.tearDown();
>
> }
>
> public void testAGoodDescriptionOfWhatWeAreTesting() throws Exception {
>
>         selenium.open("/");
>
>         System.out.println(selenium.getHtmlSource());
>
>     }
>
> }
>
> in command prompt, the following lines are displayed on execution.
>
> 09:20:04.705 INFO - Checking Resource aliases
>

> 09:32:20.767 INFO - Command request: getNewBrowserSession[*chrome,http://www.go

> *Can u please look on this and tell me the solution please....*


>
> On Thu, Apr 8, 2010 at 8:41 AM, darrell <darrell.grain...@gmail.com> wrote:
> > You don't need jUnit4 (@BeforeClass) and you don't need TestNG. You
> > can add these in later but for now you just need
>

> >http://darrellgrainger.blogspot.com/2010/02/creating-selenium-test-ca...

> ...
>
> read more »

Deepak Koul

unread,
Apr 15, 2010, 7:54:15 AM4/15/10
to seleniu...@googlegroups.com
Most probably version mismatch between firefox and RC.
Update any of the two.

Chat Google Talk: kouldeep



> ...
>
> read more »

RUPAM SEN LASKAR

unread,
Apr 15, 2010, 9:33:18 AM4/15/10
to seleniu...@googlegroups.com
Hi Bryan,
This is a Issue wrt Firefox 3.6 and selenium RC.
Try running in older version of Firefox.

 
With Best Regards
Kuntal Sen Laskar



From: Bryan C <b.cu...@gmail.com>
To: Selenium Users <seleniu...@googlegroups.com>
Sent: Thu, 15 April, 2010 11:09:42 AM
Subject: [selenium-users] Re: hi
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsub...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.


Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php

Roman P.

unread,
Apr 15, 2010, 5:18:43 PM4/15/10
to seleniu...@googlegroups.com
Yep, or just download last version of SeleniumRC

2010/4/15 RUPAM SEN LASKAR <rupamse...@yahoo.co.in>
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.

Rajesh Ratakonda

unread,
Apr 16, 2010, 1:12:14 AM4/16/10
to seleniu...@googlegroups.com
Hi Bryan,

just make sure  your firefox browser is not  open when you run the selenium-rc.usually this error occurs for me at this situation and when i close the browser the paren.lock will to deleted from you firefox profile.just check once when you close the Firefox in its profile.And also make sure you create a separate profile for Firefox for selenium-RC

Regards,
Rajesh.
AKSHA LABS PVT LTD.
Reply all
Reply to author
Forward
0 new messages