Telerik Forums
Test Studio Forum
4 answers
363 views
Hello,

We have a load balanced web farm that we want to load test.
All web servers are set to use the same machine key in web.config. The load-balancer is configured for sticky session.

We have a Web Test that executes successfully. We used it to create a Load test. However the load test is causing the following server error:
System.Web.HttpException: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.
at System.Web.UI.ViewStateException.ThrowMacValidationError(Exception inner, String persistedState)
at System.Web.UI.ObjectStateFormatter.Deserialize(String inputString, Purpose purpose)
at System.Web.UI.Util.DeserializeWithAssert(IStateFormatter2 formatter, String serializedState, Purpose purpose)
at System.Web.UI.HiddenFieldPageStatePersister.Load()
at System.Web.UI.Page.LoadPageStateFromPersistenceMedium()
at System.Web.UI.Page.LoadAllState()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


If I disable mac validation in config, it still does not work and message is:
System.Web.HttpException: The state information is invalid for this page and might be corrupted.
at System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError)
at System.Web.UI.HiddenFieldPageStatePersister.Load()
at System.Web.UI.Page.LoadPageStateFromPersistenceMedium()
at System.Web.UI.Page.LoadAllState()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Cody
Telerik team
 answered on 25 Sep 2013
5 answers
86 views
After I upgrade the Telerik Test Studio to latest version (2013.1 911), the "Run To Here" action in Visual Studio 2012 is no longer work.
Although it able to launch the Telerik Test Studio Recorder but it not able to record any test step. Btw, I'm testing Silverlight web application.

Anyone have any idea or solution to this issue?
Ivaylo
Telerik team
 answered on 25 Sep 2013
13 answers
205 views
We have the Telerik trial version downloaded ..Version 2013.1.806.0

Our application mainly intended to work with the Chrome browser...Right now works only with Chrome.
When I tried recording on the Chrome, no steps are recorded. I inserted the Verification point (like ...Verify object exist) and that is added to the script. But no actions are recorded.

Also I verified the chrome browser setting as per the Telerik doc.

Your help would be appreciated!
Rodney
Telerik team
 answered on 24 Sep 2013
12 answers
519 views
Search Test Steps
How to use the search field and step type filter to filter test steps.

Search Tests
How to use the search field and step type filter to filter test steps.

Load Testing Extensions
How to use load testing extensions to modify load test execution.

Jenkins CI
How to use Jenkins Continuous Integration to build and run Test Studio tests.

Codeless Scrolling in Virtualized Panels
How to use the Elements Menu to automate against Silverlight Virtualized Panels.

Drop-down menu jQuery event not triggered
How to use the TriggerjQueryEvent test step property with drop-down menus.

Jenkins CI
How to build and execute Test Studio tests in Jenkins Continuous Integration.

Using Chained Find Expressions
How to use chained find expressions to locate elements by their relative position in the DOM.
Byron
Telerik team
 answered on 24 Sep 2013
1 answer
131 views
Hello,

When performing playback on a recorded test, it sometimes fails due to errors like the one in the attached image. These errors occur in another Internet Explorer instance and contain a message. My question is: how can these messages be captured and added to the log file? I saw that there is an example for dialogs, but not for IE. Could you please provide such an example for me?

Thank you,
Corina
Boyan Boev
Telerik team
 answered on 23 Sep 2013
5 answers
252 views
In trying to simulate a JavaScript alert dialog earlier, I ran into an issue with recording a "Tab" press from an input box.

Here is the scenario:

1) Type date into input1
2) Tab to next field
    a) if input1 date is older than 6 months old, javascript alert notifying user (scenario I am testing, and going to take a screenshot of in the test).
    b) if input1 date is within range, no javascript alert

When I played back the test, which had a "Handle 'Alert' Dialog", to my surprise, the test was hanging as that Alert never came up.

After some fiddling, I converted the step to code which is below:

[CodedStep(@"Keyboard (KeyPress) - Tab (1 times) on 'NewCensusEffectiveDateTextBox'")]
public void NavToPatient_CodedStep()
{
    ActiveBrowser.ContentWindow.SetFocus();
    Pages.AdminCensus.NewCensusEffectiveDateTextBox.ScrollToVisible();
    Pages.AdminCensus.NewCensusEffectiveDateTextBox.Focus();
    ActiveBrowser.Manager.Desktop.KeyBoard.KeyPress(ArtOfTest.WebAii.Win32.KeyBoard.KeysFromString("Tab"), 100, 1);
    ActiveBrowser.WaitUntilReady();
}

This is all being tested against a third party product, which I have no control over the javascript functions that result from the input box.  The input is below:

<input type=text size=10 maxlength=10 name=effective_date value="1/1/2001" onkeypress="return filterKeys(event)" onfocus='setDateItem(this, "P")' onblur="reformatDate(this)" onchange='reformatDate(this); javascript:ESOLValidateDateString(frmData.effective_date);checkUpdateCareLevel();'  >

As you can see it appears there is a lot going on here.

The issue comes with the "ActiveBrowser.ContentWindow.SetFocus();" line.  If I remove this line, the Alert will show up like normal.

What I think is occuring is, the "ActiveBrowser.ContentWindow.SetFocus();" line is not allowing the "onchange='reformatDate(this);" to run.

My question is, is the "ActiveBrowser.ContentWindow.SetFocus();" necessary as part of the default "Tab" record key action?

P.S. I know I can take care of all JavaScript Alert dialogs by using the following:

public override void OnBeforeTestStarted()
{
    Manager.DialogMonitor.AddDialog(new AlertDialog(ActiveBrowser, DialogButton.OK));
    Manager.DialogMonitor.Start();
}

..and I plan on it.  But I also want to work in taking a screenshot of the JavaScript alert and I haven't got into custom dialog handlers yet.
Daniel
Top achievements
Rank 2
 answered on 19 Sep 2013
54 answers
359 views
Is there any documentation on how to analyze the load and performance testing results from the load and performance testing.

Thanks,
Nithin
Cody
Telerik team
 answered on 17 Sep 2013
4 answers
120 views
I'm on version 2013, in Test Studio 2012 we can send mail automatically when test list execute all the test case. But I can't find this feature in 2013, please help
Velin Koychev
Telerik team
 answered on 17 Sep 2013
1 answer
163 views
How to check whether the focus is present on a particular element or not.

For e.g say i have two UI Elements and on first element i have configured onChange behavior.And once onChange is fired , focus should go to second element. So how to check whether focus is present on second element or not.
Boyan Boev
Telerik team
 answered on 17 Sep 2013
4 answers
63 views
Hi,

we had a Go to meeting today with a support specialist for the test list issue, where it was not running if the list had more than 4 test cases. Our project size is 700 MB ( with different modules with in the same project ). and will  grow more as we complete more module automations. 

Support specialist looked into the issue and suggested few options.

1. Upgrade the RAM size from existing 4 GB to 8 GB  
- Wanted to ensure before we invest on this , that the test list will indeed work with this configuration. Is this tested and is this the minimum requirement to run the test list when the project size is more ?

2. Split the Project into smaller ones , 1 project per module.

      - Is this possible , where we have integration scenarios / regression scenarios where we refer the process/elements accros different modules ? 

Pls help , as we are in tough situation , where we have 500 scripts automated and we cannot afford to have QAs to run individual tests for weeks, and we are anticipating that we are going to have another 1000 scripts automated. 
   

Boyan Boev
Telerik team
 answered on 17 Sep 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?