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

[Solved] Exception when executing a simple test

1 Answer 117 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Espen Harlinn
Top achievements
Rank 1
Espen Harlinn asked on 17 Sep 2009, 02:06 PM
After deciding to split the larger test mentioned in a previous thread into a number of smaller tests I've built a small test consisting of 88 steps - At step 10, while executing a SelectDropDownActionDescriptor 'ByText' with a text string that exists as a choice in the DropDown I get the following:

ArtOfTest.WebAii.Design.Exceptions.ExecutionException: Unhandled exception thrown during automation step execution ---> System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
   ved System.Text.RegularExpressions.GroupCollection.GetGroupImpl(Int32 groupnum)
   ved System.Text.RegularExpressions.GroupCollection.GetGroup(Int32 groupnum)
   ved System.Text.RegularExpressions.GroupCollection.get_Item(String groupname)
   ved ArtOfTest.WebAii.Core.Parser.GetNextTag(Int32 startPosition, Int32& tagLength, String& tagContent, String& tagName, String& tagRemainder)
   ved ArtOfTest.WebAii.Core.Parser.Parse()
   ved ArtOfTest.WebAii.Core.Parser.Parse(String text)
   ved ArtOfTest.WebAii.Core.TreeBuilder.BuildDomTree(String text, Boolean trimWhiteSpace)
   ved ArtOfTest.WebAii.Core.Browser.UpdateDomTree(String domString)
   ved ArtOfTest.WebAii.Core.Browser.RefreshDomTree()
   ved ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
   ved ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request)
   ved ArtOfTest.WebAii.Core.Actions.DoSelectDropDown(Element targetElement, String data)
   ved ArtOfTest.WebAii.Core.Actions.SelectDropDown(Element targetElement, String text, Boolean useValue)
   ved ArtOfTest.WebAii.Core.Actions.SelectDropDown(Element targetElement, String itemText)
   ved ArtOfTest.WebAii.Controls.HtmlControls.HtmlSelect.SelectByText(String text, Boolean invokeOnChangeEvent)
   ved ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.SelectDropDownActionDescriptor.Execute(Browser browser)
   ved ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep()
   --- End of inner exception stack trace ---
   ved ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep()

Regards
Espen Harlinn

1 Answer, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 17 Sep 2009, 02:53 PM
Hello Espen Harlinn,

I am suspicious that Windows is running out of virtual memory in its pagefile. Windows automatically starts swapping data to disk when it runs out of physical memory to use. If the disk gets full then you will get out of memory exceptions. Or if the pagefile has filled up to some preset limit then you will get the same out of memory exception.

Can you check the amount of free hard drive space you have? Also can you check your virtual memory settings? To do this follow these steps (these are for Vista):
  1. Click on Start
  2. Right click on Computer
  3. Click on Properties
  4. Click on Advances system settings
  5. Click the Advanced tab
  6. In the Performance group box, click Settings
  7. Click the Advanced tab
  8. Click Change

Please tell me what the settings are in this Virtual Memory dialog box.

BTW, too little memory and/or too small of a pagefile (which can also be caused by lack of disk space) can cause general slowness in your computer, including the behavior of WebUI Test Studio.

Sincerely yours,
Cody
the Telerik team


Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Espen Harlinn
Top achievements
Rank 1
Answers by
Cody
Telerik team
Share this question
or