Telerik Forums
Test Studio Forum
4 answers
294 views
I'd like to insert a step into my tests to refresh the browser before navigating to the target web page.  I thought I could easily do this by using the Simulate User or Simulate Typing functions, but I'm having difficulty doing so.  Anyone have any direction for me?
Richard
Top achievements
Rank 1
 answered on 15 Mar 2012
1 answer
214 views

<html>
 
<head>
 
<body class="yui-skin-fmc skin-lincoln nameplate nameplate-MKS2012 selldown">
 
<iframe id="_yuiResizeMonitor" title="Text Resize Monitor" style="position: absolute; visibility: visible; width: 2em; height: 2em; top: -31px; left: 0pt; border-width: 0pt;">
 
<div id="global-flips">
 
<div id="page">
 
<div id="header" class="nameplate nameplate-MKS2012 selldown">
 
<div id="view-hd-line">
 
<div id="view-container" class="view-incentives">
 
<div id="view">
 
<div id="view-bd" class="view-bd">
 
<div class="incentives_header">
 
<div class="incentives-select-vehicle">
 
<div id="incentives-content" data-year="2012" data-model="MKS" data-iframebase="https://lincoln-incentives.fdv3.com//Page/">
 
 
<html>
 
<head>
 
<body>
 
<script src="/Scripts/Lincoln.Omniture.Control.js" type="text/javascript">
 
<script type="text/javascript">
 
<script type="text/javascript">
 
<script type="text/javascript">
 
<div class="incentive">
 
<script type="text/javascript">
 
<div class="flipFilter">
 
<select style="display : none;" name="modelDescription">
 
<div>
 
<div class="zipChange">

If i want to find  <div class="zipChange"> under <iframe id="incentives-iframe" class="active" frameborder="0" src="https://lincoln-incentives.fdv3.com//Page/?zipcode=48152&year=2012&make=Lincoln&model=MKS&site=NG&app_context=ngbs_sploffr">

how can do it??

Anthony
Telerik team
 answered on 14 Mar 2012
2 answers
224 views
Hello,

Is there a way to force an exit out of a loop using the UI or should this be handled in code?

Here is my scenario: I am searching for a customer immediately after creating it.  Rather than specifying an execution delay, I'd rather have Telerik repeat this search until it is found, however if unsuccessful after 10 tries, then give up.  I could use the 'Loop' and specify 10 times, but if the customer is found on the second attempt, I don't want to execute the loop 8 more times.  I could use the 'While...Loop', but if the customer is never found, the search will continue infinitely.

Any thoughts?  Thanks!
Alan
Top achievements
Rank 2
 answered on 14 Mar 2012
1 answer
188 views
My test recently started displaying the Windows Internet Explorer dialog with the message below and see attached... How can I handle this in a coded step if it appears... keep in mind sometimes it doesn't appear.... geez...

Also, the webpage I am refreshing has nothing to do with purchases or buying anything... it's not a shopping site at all....


Message is:

To display the webpage again, the web browser needs to resend the information you've previously submitted.

If you were making a purchase, you should click Cancel to avoid duplicate transaction. Otherwise, click Retry to display the webpage again.
Ivaylo
Telerik team
 answered on 13 Mar 2012
1 answer
125 views
Often when the download dialog is presented while testing a website, sometimes it takes clicking the Save button twice, before it actually proceeds with giving it a name and then downloading the file. When this happens TestStudio hoses since it tried to click the Save button once already but nothing happened... so then it just sits there until it times out and then of course fails the test.

What could be causing this behavior in IE8?? And how can I get TestStudio to work around it?
Ivaylo
Telerik team
 answered on 13 Mar 2012
1 answer
159 views
If the confirm save as dialog comes up, usually when it needs to overwrite an already existing file... it locks up TestStudio and IE8... I'm not sure what is going on here... I had these tests working perfectly, and when we imaged the machine to move it to a VM on our VM servers... weird download issues started occuring...

Is there an issue with TestStudio running on a Virtual Machine, it's Win7 Pro.. and my user is part of the local Administrators group.

Thanks in advance!
Ivaylo
Telerik team
 answered on 12 Mar 2012
1 answer
97 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
151 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
194 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
271 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?