Telerik Forums
Test Studio Forum
3 answers
185 views
I am trying to open a new window by clicking on a hyperlink but the code always fails at Waitfornewbrowerconnect(URL,Ispartial, Timeout). I mean it always times out. There are two pieces of code given below both gets stuck at Waitfornewbrowerconnect(URL,Ispartial, Timeout) in both IE or FF. I am using following configurations:

- MS Visual studio express edition 2010
- Gallio 3.2
-Windows 7

My browser settings are exactly as given in the documentation. Any ideas?



Code 1
*****************************************************************************************************************
 Manager.Settings.AnnotateExecution = true;

            Manager.LaunchNewBrowser(BrowserType.InternetExplorer,true);
            Manager.DialogMonitor.AddDialog(new LogonDialog(ActiveBrowser, "login", "password", DialogButton.OK));
            Manager.DialogMonitor.Start();
          ActiveBrowser.NavigateTo("http://localhost:4444/Location/NewForm.aspx?RootFolder=%2FLocation&Source=http%3A%2F%2Ftest.kuoni.com%2FLocation%2FAllItems.aspx");
     ActiveBrowser.WaitUntilReady();
     Manager.SetNewBrowserTracking(true);
     Find.ById<HtmlAnchor>("ID").Click();
     
     if (ActiveBrowser.BrowserType == BrowserType.InternetExplorer)
     {
         InternetExplorerActions ieActions = (InternetExplorerActions)ActiveBrowser.Actions;
           ieActions.ConnectIEDialog("l:Edit Hyperlink Properties", 300);
         Manager.WaitForNewBrowserConnect("http:/localhost:4444/_layouts/AssetEditHyperLink.aspx?DefaultAssetLocation=&DefaultAssetImageLocation=&DisplayLookInSection=true&DefaultToLastUsedLocation=true&ManageHyperlink=true&DisplayWidth=&DisplayHeight=&AllowExternalUrls=true&OverrideDialogImageUrl=&OverrideDialogTitle=&ManageLinkDisplayText=true&ManageLinkIcon=true&IconUrl=", false, 3000);
         Assert.IsTrue(ActiveBrowser.IsIEDialog);

        
         ActiveBrowser.Close();
     }
     Manager.WaitForNewBrowserConnect("http://localhost:4444/_layouts/AssetEditHyperLink.aspx?DefaultAssetLocation=&DefaultAssetImageLocation=&DisplayLookInSection=true&DefaultToLastUsedLocation=true&ManageHyperlink=true&DisplayWidth=&DisplayHeight=&AllowExternalUrls=true&OverrideDialogImageUrl=&OverrideDialogTitle=&ManageLinkDisplayText=true&ManageLinkIcon=true&IconUrl=", false, 3000);
     Assert.AreEqual("Edit Hyperlink Properties", ActiveBrowser.PageTitle);
ActiveBrowser.Close();


******************************************


Code 2
*****************************************************************************************************
 Manager.Settings.AnnotateExecution = true;

            Manager.LaunchNewBrowser(BrowserType.InternetExplorer,true);
            Manager.DialogMonitor.AddDialog(new LogonDialog(ActiveBrowser, "login", "password", DialogButton.OK));
            Manager.DialogMonitor.Start();
          ActiveBrowser.NavigateTo("http://localhost:4444/Location/NewForm.aspx?RootFolder=%2FLocation&Source=http%3A%2F%2Ftest.kuoni.com%2FLocation%2FAllItems.aspx");
     ActiveBrowser.WaitUntilReady();
     Manager.SetNewBrowserTracking(true);
     Find.ById<HtmlAnchor>("ID").Click();
     
       Manager.WaitForNewBrowserConnect("http://localhost:4444/_layouts/AssetEditHyperLink.aspx?DefaultAssetLocation=&DefaultAssetImageLocation=&DisplayLookInSection=true&DefaultToLastUsedLocation=true&ManageHyperlink=true&DisplayWidth=&DisplayHeight=&AllowExternalUrls=true&OverrideDialogImageUrl=&OverrideDialogTitle=&ManageLinkDisplayText=true&ManageLinkIcon=true&IconUrl=", false, 3000);
     Assert.AreEqual("Edit Hyperlink Properties", ActiveBrowser.PageTitle);
ActiveBrowser.Close();
Cody
Telerik team
 answered on 27 Oct 2010
1 answer
132 views
Hi @

I am using Telerik Rad Grid in one of my applications.

Now When ever I change the page size of Telerik RadGrid or when ever i click on Pagination. I need to call a javascript function.

I tried to find the page size Rad combo which is used inside Grid and attaching an event which would call a javascript. But It was not working.

Please let me know how to achieve this.

Thanks in advance.
Dimo
Telerik team
 answered on 27 Oct 2010
1 answer
59 views
Hi @

