Telerik Forums
Testing Framework Forum
3 answers
66 views
Hi,

searching for UI elements in the visual tree using the Find class is very common in UI tests. Calling SilverlightApp.RefreshVisualTrees or FrameworkElement.Refresh is quite expensive and slows the test execution down, but sometime unavoidable (as far as I know) to detect newly created elements, popups etc.

In most cases, it is clear for which dialog/popup etc. I'm looking for. I know where in the visual tree it will appear. But I always have to call Refresh on the (potential) parent (or even SilverlightApp.RefreshVisualTrees), which seems to work through the entire (sub-) tree.

I'd like to limit the search/refresh depth in theses cases. Is this possible somehow? Is it a sensible feature request?
Some other ideas how to speed up the detection of newly created elements?

Regards,
Andreas
Cody
Telerik team
 answered on 06 Nov 2012
1 answer
149 views
Hi,

I've been having a problem clicking on a checkbox, the checkbox starts by being disabled, when you press the edit button it becames enabled, but either creating and element or creating a HtmlInputCheckBox and trying to click or check doesn't work.

Both controls are inside an update panel, and the control always remains with the disabled attribute in either Element/HtmlInputCheckBox.

I have tried the Refresh() and myManager.ActiveBrowser.RefreshDomTree() but without success.

Any ideas?

Thanks in advance,
Hugo
Hugo
Top achievements
Rank 1
 answered on 06 Nov 2012
3 answers
203 views
We encounter problems debugging coded steps after installing VS2010 hotfix KB2736182.
When clicking the "Debug Test in Current Context" an error appears, while this was working before installing the hotfix.
The following error shows up: 

Failed to queue test run '<computer name> <time>':
Method not found: 'Void Microsoft.VisualStudio.TestTools.Agent.AgentProcessManager.SetCurrentPlatform(System.Reflection.ProcessorArchitecture, Microsoft.VisualStudio.TestTools.Common.AssemblyClrVersion)'  


Does anyone else encounter problems with debugging or know a fix / workaround?
Plamen
Telerik team
 answered on 05 Nov 2012
5 answers
290 views
HI

There are a lot of tests in a testlist.When a test  fails due to a fact that the browser is not responsing or the browser can not be closed,the other tests after the test can not be executed.So i just want to know how to close the browser when the browser is not responsing,so that the other test can be executed.

Thanks for your answer.
Plamen
Telerik team
 answered on 31 Oct 2012
9 answers
162 views

Hello.

Our product hardly used RichFaces elements but WebAii cannot click on them.

for example (more important problem): Webaii can find node in RichFacess tree but it can't click on natively. Just nothing happens.

I can click with .MouseClick(MouseClickType.LeftDoubleClick) but it works only sometimes.

Anton
Top achievements
Rank 1
 answered on 24 Oct 2012
1 answer
119 views
Hi,
Test Environment: Visual Studio + Firefox

I have a problem working with the save as dialog, and it's that after some time of being working perfectly, it suddenly stops working, I mean I can download an average of 10 files, and then after that suddenly the Save As dialog does not work anymore, this is the piece of code that I'm using to Save a file:

As you can see, I'm simulating the file menu with some clicks, (if you have a better idea please let me know) because it's kind of complicated, and then I'm creating the SaveAs Dialog and adding it to the monitor, as I said it works sometimes and then suddenly it stops working.

Could you help me please?

System.Threading.

 

Thread.Sleep(1000);

 

 

 

Element input2 = myManager.ActiveBrowser.Find.ByTagIndex("table", 0);

 

myManager.ActiveBrowser.Actions.ScrollToVisible(input2);

 

myManager.ActiveBrowser.Desktop.Mouse.Click(

 

MouseClickType.RightClick,0,150);

 

myManager.ActiveBrowser.Desktop.Mouse.Click(

 

MouseClickType.RightClick, 0, 150);

 

 

System.Threading.

 

Thread.Sleep(500);

 

System.Drawing.

 

Rectangle Coor3 = input2.GetRectangle();

 

Coor3.X = Coor3.X + 10;

Coor3.Y = Coor3.Y + 10;

myManager.ActiveBrowser.Actions.ScrollToVisible(input2);

myManager.ActiveBrowser.Desktop.Mouse.Click(

 

MouseClickType.LeftClick, 10,240);

 

 

 

 

SaveAsDialog saveas3 = SaveAsDialog.CreateSaveAsDialog(myManager.ActiveBrowser, DialogButton.SAVE, "C:\Test", myManager.Desktop );

 

myManager.DialogMonitor.AddDialog(saveas3);

 

 

 

 

 

 

try

 

{

 

saveas3.WaitUntilHandled(10000);

myManager.DialogMonitor.RemoveDialogs();

 

}

 

 

catch

 

{
}

Stoich
Telerik team
 answered on 24 Oct 2012
5 answers
193 views
Hello
It is possible to run a test through Web app to test another Web app??
What I'm trying to do is build a UI (Visual Studio) with a menu, then select one link and run a test.
Already have the tests using Telerik.WebAii library, and in the local machine works fine, but when I deploy the app on the IIS(7), doesn't do anything.
I'm I doing something wrong, or maybe it's not possible??
In case it's possible, do you have to install Test Studio on every PC you want to run the Test, or the test runs with the server configuration??
Thanks in advance.
Stoich
Telerik team
 answered on 18 Oct 2012
14 answers
312 views
I'm trying to access IE 10 in the Win8 Consumer Preview, and cannot connect to IE. When it comes up, I only get the about page, and it never reports that it is being configured for automation.

Do you have a build that works with IE 10 yet?
Cody
Telerik team
 answered on 12 Oct 2012
1 answer
156 views
I'm attempting to run some testcases that I created in Test Studio by simply using ArtOfTest.Runner.exe.

I have two tstest files in a root folder, a test list file in a folder called "TestLists", and the DLL for the project in the "bin" folder.
With that setup I can then run the test using this command:
ArtOfTest.Runner.exe list="C:\temp\TelerikTest\TestLists\MelindaList.aiilist"

However, if the DLL is not in a folder called "bin", or if the tstest files (the ones in the test list) are not one folder up from the test list, everything fails to run. I can't find anyway to specify the location of the DLL file or change where the test list is looking for the testcases.

Can anyone help with the proper way to deploy and execute a test list using ArtOfTest? Not every machine that I want to run the tests from will have Visual Studio with the Telerik ad-on, so I want to be able to run the tests independently from Visual Studio or Test Studio, but I'm having a hard time figuring out the best practices for deploying the tests once I've written them. Any advice would be appreciated.
Mario
Telerik team
 answered on 12 Oct 2012
1 answer
99 views
Hi,

The Silverlight application I am testing has a popup with the text inside it "Cannot delete ABC." where ABC is the name of the object.

Doing this works and it finds the popup:
var foundPopup = popup.VisualTree.Find.ByExpression(new XamlFindExpression("TextContent=Cannot delete ABC"));


But...
The object isn't always going to be called ABC. I'd like to parameterise it. I was hoping a regular expression or something like that could be used to do this.

What is the best way to have a wildcard substitute for ABC?

Thanks,
Dren
Plamen
Telerik team
 answered on 11 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?