Telerik Forums
Testing Framework Forum
3 answers
54 views
Hi,

Frames test that comes together with your framework (%program files%\Telerik\Test Studio\Samples\Testing Framework\QuickStarts_NUnit_CS\Tests\Frames.cs) fails on machine with IE9 and Windows 7 (32-bit) with the following error:
QuickStarts_NUnit_CS.Frames.FramesAction:
System.NullReferenceException : Object reference not set to an instance of an object.
 
at QuickStarts_NUnit_CS.Frames.FramesAction() in c:\Program Files (x86)\Telerik\Test Studio\Samples\Testing Framework\QuickStarts_NUnit_CS\Tests\Frames.cs:line 138

Latest WebAii version is used - 2013.2.1327.0

The same tests passes on IE11 and Windows 8.1

Konstantin Petkov
Telerik team
 answered on 04 Apr 2014
5 answers
76 views
I am currently using Testing Framework with Firefox 28.0.  I have noticed that the ActiveBrowser.Wait... functions slow page load considerably.  I frequently get the error, "Document is not ready to retrieve its markup."  The only way I could consistently avoid this error when I needed to wait for an element was to first call ActiveBrowser.WaitUntilReady(), and then call  ActiveBrowser.WaitForElement(...) to wait for the element I was actually looking for.  I needed a high timeout on the WaitForElement(...) call, also. 

Is there a better way to avoid this problem?  I can switch to a different browser if that would help.
Cody
Telerik team
 answered on 02 Apr 2014
1 answer
102 views
Hi,
    I am trying to implement the automation for a wps application. But encounter an issue that I can not click the item on the popup menu whick appears after rightclick an item.
    Below is my script:
          wpfApp.Manager.ActiveApplication.MainWindow.Find.ByTextContent("专题列表").User.Click(MouseClickType.RightClick, 250, 77, OffsetReference.TopLeftCorner, ActionPointUnitType.Percentage, ((System.Windows.Forms.Keys)(0)));
    After this step, I will click the item "添加专题" like below statement
          wpfApp.Manager.ActiveApplication.MainWindow.Find.ByTextContent("添加专题").User.Click(MouseClickType.LeftDown, 70, 29, ArtOfTest.Common.OffsetReference.TopLeftCorner,ActionPointUnitType.Percentage,((System.Windows.Forms.Keys)(0)));
    But it is failed. the item "添加专题" can not be clicked.
Ivaylo
Telerik team
 answered on 02 Apr 2014
1 answer
129 views
I Have been assigned Telerik Test Studio Runner Licence by the client.Where in Test Scripts on remote machine can be run on my machine. I followed the following steps for installation and Configuration setup.

1. Downloaded the TestStudio_2013.2.1327_Runtime.msi file
2. Installed the TestStudio_2013.2.1327_Runtime.msi
3. Created the Sheduling server
4. Created an Execution Server
5. ​Created a Test List
6. Connected  to the Scheduling Server
7. Run List Remotely

I got an error on the remote machine , when i tried to give Run command  from the Remote machine. The snapshot of the error Please Find for the snapshot of the error in the Attachment.
Velin Koychev
Telerik team
 answered on 28 Mar 2014
3 answers
105 views
Hi,

I am trying to automate a .aspx page which is using Telerik controls. Few controls in this page are not being identified by Visual studio test manager. So I have been suggested to install Telerik testing framework. Now that I installed the framework, for starters like me, can you please let me know how this is used to build automated tests. How can we use this to identify the Telerik controls on .aspx page.

Please see attached screenshots showing button and dropdown are not identified as themselves. They are being recognized as something else by VS test manager. Can this framework be helpful to identify such objects and work on them?

Boyan Boev
Telerik team
 answered on 28 Mar 2014
6 answers
370 views
Currently I am using Framework version 2013.2.1210.0 and I am having a problem capturing images of our application.