I have a Grid and a button  inside a Telerik Rad Ajax panel.

Onclick of tht button I want only the Grid portion to be updated.

Now when I click on the button which is inside the Ajax panel, and If i keep a break point at the page load. I see that complete page life cycle re occurs. Though the page flicker is not seen.

How to avoid this?? Am I missing any condition??

The same thing can be achieved with asp:updatePanel and asp:scriptmanager. Scriptmanager exposes a property IsInAsyncPostBack which is true when there is a Ajax postback.

Is there any such property with Telerik?

Please let me know.

Thanks in advance.
Iana Tsolova
Telerik team
 answered on 27 Oct 2010
3 answers
97 views
When I attempt to test for the invisibility for a dynamic label I receive a false negative. After attempting to hard code as well as use the built in wizard I get the same results. I have attached a document outlining the issue.
Cody
Telerik team
 answered on 25 Oct 2010
1 answer
129 views
Hi All,

I am trying to automate the testing of my silverlight application and using WebUI studio for the same. The WebUI studio seems to be a great product but it doesn't seem to identify OpenFileDialog modal windows. Is there any way out?

Thanks,
Adi
Keaegan
Telerik team
 answered on 25 Oct 2010
1 answer
73 views
I have a data source (excel spreadsheet) that has 12,833 rows that are 7-8 digit ID's. I have a simple test for a Silverlight app that opens a GoTo dialog, enters the ID, waits for the page to load and closes the page. After about 30 documents, a test will only enter 5 of the 6 digits and fails, which leaves the whole test hanging.
Keaegan
Telerik team
 answered on 25 Oct 2010
1 answer
95 views
Hello,

I am trying to record a new test and play that test back. Its a simple test. I am having following issues in that:

In Recording Test:
- When I click 'Record' button, it opens up two instances of Internet Explorer. (First Problem)
- I am navigating to http://google.co.in site. Then I am entering a simple search string. And then I Stop recording and closing my browser.

While Playing Back:
- When I click Execute button, it shows following: (Second Problem)

connecting to controller
connected!

Executing test: 'New Test'
Mode: 'QuickExecution'
Browser: 'InternetExplorer'
baseUrl: ' '

and then after sometime it closes that window.

I found from test log that it showing following error:

--------------------------------------------------
'10/22/2010 2:39:12 PM' - Error encountered during execution.
--------------------------------------------------
'10/22/2010 2:39:12 PM' - Error attempting to ping runner. Error: System.IO.IOException: Pipe is broken.
   at System.IO.Pipes.PipeStream.WinIOError(Int32 errorCode)
   at System.IO.Pipes.PipeStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)
   at System.IO.Pipes.PipeStream.Write(Byte[] buffer, Int32 offset, Int32 count)
   at ArtOfTest.WebAii.Messaging.Process.PipeCommunication.WriteCommandToPipe(PipeCommand command, PipeStream pipe, Boolean waitForDrain)
   at ArtOfTest.WebAii.Design.Execution.RunnerController.Ping()
--------------------------------------------------
'10/22/2010 2:39:12 PM' - Aborting....


Please help me as soon as possible as I am trying to evaluate this product and having only demo version which will expire after 5 days.

Thanks in advance.
Cody
Telerik team
 answered on 25 Oct 2010
1 answer
84 views

Hi,

"Indirect reference is being made to assembly system.web.extensions version 3.5.0.0, which
contains 'Telerik.web.UI.RadGrid'. This project reference a prior version of system.web.
extensions version 1.0.61025.0. to use 'Telerik.web.UI.RadGrid', you must replace the reference
to system.web.extensions with versionn 3.5.0.0 or higher"



Thanks.
Dimo
Telerik team
 answered on 25 Oct 2010
5 answers
100 views
Can somebody help me to identify Child window in a Silverlight application.

WebUI DOM is not spying child window objects and unable to automate.

I am sure, it is a child window only.
Daniel Djambov
Telerik team
 answered on 22 Oct 2010
1 answer
123 views
Hello

I need to copy some text of a page.

I think adding the text into the log will be the easist way to store it.

I have this on the element already:

 

// Verify 'TextContent' 'Contains' '10QBECAS08103' on 'QmlblACCTRiskSummaryXIAPRefSpan'
  
Pages.MITraderApplication0.FrameAppIframe.QmlblACCTRiskSummaryXIAPRefSpan.AssertContent().TextContent(ArtOfTest.Common.StringCompareType.Contains, "NewText");

 

 

 

 

 

I would like to copy the text out of "QmlblACCTRiskSummaryXIAPRefSpan" and place it into the log:

Log.WriteLine()

If possible I would like to create a global variable (a string) that is created at the start of the test and copy this text into that variable and then i can use that at the end of the test :)

Regards,
Tom

 

 

 

 

Konstantin Petkov
Telerik team
 answered on 21 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?