Telerik Forums
Test Studio Forum
2 answers
121 views
I am facing a situation related to data binding. Here are the steps I am following:
1. During my recording I am keying in some value in a search text box.
2. Based on these values some search results are returned by the application (database).
3. I click on one of the search results and follow the rest of the process and stop recording.
4. Now, I data bind my 1st step (the 'search text box' step.).

But when I execute the recording it fails as Test Studio (TS) searches for exactly those words that I clicked on in the 3rd step when I was recording the test case. For example, if my search returned "SYSTEM" during the recording process and I clicked on it, TS looks for "SYSTEM". But if I data bind the search step then the search results are different and TS doesn't find the word "SYSTEM" and the execution results in a failure.

Please suggest something...

Thanks!!!
Kumar  
Vaibhav
Top achievements
Rank 1
 answered on 18 Nov 2011
3 answers
137 views
Hello Telerik Team,

I am facing problem with the recording. When i record any step on  base setup(Url) of our product it ran successfully but when i ran the same step(Script) on our client setup(Url) it fails and give error:"Unable to locate the target host. After  re-recording  the same step on client setup it creates the new frame for that step and ran successfully. Why this happens? I want to make my script generic so that it can be executed on client steup also.Please provide help. Also tell the reason why it create the New frame in Element Explorer, I am recording the Same step just changing the Navigation URL from base to client. 

Failure Information:

~~~~~~~~~~~~~~~

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(Browser browser, AutomationDescriptor descriptor)

   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep() .

Anthony
Telerik team
 answered on 17 Nov 2011
3 answers
91 views
Hello,
I scheduled a test recently which consists of a simple login test for an application with a 14 minute wait after the test is completed. I then add this test to multiple additional tests as a "test as step".  This allows me to repeatedly loop through my login test so I can have it run approximately every 15 minutes for serveral hours on a single schedule.  Works great except that my test hung recently.  On hitting a linkbutton a javascript confirm box is displayed.  Unfortunately the confirm box was made unavailable as it was removed from the foreground by an errant click.  This hung the test which did send out a failure message via script I have in the OnAfterTestCompleted event.  However the test never seems to have really ended causing multiple scheduled tests to back up and not be executed.  What I am wondering is when a test hangs like this how can I detect it, close the browser window and allow subsequent tests to execute?  Please let me know if you would like more information or clarifications.

Thanks in advance,
Nick
Stoich
Telerik team
 answered on 17 Nov 2011
1 answer
93 views
While Im trying to connet to Oracle , it is throwing below error.
Missing close tag in element global::Telerik.UserSettings.Data.UserSetting.
I installed Oracle Studio first and then  Telerik Controls. I cant find any fix in online either. Need help

Thanks,
Naresh
Anthony
Telerik team
 answered on 16 Nov 2011
1 answer
51 views
When using SilverLightMenu.Library ( an opensource  menu control for Silverlight) , the recording of  a left-click on the menu appears to work.
However , on playback the menu item (which is actually a rectangle ) can not be found to be left-clicked in the test .
If however I hover over the menuitem while playback is running,the item is found and the left-click occurs.
 
[CodedStep(@"LeftClick on Item1Rectangle", RequiresSilverlight = true)]
        public void WebTest1_CodedStep2()
        {
          // LeftClick on Item1Rectangle
            Pages.SilverlightApplication.SilverlightApp.Item1Rectangle.User.Click(ArtOfTest.WebAii.Core.MouseClickType.LeftClick, 32, 50, ArtOfTest.Common.OffsetReference.TopLeftCorner, ArtOfTest.Common.ActionPointUnitType.Percentage, ((System.Windows.Forms.Keys)(0)));


        }

 Any idea? Thanks


Anthony
Telerik team
 answered on 16 Nov 2011
4 answers
56 views

I have Tried a  test to verify the values loaded in the dropdown from the site "http://www.asp.net/ajaxlibrary/AjaxControlToolkitSampleSite/cascadingdropdown/cascadingdropdown.aspx"
When I execute the recorded script throws error at step 4 where it doesn’t throws error at step 2 (Step 2 and Step 4 are similar).

The issue happens only in IE9 but it works fine when we switch to compatibility mode.
Attached the sample project.

Anthony
Telerik team
 answered on 16 Nov 2011
5 answers
128 views
Hi,
I tried to schedule test runs, my schedule server is win7, execution servers are xp and win2003st. Process of schedule.client.exe on ES was killed after running some times, this issue happened on both xp and win2003 in different time. how to solve it?
Stoich
Telerik team
 answered on 16 Nov 2011
26 answers
369 views
Does WEB UI Test Studio QA Edition integrate with MS BUILD so we can run our nightly smoke test plan when a new build is created?
Cody
Telerik team
 answered on 15 Nov 2011
3 answers
77 views
Hello,

Another one of my tests is check how works the Test Tool in different browsers. When running the test in IE and Firefox it works fine, but when I'm running it with Chrome it stops when trying to click a button, it stops trying "Locating elements...." and it seems it never works. How could we check where is the problem?.

Thanks
Anthony
Telerik team
 answered on 15 Nov 2011
7 answers
277 views
I am new to Test Studio.  I've created a script against an internal web application which requires a date input.  The script enters the date from an Excel file and then processes the data for that date.  Works great.

But if an invalid date is entered, then a Windows "Message from webpage" alert dialog pops up.  In this case, I want the script to take a different path.  I am able to insert a "Handle 'Alert' dialog" step.  But this is not conditional.

Test Studio apparently doesn't see the alert as a screen element because it's not in the DOM.  So how do I create a verification step to check if the alert has popped up or not?  Or more accurately, how do I get the test to perform different steps if the alert has popped up?
Anthony
Telerik team
 answered on 15 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?