This is a migrated thread and some comments may be shown as answers.

FF Crash (ver. 3.0.19)

1 Answer 38 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
SD
Top achievements
Rank 1
SD asked on 30 Jun 2010, 03:27 AM
Hi Guys,

Usually I'm attempt to run hundreds of tests in one go using Nunit. 
Recently I had FF crashing  (Refer to the attached screenshots).  Clicking 'restart browser' made all good and test run 
continued without further interpretations though that's not exactly what one may call an unattended test run...
I was wondering if any of you experienced the same...

In addition, are there any news regarding the use of recycleBrowser while running Nunit tests?
If  recycleBrowser="false" the browser opens and shuts FF hundreds of times which may have caused the above crash.... 

ta, 
SD.

1 Answer, 1 is accepted

Sort by
0
Missing User
answered on 01 Jul 2010, 11:07 PM
Hi SD,

It is possible that Firefox crashed if it was launched that many times. For that many tests, it's probably easiest to use a master tests that calls all the other tests. 

The master test would just be another WebAii NUnit Test Template. Here is a sample of the master test's test method:

[Test]
public void SampleWebAiiTest()
{
 // launch test browser
 Manager.LaunchNewBrowser();
  
 TestProject.WebAiiNUnitTest1 WebAiiNUnitTest1 = new WebAiiNUnitTest1();
 // pass in true so that test will recycle browser
 // and not close browser after test is done
 WebAiiNUnitTest1.Initialize(true);
 WebAiiNUnitTest1.SampleWebAiiTest();
  
 TestProject.WebAiiNUnitTest2 WebAiiNUnitTest2 = new WebAiiNUnitTest2();
 WebAiiNUnitTest2.Initialize(true);
 WebAiiNUnitTest2.SampleWebAiiTest();
}

Hope that helps.

Regards,
Nelson Sin
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
SD
Top achievements
Rank 1
Answers by
Missing User
Share this question
or