Telerik Forums
Test Studio Forum
20 answers
377 views

Hi,

We seem to have on of our tests in the Test Studio Project desynchronized from our source control which is Team foundation Server 2008.  Every time we open the project in Test Studio it automaticallly checks out one of the tests for edit.  This particular test has not been worked on or touched for a number of weeks now so we have no idea why it has started to do this.  We have even attempted to fix it by completely deleting the test from both source control and Test Studio, then re-recording the test and checking it back in but we still seem to be in the same state.

Please find below an extract of the log when we open test Studio.

I would be grateful if you could advise how we can fix this.  Is there a file of some sort that we can manually edit to prevent Test Studio from trying to keep adding the same test to source control?

[02/04 14:33:22,Telerik.TestStudio.exe(2920:1),TeamFoundationServer] TFSServer._vcs_NonFatalError() : Non-fatal error handling TFS request: Failure instance 52192065
  RequestType: None
  Code: ItemExistsException
  Severity: Error
  Warnings: [0]
  ComputerName:
  IdentityName:
  LocalItem:
  Message: The item $/SetAllRequiredInfo.resx already exists.
  ResourceName:
  ServerItem: $/SetAllRequiredInfo.resx
  ItemId: 0
  WorkspaceName:
  WorkspaceOwner:

[02/04 14:33:22,Telerik.TestStudio.exe(2920:1),TeamFoundationServer] TFSServer._vcs_NonFatalError() : Non-fatal error handling TFS request: Failure instance 64398613
  RequestType: None
  Code: ItemExistsException
  Severity: Error
  Warnings: [0]
  ComputerName:
  IdentityName:
  LocalItem:
  Message: The item $/SetAllRequiredInfo.tstest already exists.
  ResourceName:
  ServerItem: $/SetAllRequiredInfo.tstest
  ItemId: 0
  WorkspaceName:
  WorkspaceOwner:

[02/04 14:33:22,Telerik.TestStudio.exe(2920:1),TeamFoundationServer] TFSServer.AddFiles() : Error adding files

Cody
Telerik team
 answered on 25 Sep 2013
4 answers
376 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
209 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
526 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
134 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
259 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
360 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
122 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
168 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?