Telerik Forums
Test Studio Forum
1 answer
217 views
Hi,

I am getting error-"Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: Waiting for frame '[Frame:name=Frame_0,src=^http://10.,UseQuery:False]' timed out. Error: Wait for condition has timed out".

I have recorded my applicaton on one build url and it's running fine, however it's showing above error at Modal popup box while running it on different url.I have already followed the guidelines as mentioned in this link http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/recording-tests/frames.aspx ,


Please help me to resolve this issue

Thanks,

Anuj
Stoich
Telerik team
 answered on 03 Jul 2012
1 answer
120 views
I'm trying to eliminate fixed Execution Delays in a test and there has to be a better way.  

The problem.  We are entering clients into a page and the save only occurs when you navigate off the page or click on the link that brings you to the page that you are already on.  In automation, after entering the client data, I am clicking on the link that brings you to the same page.  However, when I click on this link, there is a delay before the page loads.  So, without an execution delay, the script often fails because it is going to the next step which is wait for an element to exist.  The problem is that it existed before the page had time to refresh.  I have entered a ActiveBrowser.WaitUntilReady and that didn't help.  This isn't an ajax thing either.   I also tried waiting until an element doesn't exist and waiting until it existed again which didn't seem to work either. Any suggestions?

Thanks,

Jonathan
Ivaylo
Telerik team
 answered on 03 Jul 2012
5 answers
96 views
Hi,

Please help in resolving the below issue.

1. I have recorded a test step that verifies the count of labels in a chart.
     When it is executed, it fails with the error in log as below:

        Failure Information: 
        ~~~~~~~~~~~~~~~    
        Unable to cast object of type 'System.Int32' to type 'System.String'.
        InnerException:
        System.InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.String'.
           at Telerik.WebAii.Design.Translators.Xaml.Common.RadControlStringPropertyVerificationDescriptor.Verify(DescriptorValueStore dataStore)
       at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)

2. I convert the same step to a coded step and do NOT change any code.
    Now, when the test is executed, this step fails with a different error as below:
        Failure Information: 
        ~~~~~~~~~~~~~~~
        Exception thrown executing coded step: '[StringErr_CodedStep] : chartarea: Chart series item label count 'Same' '6'., RequiresSilverlight=True'.
        InnerException:
        ArtOfTest.WebAii.Silverlight.ExecuteSilverlightCommandException: [Silverlight Extension Error] Details:     ArtOfTest.WebAii.Silverlight.NoSuchPropertyException: Property 'SeriesItemLabels.Count' does not exist on the element
            at Telerik.TestingFramework.XamlExtension.ClientServices.GetRealProperty(AutomationReference reference, AutomationProperty property)
           at Telerik.TestingFramework.XamlExtension.ClientProcessor.ProcessCommand(String command)
           at ArtOfTest.WebAii.Silverlight.SilverlightProxy.ExecuteSLCommand(SilverlightCommand cmd)
           at ArtOfTest.WebAii.Silverlight.SilverlightProxy.GetProperty(AutomationProperty property, IAutomationPeer peer)
           at ArtOfTest.WebAii.Silverlight.AutomationObject`1.GetProperty(AutomationProperty property)
           at StringErr.StringErr_CodedStep() in C:\Caliper UI Automation\In Progress\TestProject1\StringErr.tstest.vb:line 73

Cody
Telerik team
 answered on 02 Jul 2012
5 answers
363 views
Hi,

I am currently evaluating WebUI QA edition. As of yesterday, I had the scheduling and executing servers set up. After a reboot today, I am unable to schedule tests. My execution server is no longer registered. And when I try to make a test connection to the scheduling server inside of WebUI QA (Project tab), it says that the Scheduling service is not running. When I try to click on "Configure as a Scheduling Server" the window pops up with everything greyed out. I go into Windows services to try and start the WebUI Secheduling service manually, but it says something to the effect of: "the service started and then stopped" and "Some services stop automatically if they have no work to do..."

I am running a VM with Windows Server 2003 SP2.

I would appreciate any help you can offer. Thanks.
Stoich
Telerik team
 answered on 02 Jul 2012
1 answer
93 views
Hello:
      When we are trying to add kendo objects of the same page a new page is being created with a different index under the object explorer.Please help us in undersatnding the error and also suggest us where we can get examples on all the kendo controls as we are facing lots of issues in working with kendo UI in writing code.Please help us in this regard ASAP
Anthony
Telerik team
 answered on 29 Jun 2012
1 answer
150 views
Hi, 

I want to launch chrome with arguments "--enable-logging --v=1".
As far as i can seee, chrome arguments are hardcoded in the LaunchNewBrowserInternal  
method. 


private static void LaunchNewBrowserInternal(string startUrl)
{
      string str = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "Google\\Chrome\\Application\\chrome.exe");
      if (!System.IO.File.Exists(str))
      {
        str = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), "Google\\Chrome\\Application\\chrome.exe");
        if (!System.IO.File.Exists(str))
          throw new FileNotFoundException("Chrome browser is not installed on this machine", str);
      }
      string arguments = string.Format("-new-window -home-page {0}", (object) startUrl);
      Process.Start(new ProcessStartInfo(str, arguments)
      {
        Verb = "open",
        WindowStyle = ProcessWindowStyle.Normal
      });
 }


But I can pass "arguments" to the public LaunchNewBrowser method. Is this a bug? 
thanks,
stefan.
Stoich
Telerik team
 answered on 29 Jun 2012
2 answers
146 views
Hi Team,

Is it possible to create our own object repository,  so that it can be easily editable and maintained if any page element object get changed, as pages.g.cs file is read only?

Problem we are facing is that our Automation Test Suite would be having thousand of test cases and to maintain and update them as per any changes in application may become cumbersome for us without any updatable Object repository. Please suggest a work around for this.

Thanks,

Anuj
Anuj
Top achievements
Rank 1
 answered on 29 Jun 2012
1 answer
77 views
With the goal of building end to end scenarios I have a pyramid of tests and putting them together so they all work flawlessly. The biggest pet peeve I have with Test Studio is that when I am in a test and I click on a subtest (test as a step), I can not easily return to the parent test.

I think a excellent feature would be to add a button synonmous to the standard internet browser back button where when clicked brings you to the last test accessed... This would make debugging large end to end scenarios much easier!

Cheers
Jon
Byron
Telerik team
 answered on 28 Jun 2012
1 answer
130 views
Hi,

Application --> Click on button which open Silverlight window --> Select Element inside(Cell) rows/columns grid
While recording its able to identify elements and shows circle/nub while playing this recording fails to select that element.

Thanks,
Deepak
 
Anthony
Telerik team
 answered on 28 Jun 2012
19 answers
331 views
Hello, I am creating a test for my company's WCM application and when I add the invocation of the OnClick event on an HTML element, the step just hangs once the OnClick finishes.

I have looked everywhere and was unable to find a solution to this issue.  Any help would greatly be appreciated. 

Exception message follows:

ArtOfTest.Common.Design.Exceptions.ExecutionException: Wait for condition has timed out ---> System.TimeoutException: Wait for condition has timed out
   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)
   at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType)
   at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout)
   at ArtOfTest.WebAii.Core.Browser.WaitUntilReady()
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request)
   at ArtOfTest.WebAii.Core.Actions.InvokeEvent(Element targetElement, ScriptEventType eventType)
   at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.InvokeEventActionDescriptor.Execute(Browser browser)
   at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
   --- End of inner exception stack trace ---
Anthony
Telerik team
 answered on 27 Jun 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?