Ask a Question

TestExecute + Firefox has stopped working

SOLVED
nisgupta
Valued Contributor

TestExecute + Firefox has stopped working

We are running the batch job that contain 9-10 Testcomplete tests using TestExecute. We are using firefox. But the Firefox get hung sometimes and it prevent running further tests. We got the pop up Firefox has stopped working.Attached here is the screenhot. 

 

We are using the batch script as mentioned in the below link.

https://support.smartbear.com/testcomplete/docs/working-with/automating/command-line-and-exit-codes/...

 

Thank

NG

1 ACCEPTED SOLUTION

Accepted Solutions
Marsha_R
Community Hero

Re: TestExecute + Firefox has stopped working

If you've been through everything I mentioned and still have questions, here's the link for Support

https://support.smartbear.com/message/?prod=TestComplete

View solution in original post

21 REPLIES 21
Marsha_R
Community Hero

Re: TestExecute + Firefox has stopped working

Does the same test work properly if you run it from TestComplete?

 

Do your TestComplete and TestExecute versions match?

 

Have you been through all these steps?

https://support.smartbear.com/testcomplete/docs/app-testing/web/general/preparing-browsers/firefox.h...

 

Have you checked to see if you need a Firefox patch?

https://support.smartbear.com/downloads/testcomplete/firefox-patches/

 

 

nisgupta
Valued Contributor

Re: TestExecute + Firefox has stopped working

Yes .

 

TestExecute version is 14.61.294.11

 

TestComplete version 14.61.294.7

 

Only the last number differs. Does it make difference ?

 

 

 

 

Marsha_R
Community Hero

Re: TestExecute + Firefox has stopped working

I would go ahead and update TestExecute.  I've always been told that the versions need to match.

nisgupta
Valued Contributor

Re: TestExecute + Firefox has stopped working

@Marsha_R 

 

The last number differes everytime . I am looking at the latest version 

 

Testcomplete 14.70.237.7

 

TestExecute 14.70.237.11

 

 

Marsha_R
Community Hero

Re: TestExecute + Firefox has stopped working

If you've been through everything I mentioned and still have questions, here's the link for Support

https://support.smartbear.com/message/?prod=TestComplete

View solution in original post

nisgupta
Valued Contributor

Re: TestExecute + Firefox has stopped working

I am very well aware of this support .

Thanks You

NG

nisgupta
Valued Contributor

Re: TestExecute + Firefox has stopped working

Support not able to resolve the issue. 

 

I put the handler as firefox is getting hung so it kill the fireofx and we do not get this issue. but we got another issue  - The Operation cannot be performed because the user session is locked.

 

 

REM Kill Firefox if it Exists
tasklist /FI "IMAGENAME eq firefox.exe" 2>NUL | find /I /N "firefox.exe">NUL
if "%ERRORLEVEL%"=="0" taskkill /f /t /im firefox.exe
timeout /T 2

 

Why we are getting the error - user sessin is locked ?

 

Thanks

NG

 

BenoitB
Community Hero

Re: TestExecute + Firefox has stopped working

Does your ten tests run  sequentially in the same firefox or each test close firefox and launch another one ?

 

Generally i restart a new instance of Firefox every 5 tests to avoid  problems due to :

- memory leak in tested app

- memory footage of firefox

- crash of firefox

Un sourire et ça repart

nisgupta
Valued Contributor

Re: TestExecute + Firefox has stopped working

@BenoitB 

 

We are running our projects(tests) using batch file.

when running each project - we check whether any browser is running and if it is then close and kill the browser . launch the browser and ran some steps of the tests. Once the step is finished , we close the browser and also kill the browser process.

 

Now when the next project in sequence - we are checking again if there is any browser process then close and kill . Then doing the same steps as mentioned above. and so on.

 

let me know if you need more information. I have attached the batch file this trigger the project. 

 

Thanks

NG

 

 

 

cancel
Showing results for 
Search instead for 
Did you mean: