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
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest