or
'13-1-2014 13:05:08' - 'Pass' : 7. Click 'JaIkWilDeLink'
'13-1-2014 13:05:34' - 'Fail' : 8. Handle 'Download' dialog.
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Timed out waiting '25000' msec. for download dialog to be handled.
InnerException:
System.TimeoutException: Timed out waiting '25000' msec. for download dialog to be handled.
at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.DownloadDialogHandlerDescriptor.Execute(Browser browser)
at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.DialogHandlerDescriptor.Execute(IAutomationHost browser)
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
------------------------------------------------------------
'13-1-2014 13:05:34' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
When I follow the documentation (http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/code-samples/general/load_testing_extensions.aspx) to create a load test extension then I get the attached error message in Test Studio:
"An unexpected error occurred in Test Studio. The error has been reported to the Telerik team."
The load test extension is the one from the documentation with a slight modification to match the interface methods.
This seems to be a bug in Test Studio to me. Or please tell me what I'm doing wrong. Thank you!
We followed the steps for plugins and put the DLL in %ProgramFiles%\Telerik\Test Studio\Bin\Plugins\
using
System;
using
System.Collections.Generic;
using
System.Linq;
using
System.Text;
using
System.IO;
using
System.Data;
using
System.Data.OleDb;
using
ArtOfTest.WebAii.Design.Execution;
using
Telerik.TestStudio.Load.Interfaces.Load.API;
namespace
ClassLibrary1
{
public
class
Class1 : ILoadAgentPlugin, ILoadAgentPluginHttpRequest, ILoadAgentPluginVirtualUser
{
public
void
VirtualUserAllocated(Guid userProfileId, Guid virtualUserId)
{
Random random =
new
Random();
int
randomNumber = random.Next(0, 5000);
File.Create(
"c:\\test\\"
+ randomNumber.ToString());
}
public
void
VirtualUserDeallocated(Guid userProfileId, Guid virtualUserId)
{
}
public
void
AfterResponseReceived(Guid virtualUserId,
int
currentStepIndex, System.Net.HttpWebResponse response,
string
rawResponse)
{
}
public
void
BeforeRequestSent(Guid virtualUserId,
int
currentStepIndex, System.Net.HttpWebRequest request)
{
}
public
string
OverrideOutgoingUrl(Guid virtualUserId,
int
currentStepIndex,
string
url)
{
return
url;
}
public
void
UserProfileAllocated(Guid profileRunID,
string
profileFriendlyName)
{
}
}
}