|
|
|
[
Permlink
| « Hide
]
Stefan Scheidt - 26/Jun/08 10:15 AM
complete server log for 1.0 beta 1
complete server log for nightly build 1.0-20080626.090504-453
Hello, here an update: I modified the firefox proxy settings to use localhost:4444, than started Selenium RC and entered this command:
cmd=getNewBrowserSession&1=*custom C:\\Programme\\Mozilla Firefox\\firefox.exe&2=http://www.google.com This works. So it seems to be a problem with "*firefox" and the Profile Creation... I will upload the incomplete custom profile, that will get produced when using *firefox with the current nightly build (selenium-remote-control-1.0-20080630.090045-469-dist.zip). Regards Stefan I'm also running into this issue after upgrading to Firefox 3.0.1 on Win XP Pro SP2.
[INFO] [selenium:selenese {execution: selenium-tests}] [INFO] Results will go to: C:\projects\ProtocolTrackingSeleniumTest\target\results-firefox-TestSuite.html [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Firefox refused shutdown while preparing a profile Lock file still present! c:\DOCUME~1\cdpegram\LOCALS~1\Temp\customProfileDir897522\parent.lock [INFO] ------------------------------------------------------------------------ [INFO] Trace java.lang.RuntimeException: Firefox refused shutdown while preparing a profile at org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLauncher.waitForFullProfileToBeCreated(FirefoxCustomProfileLauncher.java:277) at org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLauncher.launch(FirefoxCustomProfileLauncher.java:147) at org.openqa.selenium.server.browserlaunchers.AbstractBrowserLauncher.launchHTMLSuite(AbstractBrowserLauncher.java:20) at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLLauncher.java:88) at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLLauncher.java:135) 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:585) at org.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:52) at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:714) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:583) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:476) at org.codehaus.groovy.runtime.Invoker.invokePojoMethod(Invoker.java:104) at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:77) at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:85) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:158) at org.codehaus.mojo.selenium.SeleneseMojo.execute(SeleneseMojo.groovy:146) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) 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:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLauncher$FileLockRemainedException: Lock file still present! c:\DOCUME~1\cdpegram\LOCALS~1\Temp\customProfileDir897522\parent.lock at org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLauncher.waitForFileLockToGoAway(FirefoxCustomProfileLauncher.java:235) at org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLauncher.waitForFullProfileToBeCreated(FirefoxCustomProfileLauncher.java:275) ... 35 more I'm still seeing this on FF 3.0.1, Window VISTA and selenium 1.0-SNAPSHOT.
My code is simple:
package test.testcases; import com.thoughtworks.selenium.SeleneseTestCase; public class TestLoginLogout extends SeleneseTestCase { public void setUp() throws Exception { super.setUp("http://localhost:4444", "*chrome"); super.setCaptureScreetShotOnFailure(true); } public void tearDown() throws Exception { //SelStarter.stopSeleniumServer(); super.tearDown(); } public void testNew() throws Exception { selenium.open("http://localhost:8080/DSD-DEV/Index.jsp"); selenium.type("str_User_Name", "super"); selenium.type("str_Password", "user"); selenium.click("sbm_Submit"); selenium.waitForPageToLoad("1000"); selenium.selectWindow("null"); for (int second = 0;; second++) { if (second >= 60) fail("timeout"); try { if (selenium.isTextPresent("CCRS")) break; } catch (Exception e) {} Thread.sleep(1000); } selenium.click("optu2"); selenium.waitForPageToLoad("1000"); assertTrue(selenium.isTextPresent("Logged On Since")); selenium.click("Menu.jsp:40"); } } when I run this with FF3 I get the "parent lock file" problem. This is already fixed in the current snapshot.
Can you try it out and see if it works for you ? I tested the current snapshot under FF3 on Ubuntu 8.10, and it works great. Thanks!
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||