Telerik Forums
Testing Framework Forum
1 answer
187 views
Hi,

There is a button on a dailog form in my application.  Tool is regconising the button through code, Iam ablte create an element instance but it is throwing error when click event is called. Pls advise what is wrong

below is the error displayed in exception

ExecuteCommand failed!
InError set by the client. Client Error:
System.ArgumentException: Tag collection is either empty or has less elements than the element occurrence requested. RequestedIndex: '3', ElementLength: '1'
   at ArtOfTest.InternetExplorer.IECommandProcessor.FindElement(ElementIdMessage id)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)
BrowserCommand (Type:'Action',Info:'NotSet',Action:'Click',Target:'ElementId (tagName: 'button',occurrenceIndex: '3')',Data:'',ClientId:'Client_ae6b05e1-a3ca-49fe-a64d-c829bbbe3b52',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'0',InError:'True',Response:'System.ArgumentException: Tag collection is either empty or has less elements than the element occurrence requested. RequestedIndex: '3', ElementLength: '1'
   at ArtOfTest.InternetExplorer.IECommandProcessor.FindElement(ElementIdMessage id)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)')
InnerException: none.

Here i am attaching the screen shot of the Exception. below is the button code in that form.

<BUTTON style=\"WIDTH: 80px\" id=cmdCancel class=pagebutton onclick=Page.CloseDialog(); fpId=\"3485\" nodis="False">Cancel</BUTTON> .

I tried it by recording but no actions recored on it.

Thanks

Ravi






Cody
Telerik team
 answered on 23 Sep 2010
1 answer
95 views
Hi
when i automate OOB application (Record / Replay) , the OOB application will can't find silverlight plug-in...
 Then running applications Again ,it also can't find silverlight plug-in...
I must uninstall the silverlight OOB application and  reinstall....
er...... why?
webAii version: WebAii 2010.2 0830


Regards,
li fang.
.
Jasper
Telerik team
 answered on 22 Sep 2010
1 answer
154 views
Hello.

I use WebAii to test my Site that uses Silverlight.
I have a developing machine and a testing machine that I connect using Remote Desktop.

As far as I understood WebAii raises an exception when I run my test with remote desktop window minimized(I start the test and minimize remote desktop window for a couple of minutes - screen save is not active).
My Silverlight application has a TabControl that raises an exception (when Remote Desktop is minimized). The raised exception has the following message: "Unable to find the tab item container. For custom TabControl temlpate please override the .TabItemContainer property.". 

If I run my test with remote desktop opened everything run OK.

The exception is related with minimized Remote Desktop window? Or it is just coincidence?

Many thanks,

Carlos Marcão
Konstantin Petkov
Telerik team
 answered on 22 Sep 2010
1 answer
179 views

Hi,
There is table in a page, It has more that 1 rows. rows are displayed in TBody tag. but the Tbody, TR and TD's are not closed.
I have written code to retrieve table rows count , once have the rowcount i can select specific row from the row count. but when I try to retrieve row count, the row count is given as 1 and the value in the last TD from last Tbody is retrieved always.

My page has below code for table

<table width="100%" class="datatable' id="detailtable" >
<tbody>
<tr>
<td>
<td>
<td>
<td>
<tbody>
<tr>
<td>
<td>
<td>
<td>
<tbody>
<tr>
<td>
<td>
<td>
<td>
</table>


Nikolai
Telerik team
 answered on 21 Sep 2010
2 answers
91 views
help!!!!

when  the silverlight applications  under  tomcat or WebLogic (Except IIS) ,It will

"Unable to connect to silverlight applications , silverlight recording wiill not function"

..........
what's wrong???
li
Top achievements
Rank 1
 answered on 19 Sep 2010
4 answers
139 views
Hi,
I have this odd problem.  When I use TypeText with to type "football" it is not typing the second "o" and second "l".  It is quite odd.  I also had the problem with "Tennis".

Is this a known issue?  Thanks.
Cody
Telerik team
 answered on 17 Sep 2010
5 answers
316 views
Hi

I've been trying to run a simple test using NUnit:

[Test]
public void SimpleTest()
{
    Manager.LaunchNewBrowser();
    ActiveBrowser.WaitUntilReady();
    ActiveBrowser.Window.Maximize();
    ActiveBrowser.NavigateTo(MyServerUrl);
 
    var headerItems = new HeaderItems(MySilverlightApp);
    headerItems.ReportsNavigationButton.User.Click();
}

On the last line I'm getting following error: unable to load ArtOfTest.Connector.dll

My configuration is: Windows 7, IE8, VisualStudio 2010, WebUI Test Studio (trial) 2010.2.830.0.
I could successfully run similar tests on Windows XP.

My observation is that the WebUI installer didn't add keys to the registry HKLM\Software (i.a. containing a path to the WebUI installation). I updated the keys using example from machine with Windows XP, but it didn't help.

thank you in advance
kind regards
Mark

---
Detailsed error message:
...
[16:34] - Unable to load ArtOfTest.Connector.dll
[16:34] - Exception Details:
[16:34] - ------------------
[16:34] - System.ArgumentNullException: Wartość nie może być zerowa.
Nazwa parametru: ptr
   w System.Runtime.InteropServices.Marshal.GetDelegateForFunctionPointer(IntPtr ptr, Type t)
   w ArtOfTest.Common.Win32.WindowManager..cctor()
 
System.NullReferenceException : Odwołanie do obiektu nie zostało ustawione na wystąpienie obiektu.
w IFin24App.WebAii.ApplicationElements.HeaderItems.get_ReportsNavigationButton() w HeaderItems.cs: line 53
...
Mark
Top achievements
Rank 1
 answered on 16 Sep 2010
4 answers
181 views
Here is sample test:
[Test]
        public void GoogleTest()
        {
            ActiveBrowser.NavigateTo("http://www.google.com");
            ActiveBrowser.WaitUntilReady();
             
            HtmlInputText queryBox = Find.ByName<HtmlInputText>("q");
            Desktop.Mouse.Click(MouseClickType.LeftClick, queryBox.GetRectangle());
            Desktop.KeyBoard.TypeText("sample", 1000);
             
            Actions.Click(Find.ById("btnG"));
        }

By watching its execution you'll notice that Google autosuggest is not visible during TypeText execution.
When typing manually autosuggest appears immediately.

Why TypeText works differently? How to force opening autosuggest?

Wit
Top achievements
Rank 1
 answered on 14 Sep 2010
1 answer
424 views

My company recently acquired Telerik controls, and now we want to automate our tests.

1. I wanted to know which tools may I use to automate my tests (tools that support Telerik controls).

2. We now own QTP but I as we tried to automate with it, we had a lot of recognition problems.
does QTP support  your (Telerik) controls?

3. I download WebAii but I didn't understand how I am supposed to add WebAii add-in to visual studio

4. How  does WebAii work? by recording , writing code, or both?
 
5. How do I recognize objects in WebAii ?


Cody
Telerik team
 answered on 13 Sep 2010
1 answer
141 views
Is there any official support for the Silverlight toolkit?

Is there any planned (or an opensource project trying to achieve this)?

I wanted to test a page that uses the autocomplete textbox from the silverlight toolkit. What would be involved to use this?

Many Thanks,

John
Cody
Telerik team
 answered on 13 Sep 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
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?