This is a migrated thread and some comments may be shown as answers.

Auto-complete

5 Answers 141 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Nick
Top achievements
Rank 1
Nick asked on 09 Nov 2011, 11:08 AM
I am new to Test Studio and have a problem when recording Auto-complete fields.
I input 3 characters which activates a search list:
I clcik on the name, this is added to the field
I click "ADD" button
 Name is not added to the screen
Test Fails  

5 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 11 Nov 2011, 05:10 PM
Hi Nick,

I'm sorry you are running into this problem and thank you for the provided information. I saw your application is publicly accessible, but it seems that I'm not able to navigate to that field using the credentials from the log file.

In order to help you further with this issue, please provide the neccessary steps to access the autocomplete field in the support ticket you already opened, which is confidential, unlike this forum thread. So I can try this myself and see the issue first hand.

Hope to hear from you soon!

Greetings,
Plamen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Nate
Top achievements
Rank 1
answered on 13 Dec 2011, 10:39 PM
I'd love to see an example of how to successfully automate an text input with an autocomplete in code.  I searched the web and couldn't find one.  Is there an example of how to do this anywhere?

Thanks!
Nathan
0
Plamen
Telerik team
answered on 15 Dec 2011, 05:20 PM
Hi Nate,

What is the application you are testing? Is it a Silverlight or an HTML application? 

Here's a sample code against this Telerik demo site.
RadComboBox combo = Find.ById<RadComboBox>("RadComboBox1");
HtmlInputText input = combo.Find.ById<HtmlInputText>("RadComboBox1_Input");
input.MouseClick();
Manager.Desktop.KeyBoard.TypeText("bernardo");
The project is also attached. 

If this is not what you want, please provide more information. The best and fastest way to troubleshoot would be if you could point us to a public website where such field is available.

Hope to hear from you soon!

Best wishes,
Plamen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Sandeepana
Top achievements
Rank 1
answered on 01 Mar 2013, 10:42 AM
   Hi Plamen,

   The attached above AutoComplete project is not working. It gives following issue.

Overall Result: Fail
------------------------------------------------------------
'3/1/2013 4:03:51 PM' - Using .Net Runtime version: '4.0.30319.296' for tests execution.
'3/1/2013 4:03:51 PM' - Starting execution....
'3/1/2013 4:03:53 PM' - Detected custom code in test. Locating test assembly: WebTest.dll.
'3/1/2013 4:03:53 PM' - Assembly Found: C:\Users\krishan\Downloads\WebTest\bin\WebTest.dll
'3/1/2013 4:03:53 PM' - Loading code class: 'WebTest.AutoComplete'.
------------------------------------------------------------
------------------------------------------------------------
'3/1/2013 4:03:53 PM' - Using 'InternetExplorer' version '9.0' as default browser.
'3/1/2013 4:04:01 PM' - 'Pass' : 1. Navigate to : 'http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/autocompleteclientside/defaultcs.aspx'
'3/1/2013 4:04:07 PM' - 'Pass' : 2. Wait for '5250' msec.
'3/1/2013 4:04:07 PM' - 'Fail' : 3. [AutoComplete_CodedStep1] : New Coded Step
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Exception thrown executing coded step: '[AutoComplete_CodedStep1] : New Coded Step'.
InnerException:
System.NullReferenceException: Object reference not set to an instance of an object.
   at WebTest.AutoComplete.AutoComplete_CodedStep1() in c:\Users\krishan\Downloads\WebTest\AutoComplete.tstest.cs:line 80
------------------------------------------------------------
'3/1/2013 4:04:07 PM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
------------------------------------------------------------
'3/1/2013 4:04:07 PM' - Overall Result: Fail
'3/1/2013 4:04:07 PM' - Duration: [0 min: 13 sec: 621 msec]
------------------------------------------------------------
'3/1/2013 4:04:08 PM' - Test completed!


  Note : - Can I have successfully working autoComplete sample project.?? We could successfully automate it. but when I RUN that
automated project. It fails when we come to auto Complete component. Simply auto Complete drop down is not loading and give results when we RUN the script..


0
Plamen
Telerik team
answered on 01 Mar 2013, 04:18 PM
Hi Sandeepana,

I wasn't able to reproduce the issue against the Autocomplete demo site you provided. Looking the log, you are using a coded step, but I was able to automate the Autocomplete selection even without using a coded step. Could you please provide a copy of your test(in a .zip file) so we can run it locally, see the code and investigate what is happening? 

Kind regards,
Plamen
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Nick
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Nate
Top achievements
Rank 1
Sandeepana
Top achievements
Rank 1
Share this question
or