Telerik Forums
Test Studio Forum
1 answer
62 views
Ok, I have a test that goes through a series of online reports and exports them one by one via the download dialog. It ran seamless under version 1117, however when I upgraded to 1413, it crashed and burned... it now gets hung on click events and/or download dialogs... I've watched it many times... and yes the download dialog is there, it's just TestStudio can't see or handle it for some reason? 

Any help would be greatly appreciated... :) 
Ivaylo
Telerik team
 answered on 12 Mar 2012
7 answers
123 views
I have tests that require me to handle file download dialogues, all works fine if I am automating the clicking of Cancel but although the recorder records the click of Save and the destination to save the pdf to, when I replay the test it will not click the Save button on the download dialogue. I have altered settings to uncheck 'close after download' but this doesnt help and only adds more problems. Any suggestions would be appreciated.

Thanks
Ivaylo
Telerik team
 answered on 12 Mar 2012
2 answers
153 views
We have reports that we run, and they are put into a queue. In the list of running reports, they can have a status of "Waiting in Queue", "Running Report", "Ready", "Error", etc...

I am wanting to setup a test step that will continue refreshing the queue list web page, count the number of "Waiting in Queue", or "Running Report" and only continue with running additional reports if the count is less than 10.

Does this make sense? And how would I accomplish such a thing in Test Studio?

Thanks in advance!
Scott
Top achievements
Rank 2
 answered on 10 Mar 2012
6 answers
233 views

In FireFox 10:

I have a confirm dialog that pops up asking if I would like to resend information.

Neither the Confirm or OnBeforeUnload dialog handles it properly (Resend does not appear in the list of button labels). This problem occurs in IE as well (Window named: Windows Internet Explorer, button named: Retry) but I have gotten around it with the blind Enter KeyPress.
 
I have attempted to make a Generic dialog handler for it as well as a blind Enter KeyPress, but both have failed.

Suggestions?

Generic dialog failure log:

'2/29/2012 5:44:48 PM' - 'Fail' : 43. Handle 'Generic' dialog. -- FIREFOX
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Timed out waiting '5000' msec. for any dialog to be handled '1'
InnerException:
System.TimeoutException: Timed out waiting '5000' msec. for any dialog to be handled '1'
   at ArtOfTest.WebAii.Win32.Dialogs.BaseDialog.WaitUntilAnyHandled(IEnumerable`1 dialogs, Int32 handleCount, Int64 timeoutMilliseconds, Boolean resetHandleCount)
   at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.DialogHandlerDescriptor.Execute(Browser browser)
   at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.DialogHandlerDescriptor.Execute(IAutomationHost browser)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
------------------------------------------------------------
'2/29/2012 5:44:48 PM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
------------------------------------------------------------
'2/29/2012 5:44:48 PM' - Overall Result: Fail
'2/29/2012 5:44:48 PM' - Duration: [1 min: 9 sec: 337 msec]
------------------------------------------------------------
 
<<< Test-as-Step '<xxxxxedited outxxxxx>.tstest' log ends.
 
InnerException:
System.TimeoutException: Timed out waiting '5000' msec. for any dialog to be handled '1'
   at ArtOfTest.WebAii.Win32.Dialogs.BaseDialog.WaitUntilAnyHandled(IEnumerable`1 dialogs, Int32 handleCount, Int64 timeoutMilliseconds, Boolean resetHandleCount)
   at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.DialogHandlerDescriptor.Execute(Browser browser)
   at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.DialogHandlerDescriptor.Execute(IAutomationHost browser)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)

"Blind" return key press code (which also fails (but works in IE)):

using Telerik.WebAii.Controls.Html;
using Telerik.WebAii.Controls.Xaml;
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using System.Windows.Forms;
 
using ArtOfTest.Common.UnitTesting;
using ArtOfTest.WebAii.Core;
using ArtOfTest.WebAii.Controls.HtmlControls;
using ArtOfTest.WebAii.Controls.HtmlControls.HtmlAsserts;
using ArtOfTest.WebAii.Design;
using ArtOfTest.WebAii.Design.Execution;
using ArtOfTest.WebAii.ObjectModel;
using ArtOfTest.WebAii.Silverlight;
using ArtOfTest.WebAii.Silverlight.UI;
 
namespace <xxxedited outxxxxx>
{
 
    public class <xxxxxedited outxxxxx> : BaseWebAiiTest
    {
        #region [ Dynamic Pages Reference ]
 
        private Pages _pages;
 
        public Pages Pages
        {
            get
            {
                if (_pages == null)
                {
                    _pages = new Pages(Manager.Current);
                }
                return _pages;
            }
        }
 
        #endregion
     
        [CodedStep(@"New Coded Step")]
        public void <xxxxedited outxxxxx>()
        {
            Manager.Desktop.KeyBoard.KeyPress(Keys.Enter, 200);
        }
    }
}














"Blind" return key press code (which also fails (but works in IE)):
John
Top achievements
Rank 1
 answered on 09 Mar 2012