I have tried on multiple control elements and get an image exactly correct in size but white. I went right to the top of the stack and captured the Wpf Window using Manager.Log.CaptureWindow() and this gave me a screenshot of the application but displayed all white except the windows title bar which was in full colour and included the minimise/expand/close buttons. I did also try Manager.Log.CaptureDesktop() which did get the image of the application along with the desktop however this is no good to me at this level as I am trying to do some image comparison/verification of a single element.

I have tried the following with the same white image the same size as the control trying to be captured 
myControl.Capture()
Window.GetBitmap(myControl.GetScreenRectangle)

What could be happening to cause none of the application top be captured?
Velin Koychev
Telerik team
 answered on 26 Mar 2014
4 answers
271 views
Hi all,
I'm trying to create UI automation test for my silverlight app and I have a problem.
There is ItemsControl with VirtualizingStackPanel where I show some items.
Firstly the ItemsControls contains 40 items and then I use search that limits the number of items.
But when I look the property "Children" of VirtualizingStackPanel it still has 40 elements.
I tried to call the method "Refresh" (of the virtualizing stack panel).
Tried to call App.RefreshVisualTrees().
But nothings helps.
I'm sure that the tree contains only 1 element (I see it using XAML Spy).
But VirtualizingStackPanel still has 40 elements.
Does anybody know some way to force "true"-refresh?

The version I currently use: 2013.2.1327.0

Thanks in advance for any help,
Artem
Boyan Boev
Telerik team
 answered on 20 Mar 2014
1 answer
125 views
Hello,

I have a few unit tests that I had to introduce pixel based click events to get around not being able to reference the save buttons in the file download control of the browser.

To be more specific, I am referring to when you are being prompted to download a file and depending on the browser it will have a save button, or save as etc.

In my unit tests, I first need to download the CSV file before I can read it in and evaluate some data. The only way I could figure out how to do this is by hard-coding a pixel based click event. After reading online, it appears its impossible by legal means to access the protected and non-exposed controls for the file downloading through the browser via client-side functionality.

Is there any other way to accomplish this?

This testing framework being used is for the ASP.NET MVC 4.5 web application. 
Boyan Boev
Telerik team
 answered on 19 Mar 2014
3 answers
180 views
Hi 

I'm using the demo version of the telerik test studio in visual studio and planning to purchase the product to automate a WPF application.

As in the given screenshot, when I click on the Submit button, A messagebox appears.
And I need to get the text given in the messagebox for verification.

But I can't seem to get the text using any method given in your documentation.

http://docs.telerik.com/teststudio/user-guide/code-samples/html/verify-dialog-text.aspx

Quick help is really appreciated.


Thanks You.

Velin Koychev
Telerik team
 answered on 18 Mar 2014
1 answer
74 views
Hello,

I have a problem in a scrip test, so basically the scripts is:

1:  foreach(HtmlControl e in searchResultsList) {
2:    HtmlControl btnShowDates = e.Find.ByAttributes("class=~btn half-btn").As<HtmlControl>();   
3:    btnShowDateLabel = btnShowDates.BaseElement.InnerText;
4:    if (btnShowDateLabel.Contains("Show Dates") && btnShowDates.IsVisible()){        
5:        btnShowDates.Click();          
6:        ActiveBrowser.RefreshDomTree();
7:        HtmlControl btnHideDatesLabel = e.Find.ByAttributes("class=~btn half-btn").As<HtmlControl>();                    
8:        btnHideDateLabel = btnHideDatesLabel.BaseElement.InnerText;                    
9:        Log.WriteLine("Label :" + btnHideDateLabel + " after click on Show Dates")
10: }

After click in step 5, I added a RefreshDomTree(), because the label is displaying another text. For example before perform click on this element, the text is "Show Dates" and after click on it, the text is "Hide Dates". I validated that text changed well in the UI (during test execution) but when I review the log I am still reading the text previous to perform click, in this case "Show Dates" when I expected to read "Hide Dates". It sames like RefreshDomTree is not working. The test script run on FF and IE9.

Any suggestion improve the script?

Thanks.

Ariel.


Boyan Boev
Telerik team
 answered on 17 Mar 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?