We are looking to use WebAii for performance testing.
Part of the requirement is to send multiple objects to a ui using a function in Javascript.
However repeated calls using code below is only sending a maximum of 15 requests per second, which is too slow to be helpful for performance testing.
WebAii code
for (int x = 1; x <= 100; x++)
{
Actions.InvokeScript(string.Format("test('{0} ')", x));
}
calls this :
function test(sendValue) {
if (Plugin == null) {
Plugin = document.getElementById("SilverlightControl");
}
Plugin.Content.MainPage.UpdateText(sendValue);
}
In comparison we can run the same loop in raw JavaScript and send 100's of messages per second to Silverlight.
comparison JavaScript code
for (i = 1; i <= 100; i++) {
test(i + " ");
}
Is the WebAii test being speed restricted?
Part of the requirement is to send multiple objects to a ui using a function in Javascript.
However repeated calls using code below is only sending a maximum of 15 requests per second, which is too slow to be helpful for performance testing.
WebAii code
for (int x = 1; x <= 100; x++)
{
Actions.InvokeScript(string.Format("test('{0} ')", x));
}
calls this :
function test(sendValue) {
if (Plugin == null) {
Plugin = document.getElementById("SilverlightControl");
}
Plugin.Content.MainPage.UpdateText(sendValue);
}
In comparison we can run the same loop in raw JavaScript and send 100's of messages per second to Silverlight.
comparison JavaScript code
for (i = 1; i <= 100; i++) {
test(i + " ");
}
Is the WebAii test being speed restricted?