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!
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
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