2 answers
153 views
I'm fairly new to Telerik, so bear with me.  I'm wondering if someone can provide some advice on how to best manage the elements feature.  When beginning to build out my test suite, I first went through the target website and created elements for any items that are global or reused on multiple pages and named them with "friendly" names for reference.  However, I'm finding that as I build out my test suite, elements are automatically added using the default name it pulls from the source code.  What I end up with is a bunch of elements with vague/ambiguous names and it's a somewhat arduous task to go through and identify and rename them.  Also it appears that some may be duplicates or at least target various portions of existing elements.  What are the conditions in which an element will be auto generated?  This might help me to understand how to handle. 

Thanks in advance.
Richard
Top achievements
Rank 1
 answered on 09 Mar 2012
2 answers
151 views

 

Hi Guys
in Silverlight application, I would like to use element value from previous screen (Screen 1) in the current screen (Screen 2) see the attachments. The element value from the screen 1 is highlighted in Red. The element in screen 2 highlighted in Red too, the display value of this element in screen 2 depending on the value of screen 1, the value of the element in screen 1 is between 1 - 3 for each value there will be different display value in screen 2. I have tried to make the element in screen 1 as a variable and use it in screen 2, I have add script step and use If..else statement in the scripted statement, but the problem the value of the variable in screen 1 (data driven) not recognised in screen 2.

If you have any idea or example for this situation please let me know 


Best Regards
Talal 

Talal
Top achievements
Rank 1
 answered on 08 Mar 2012
4 answers
192 views
I am evaluating Test Studio for purchase but I've run into a problem.  I am testing a web application running inside Sharepoint 2010.  The app makes extensive use of modal popups using the Sharepoint javascript library [SP.UI.ModalDialog.showModalDialog(dOpt);] which are actually contained in an iframe.

I can record the test fine, but on playback I get an error when I tray to select or valdiate an element on the popup:

Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: System.TimeoutException: Wait for condition has timed out
   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)
   at ArtOfTest.Common.WaitSync.For[T,V](Func`3 func, T target, V custom, Boolean invertCondition, Int32 timeout)
   at ArtOfTest.Common.WaitSync.For[T,V](Func`3 func, T target, V custom, Int32 timeout)
   at ArtOfTest.WebAii.Core.Browser.WaitForFrame(FrameInfo frameInfo, Int32 timeout)
   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.GetFrameBrowserInstance(Browser topBrowser, FrameInfo frame, Int32 waitTimeout, String& stringError)
InnerException:
System.Exception: Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: System.TimeoutException: Wait for condition has timed out
   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)
   at ArtOfTest.Common.WaitSync.For[T,V](Func`3 func, T target, V custom, Boolean invertCondition, Int32 timeout)
   at ArtOfTest.Common.WaitSync.For[T,V](Func`3 func, T target, V custom, Int32 timeout)
   at ArtOfTest.WebAii.Core.Browser.WaitForFrame(FrameInfo frameInfo, Int32 timeout)
   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.GetFrameBrowserInstance(Browser topBrowser, FrameInfo frame, Int32 waitTimeout, String& stringError)
   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.WaitForAllElements(IAutomationHost host, AutomationDescriptor descriptor, Int32 timeout)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)


How can I get around this?

Thanks:

William Fedders
Aptera
El_Topo
Top achievements
Rank 1
 answered on 07 Mar 2012
1 answer
59 views
Hi All,

We are testing a silverlight application. The recording is successful up until the user click on the login button. Therafter the application hangs in the tool. 

See attached snapshot.

Please advsise. No errors are generated.  

Regards
Lenore
Ivaylo
Telerik team
 answered on 06 Mar 2012
3 answers
109 views
When i save a manual test result by using "reset results" ("save results" i can not use since i do not now where the result is saved...), then open the test result file (in the result viewer), then doubleclick on an individual test case, i receive the following error.
(I am adding a screenshot to the test case while manual testing, but it seems there is no information stored on a test case level besides pass/fail)
Any help available?

Description:

Stopped working

Problem signature:

Problem Event Name: CLR20r3

Problem Signature 01: telerik.teststudio.resultsviewer

Problem Signature 02: 2011.2.1117.0

Problem Signature 03: 4ec4da3b

Problem Signature 04: ArtOfTest.WebAii.Design

Problem Signature 05: 2011.2.1117.0

Problem Signature 06: 4ec4dafe

Problem Signature 07: ff5

Problem Signature 08: 1f

Problem Signature 09: System.NullReferenceException

OS Version: 6.1.7601.2.1.0.272.7

Locale ID: 3079

Read our privacy statement online:

http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

 

 

If the online privacy statement is not available, please read our privacy statement offline:

 

C:\Windows\system32\en-US\erofflps.txt

 

 

Stoich
Telerik team
 answered on 05 Mar 2012
1 answer
132 views

Hi All,

At this stage the company has only one license. We would like to release the license used by a tester on his local machine.  

 

Please advise on how we action this on his installation?

 

Regards
Lenore

Ivaylo
Telerik team
 answered on 05 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?