What does this mean?

HI to all!

I've runned a load test and this message appears:

Exception occurred: The given key was not present in the dictionary.

What does this means?

And the second question:

In the same load test was message:

More than 1000 errors of type

'Exception' and sub type 'RequestEnumeratorException' have occurred;

additional errors of this type will not be reported.

How can i change limit of 1000 for the curent type (or for any type) of errors?

Thanks in advance!

[572 byte] By [objective] at [2007-12-22]
# 1

I'm not sure what you're asking. Could you please include more information.

Thanks,

Rick

RickPotts-MS at 2007-8-30 > top of Msdn Tech,Visual Studio Team System,Visual Studio Team System - Web and Load Testing...
# 2
Sorry for my english...

I had created several web C# scripts for one site. Than i had created a

load test with constant load pattern, made all the appropriate

procedures.

Than i run this load test and in the errors table there was some messages:

1.

Exception

RequestEnumeratorException 1000

Exception occurred: The given key was not present in the

dictionary.

In the details of this error i can find line in script . It points on WebRequest function. What exactly "The given key was not present in the dictionary" message means? Or when i can find an information about this error?

2. The second error was:

More than 1000 errors of type

'Exception' and sub type 'RequestEnumeratorException' have occurred;

additional errors of this type will not be reported.

This message marginally belongs to the first error. The question was:

how can i change this limit of 1000 errors for this/any type of error?

Thanks

objective at 2007-8-30 > top of Msdn Tech,Visual Studio Team System,Visual Studio Team System - Web and Load Testing...
# 3

Regarding #1... This exception occurs when you try to access a dictionary with a key that does not exist in the dictionary. The TestContext is a dictionary and it is likely that your script is accessing the TestContext with a key value that does not exist. The error detail should include a stack trace the identify the line of code that is failing. Could you post a the line of code that is failing?

You might want to verify your C# script before running them under load by running the web test individually and viewing the result in the Web Test Result Viewer. The Web Test Result Viewer shows a snapshot of the TestContext for each request in the "Context" pane of the viewer. In the "Details" pane of the viewer, you will also see the stack trace for the failing request.

Regarding #2... This value is configurarable. You have to edit VsTestHost.exe.config (for local test runs) and/or QTAgent.exe.config (for remote test runs) to change this value. Although, in this case you're likely seeing the same exact error 1000 times --once for each execution of the web test.

Note that the only errors being limited are the errors of type Exception:RequestEnumeratorException since it has occurred 1000 times. Other errors will still be reported even after this limit has been reached -- only the Exception:RequestEnumerationException is being limited.

I don't have the configuration parameter available off the top of my head. Let me know if you still think you would like to configure this value and I will look it up.

Thanks,

Rick

RickPotts-MS at 2007-8-30 > top of Msdn Tech,Visual Studio Team System,Visual Studio Team System - Web and Load Testing...
# 4
Hi!

Thaks for your useful information!

objective at 2007-8-30 > top of Msdn Tech,Visual Studio Team System,Visual Studio Team System - Web and Load Testing...
# 5

Hello Rick,

I found the following in QTAgent.exe.config, but it seems none of them are related to increasing the number of errors logged. Can you tell us which parameter to use?

<!-- Below are possible appSettings keys recognized by the service. To add a key: <add key="Key_Name" value="value"/> -->

<!-- WorkingDirectory: Base directory for staging/temporary files, overrides Windows default Application Data Directory -->

<!-- CreateTraceListener: Service creates trace log file in installation directory. Default: yes, override with "No" -->

<!-- AgentSyncTimeoutInSeconds: Number of seconds before agent considered unresponsive synchronizing test run start -->

<!-- ControllerServicePort: TCP port used by controller -->

<!-- LogSizeLimitInMegs: Maximum allowable size of log file, 0 allows size limited by disk space. -->

<!-- ControllerJobSpooling: Set to false to turn off automatic test run spooling. -->

<!-- BindTo: the name of the NIC to bind to for communiction -->

<!-- ControllerUsersGroup: limited group that can submit tests to a controller. Can submit, stop and view owned tests. -->

<!-- ControllerAdminsGroup: group with controller administrative privledges. Can submit, stop and view any test and perform administrative actions. -->

Thank you,

Tom

TomYip at 2007-8-30 > top of Msdn Tech,Visual Studio Team System,Visual Studio Team System - Web and Load Testing...

Visual Studio Team System

Site Classified