Telerik Forums
Testing Framework Forum
1 answer
108 views
Hi ,

Using the Sentence Verification Builder, I am trying to check if a standard Silverlight DataGridCell has become editable after pressing the F2 button and non-editable after I click on the Escape button. Unfortunately, I dont see isEditing in the list of properties. I cross checked with the Telerik API reference and was surprised to see that the ArtOfTest.WebAii.Silverlight.UI.DataGridCell object doesnt support this property.  The isEnabled property returns True in both cases (after pressing F2 as well as Escape).

Any ideas how this can be achieved?

Regards,
Rahul

Cody
Telerik team
 answered on 04 Oct 2011
2 answers
103 views
Hi,

I have a td element which has a table inside it, the unique identifier for searching my record is the td element
e.g
<td id="abc_1">
<table>
<tr>
<td>
<div>
<ui>
<li title ="abc"
The application auto generates this structure
What i inten to do is access the title element , i use the following
var tableFieldElement = contentFrame.Find.ById<HtmlTableCell>(tablecell)
however the tableFeildElement gives me only <td id="abc_1"> only
Can anyone help me to find the title

Thanks,
Saket
Cody
Telerik team
 answered on 30 Sep 2011
2 answers
58 views
<title>Hello World</title>
This code works as expected in IE and FF:

           string title = ActiveBrowser.Find.ByTagIndex("title", 0).TextContent;
OR
string title=ActiveBrowser.PageTitle;
                               
but getting null in chrome.

Using webAii Testing Framework 2011.1.712.0
chrome:14.0.835
Surya
Top achievements
Rank 1
 answered on 30 Sep 2011
1 answer
94 views
Hi Guys, 

I've got a substantial number of tests running using webaii 2.0 using FireFox(3.6).
I need to run the same tests using IE8. Is IE8 supported in 2.0 ? 

ta.

Plamen
Telerik team
 answered on 29 Sep 2011
2 answers
114 views
hi, I tried to get cookie from FireFox with the following code, it does return cookies but not the cookie I want, This code works fine for IE with the same URI. Noticed that,  for same uri,  the cookies returned from IE & FireFox are different. Not sure why.  Could anybody please help? Thank you!

CookieCollection siteCookies = manager.ActiveBrowser.Cookies.GetCookies(uri);
Plamen
Telerik team
 answered on 28 Sep 2011
5 answers
161 views
Hello, after using NUnit with the Jetbrains test-runner, I decided to give this Testing Framework a try. Following the guide within the Test Studio documentation, the last section titled "Telerik Testing Framework", within the section describing getting started using NUnit - I created a new unit-test class using the Telerik template, for NUnit-Wpf.  I added the NUnit references to the project.

But there is a compile error that I don't see addressed within the guide. Within the region WebAii Initialization..

Initialize(new TestContextWriteLine(Core.TestContext.Out.WriteLine));

The TestContext member is not found, resulting in a compilation error. I can comment this out of course -- but I'm wondering if this indicates a problem with the configuratioin, or what?  (see first attached screenshot)

Incidentally, also within the guide - there is a link to download the NUnit web extensions source. But the link takes you to a Telerik product page and I am not seeing any path from that page to get you to the NUnit web extensions source. Is this a typo? (see second screenshot)

If I am creating a unit-test for my desktop WPF app, why is a "NUnit-Wpf" project template including WebAii initialization anyway? This is not a web application.

I appreciate your advice and help, thanks.

James W. Hurst
Cody
Telerik team
 answered on 23 Sep 2011
1 answer
77 views
The title stays it all.
Its missing the reference to NUnit.Core.
I added the 2.5.2 reference mentioned here (http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/getting-started/using-nunit.aspx) but then get even more errors.

"Error 36 The name 'TestContext' does not exist in the current context C:\Program Files (x86)\Telerik\Testing Framework 2011.1\Samples\Testing Framework\QuickStarts_NUnit_CS\Tests\Frames.cs 51 126 QuickStarts_NUnit_CS"

Fixing that then results in

