7 messages in com.canoo.lists.webtestAjax.Autocompleter [Was: Re: [Webtest...| From | Sent On | Attachments |
|---|---|---|
| amit shrivas | 16 Mar 2007 03:06 | |
| Marc Guillemot | 16 Mar 2007 04:54 | |
| amit shrivas | 17 Mar 2007 03:44 | |
| amit shrivas | 18 Mar 2007 10:25 | |
| Michael Habbert | 19 Mar 2007 00:56 | |
| amit shrivas | 21 Mar 2007 04:59 | .bin |
| Marc Guillemot | 26 Mar 2007 03:04 |
| Subject: | Ajax.Autocompleter [Was: Re: [Webtest] Re: How to set JESSIONID cookie header after storing cookie..]![]() |
|---|---|
| From: | Marc Guillemot (mgui...@yahoo.fr) |
| Date: | 03/26/2007 03:04:08 AM |
| List: | com.canoo.lists.webtest |
Hi Amit,
is is prototype? What do you get for an error? Currently you should add a <sleep> if the call is asynchronous to be able to test the result.
Marc.
amit shrivas wrote:
Hi,
Thanks Marc for ur response,
The issue was the authentication was not happening properly and so the JSESSIONID canoo was setting was not authenticated and hence all the test cases was failing. Once i fix the auth issue its working fine without setting the cookie it works fine now. Sorry for the trouble.
I have another query though, this is regarding AJAX testing , I have a scenario where we take in the input and prefill the input field something similar to google suggest the code is:
<input type="hidden" name="fanBaseGoal.fanBaseCityIds" value="33253" id="cityId1"> <input type="text" name="fanBaseGoal.fanBaseCities" value="Boscobel, WI" onblur="return checkFanBaseCityField(1);" id="cityName1" class="inputtextLong"> <script type="text/javascript"> var autoCompleter = new Ajax.Autocompleter('cityName1', 'cityAutoComplete','/artist/ajax/autocomplete/cityCenterAndStateByCityName.do', {
paramName: 'cityName',
method: 'post',
parameters: 'limit=10',
afterUpdateElement: function(){afterUpdateElement(1);},
idField: $('cityId1'),
backupValue: 'Boscobel, WI' });
cityAutoCompleter[cityAutoCompleter.length] = autoCompleter;
cityNameFieldList[cityNameFieldList.length] = $('cityName1'); </script>
So once the user types some part of city name we list a drop down of city names matching the character typed and than user has to select from that list.
Please can u provide some pointers on this,
Thanks & Regards, -Amit





.bin