--
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.
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 »
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());
}
}
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)
--
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.
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 »
> ...
>
> read more »
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.