October 26, 2010

Unable run test scripts in Firefox??---Unable to delete file lockfile

Hi...

Here i want to mention about the problem i faced with Firefox(3.6.*)..I created some test scripts using JUnit and able to run in FF(3.5*). Later i upgraded my FF version to 3.6*..Then i got problem

"Could not start Selenium session: Failed to start new browser session: Unable to delete file C:\WINDOWS\TEMP\customProfileDir1249f05ea902412fa46b6c703435ffe6\parent.lock"


I posted question in Google selenium forums...some friends gave suggestions to delete lock file..etc..But it didn't work.

One day i am searching for the same bug in Google..suddenly i found the answer for that...

Here is how to solve that problem

I resolved this problem by updating the selenium version.


Firefox 3.6 requires Selenium 1.04 or higher. If you are using these versions of Firefox and Selenium to create Internet macros for the Internet application, you will get an error message that s "unable to delete" a file named "parent.lock".
This is fixed by an updated selenium-server.jar file. To put this in place, do the following:
  1. Download the updated selenium-server.jar file.
  2. Remove the existing selenium-server.jar file from lib folder (Contains selenium jar files)
  3. Copy the new selenium-server.jar into the Lib folder
  4. Restart the eclipse
If you want more information go through the link


download the new version of selenium server..it will solve the problem.

Hope this will helpful for the FF users...
Cheers....


3 comments:

  1. You have an interesting blog going on here - Vamsi

    ReplyDelete
  2. Throwing the following exception:


    jxl.read.biff.BiffException: Unable to recognize OLE stream
    at jxl.read.biff.CompoundFile.(CompoundFile.java:116)
    at jxl.read.biff.File.(File.java:127)
    at jxl.Workbook.getWorkbook(Workbook.java:268)
    at jxl.Workbook.getWorkbook(Workbook.java:253)
    at DatadrivenJUnit.testDatadrivenJUnit(DatadrivenJUnit.java:32)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at junit.framework.TestCase.runTest(TestCase.java:154)
    at junit.framework.TestCase.runBare(TestCase.java:127)
    at com.thoughtworks.selenium.SeleneseTestCase.runBare(SeleneseTestCase.java:212)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at junit.framework.TestSuite.runTest(TestSuite.java:208)
    at junit.framework.TestSuite.run(TestSuite.java:203)
    at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
    at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45)
    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

    ReplyDelete
  3. When you are getting this error?while running the script?

    ReplyDelete