Telerik Forums
Testing Framework Forum
14 answers
666 views
I'm running test in 4 browsers (Chrome, FF, IE and Safari). 
The navigateTo(url) method sometimes takes 3-5 sec but sometimes 15s.
I have AutoWaitUntilReady setting set to false. I run the same tests in all four browsers.
Can I decrease this (navigateTo) time? It can be 3-5sec but the problem is when it takes more than 5. I have time limit for each test so I can wait so long.

Plamen
Telerik team
 answered on 29 Mar 2013
5 answers
356 views
Hi there

While I know that the Telerik Testing Framework officialy does NOT support 3rd party controls like the ones from DevExpress (except of course the Telerik controls), I'd like to make things work with the file upload control from DevExpress.

See it in action here: http://demos.devexpress.com/aspxperiencedemos/uploadcontrol/Example.aspx

It has some magic (input control follows the mouse while the mouse is over the control). You can see the behaviour when inspecting the element (for example in Chrome). But if I try to click anywhere, nothing happens (at least in chrome). 

Is there any way to make this work?

Thank you very much.
Florian
Boyan Boev
Telerik team
 answered on 29 Mar 2013
3 answers
130 views
I've created a unit test that runs perfectly in chrome but is unable to click or hover an HtmlAnchor when IE = browsertype. See attached DOM tree.

[TestMethod]
        [TestCategory("Nightly")]
        public void SearchTest()                  
        {

            Manager.LaunchNewBrowser(BrowserType.Chrome);

            ActiveBrowser.NavigateTo("http://someURL.aspx");

            Pages.AdeptHome.AdeptLink.Click(false);

            Pages.AdeptWelcome.Markets.MouseHover();
            Pages.AdeptWelcome.Texas.Click(false);



Cody
Telerik team
 answered on 27 Mar 2013
31 answers
862 views

I've got a list of entries in a page that I would like to iterate through. I was hoping to do this, without having to record each and every entry, using a count of the items and an iterator.

I modified my code to include a reference to the item in the pages.g.cs file (by inspecting the DOM for the page). Do I need to create an entry under the tstest file?

<d2p1:AutomationStep i:type="d2p1:AutomationStep">
      <d2p1:ContinueOnFailure>false</d2p1:ContinueOnFailure>
      <d2p1:CustomDescription i:nil="true" />
      <d2p1:Description>RadListBoxItem
etc...

Cody
Telerik team
 answered on 26 Mar 2013
3 answers
132 views
While recording i am having a combo box with check boxes in it, when i select one of the check box from combo box it is not able to record. In debugging i am not getting the field value as expected. 
Plamen
Telerik team
 answered on 24 Mar 2013
2 answers
418 views
Hi,

Can you tell me what is the difference between the Method WaitForAjax() and this snippet:

browser.Manager.Wait.For (c =>
       browser.Actions.InvokeScript<bool> ("Sys.WebForms.PageRequestManager.getInstance().get_isInAsyncPostBack()") == false, false, timeout);

I always thought that WaitForAjax() should do the same, but there are situations where it doesn´t wait (long enough) but this snippet does.

Kind regards
Silvio
Silvio
Top achievements
Rank 1
 answered on 22 Mar 2013
13 answers
581 views
I am new to Telerik . I have recorded a sample test given in user guide. I used data binding feature to bind  a local data  table to text input
in a search box of web page. I want to verify whether it extracted correct value from table and putting it in to text box. When I run test it shows launching browser, going to url but then it just hang up. Is there any way to check the extracted value from data table at run time like getting it displayed in messagebox. I tried using  a script step to insert a script step " MessageBox("Value of Col is")
in the code behind file. But I received an exception with function name not found?
Please help me out. Thanks in advance for your time and help!

Plamen
Telerik team
 answered on 20 Mar 2013
2 answers
117 views
Hey Team, I am working with an element that has a Boolean attribute:

<INPUT id=SimpleSearchField class=Search_Simple_textField disabled value='"Hello "World"' maxLength=1000 type=text>

The "disabled" attribute, which Telerik parses as just disabled, and IE 8 parses as disabled="disabled".

I cannot run any verification on this attribute, and I am also having difficulty locating it in a coded step as well. Do you have any advice?
Baxter
Top achievements
Rank 1
 answered on 15 Mar 2013
1 answer
135 views
I am trying to run a series of tests that make up an entire test case regarding a login screen (username no password, password but no username etc etc) so that I can test the correct messages back to the user.

I have several individual tests that are working when run as individuals, however when I try and run them in sequence (with nUnit) I get a timeout exception when trying to get the active browser for the second test (at the moment only trying with two tests).

Below is the trace that I get.

at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo, Object target)
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.Manager.WaitForBrowserToConnect(Int32 browserIndexToWaitFor)
at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments)
at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser()
at AutoTestLibrary.MattLoginTest.TestInitialize() in C:\Repos\osmotion\autotester\AutoTestLibrarySAM\MattLoginTest.cs:line 93

We are using Telerik Test Framework 2012.2.1420.0
This is in Firefox 19.0.2 but also occurs in Chrome 25.0.1364.152 m
When running with IE10 it does not load the page ever even if just running a single test on its own

OS is Windows 8 Enterprise

Boyan Boev
Telerik team
 answered on 13 Mar 2013
8 answers
236 views
Hi

For example, there is a button Add details in a website, which on clicking opens a dialog or form or popup. How to access fields present in that newly opened window, how to set text and click buttons present in the newly opened window?

Thanks
Sudarshan
Boyan Boev
Telerik team
 answered on 11 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?