Error 36 'NUnit.Core.TestContext' does not contain a definition for 'CurrentContext' C:\Program Files (x86)\Telerik\Testing Framework 2011.1\Samples\Testing Framework\QuickStarts_NUnit_CS\Tests\Frames.cs 63 128 QuickStarts_NUnit_CS

Are there any samples that work or am I stuck having to fix the sample code while trying to learn this framework? 

Sorry to sound harsh, but I find this quite frustrating.


Stoich
Telerik team
 answered on 23 Sep 2011
2 answers
87 views
Hi,

I am not able to figure out how to select a date from the rad calendar.
Able to get the calendar popup but not able to proceed further.

Suggestion would be appreciated.

Thanks & Regards,
Mahendra 
Mahendra Kumar
Top achievements
Rank 1
 answered on 22 Sep 2011
4 answers
94 views
Hi,

I am trying to build a test case round the account entity with the following steps in dynamic crm 2011
1.create new account
2.save account
3.create a activity of type task for the created account

I am able to achieve till 2 for 3, however i am able to open the task as a seperate window (modal ie) and the foucs is diapled to the desired text feild(by default) however i am not able to acess the ribbions of the new window
The Active browser has the values of the old account browser and not the new task browser

Any help appriciated...

Thanks,
Saket

Saket
Top achievements
Rank 1
 answered on 22 Sep 2011
1 answer
111 views
Hi ,

I have a rad window in my application and I am trying to get the height and width of the rad window.
When I try to get the the rad window with below mentioned code it throws be a exception.
return m_radWindow.Width;
return m_radWindow.Height;
However, I am able to re-size the rad window, but not able to get the width/height.
Exception detail:
*************************************************************************************************************************************************************************
ArtOfTest.WebAii.Exceptions.ExecuteCommandException was unhandled by user code
  Message=ExecuteCommand failed!
InError set by the client. Client Error:
System.InvalidOperationException: Javascript call [$find(\'FilingCabinet\').getBounds($find(\'{0}\').get_popupElement()).height] failed! Please make the function exists and the call is using the correct prototype signature. Javascript error: [object Error]
   at ArtOfTest.InternetExplorer.IECommandProcessor.InvokeFunction(String functionCall, Boolean useEval, Boolean returnJSON)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)
BrowserCommand (Type:'Action',Info:'NotSet',Action:'InvokeJsFunction',Target:'ElementId (tagName: '',occurrenceIndex: '-1')',Data:'$find(\'FilingCabinet\').getBounds($find(\'{0}\').get_popupElement()).height',ClientId:'Client_0096c116-6d01-455b-a291-5c81e1eb1606',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.InvalidOperationException: Javascript call [$find(\'FilingCabinet\').getBounds($find(\'{0}\').get_popupElement()).height] failed! Please make the function exists and the call is using the correct prototype signature. Javascript error: [object Error]
   at ArtOfTest.InternetExplorer.IECommandProcessor.InvokeFunction(String functionCall, Boolean useEval, Boolean returnJSON)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)')
InnerException: none.

  Source=ArtOfTest.WebAii
  StackTrace:
       at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
       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.InvokeScript(String script)
       at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.InvokeScript(String script)
       at ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl.GetValue[T](String propertyName, T defaultValue)
       at ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl.GetValue[T](String propertyName)
       at ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl.CallMethod[T](String methodCall)
       at Telerik.WebAii.Controls.Html.RadWindow.get_Height()
       at HCS.TMS.QA.Automation.PerformanceManager.UI.Controls.Common.PFMRadWindow.get_RadWindowHeight() in D:\HCS\WebAii Automation\PerformanceManager\Common\UI\Controls\Common\PFMRadWindow.cs:line 73
       at HCS.TMS.QA.Automation.PerformanceManager.Tests.Areas.Sandbox.MahendraSandBox.Test() in D:\HCS\WebAii Automation\PerformanceManager\Tests\Areas\zSandbox\MahendraSandBox.cs:line 98
  InnerException:
*************************************************************************************************************************************************************************
Please let me know if some one have come across the same.
Thanks in advance.

Regards,
Mahendra
Misho
Telerik team
 answered on 21 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?