Hi Francisco,

- are you sure that your html code is well formed? This is a common
cause of problems because HtmlUnit won't retrieve "lost form children"
like normal browsers do.
- are you sure that clickButton identifies the right button?

Otherwise to really "see" what differs between your WebTest execution
and your manual browsing, you can look at the request headers sent in
both cases (for instance with liveHttpHeaders for FF and configuring the
log for WebTest).

Marc.

Francisco Javier Martin Gutierrez wrote:
> Hello all:
> 
> I am in troubles clicking a button. Clickbutton reach the button but the
> response code is not the expected result. First I select a valid
> tipoDocGenerar and the step doesn't fail. Secondly I click the button
> botonGenerarDocumento which doesn’t fail but the page loaded is not the
> properly page. If someone has any idea about what is happening please let me
> know it...
> 
> 
> <input name="nombreAction" type="hidden" value="SAUValoracion" />
>   
> <table ....
>                   <select name="documentacionForm.tipoDocGenerar"
> style="{width: 200px;}"><option value="">- - - - - - - - - - - - - - - - - -
> - - - - - - - - </option>
>                     
>                       <option value="1000" style="{width:
> 200px;}">BVD</option></select>
>                 </td>
>                 <td><img src="imagenes/blank.gif" width="5"
> height="1"/></td>
>                 <td>
>                     <input type="image"
> name="documentacionForm.botonGenerarDocumento" src="imagenes/bt_gen_doc.gif"
> accesskey="l" style="{width : 110; height : 18; hspace : 5; border : 0}"
> alt="Generar documento">
>                 </td>
> ......
>                     <input type="image"
> name="documentacionForm.botonCargarDocumento"
> src="imagenes/bt_cargar_docum.gif" accesskey="l" style="{width : 103; height
> : 18; hspace : 5; border : 0}" alt="Cargar Documento">
>                   
> ......
>                   <select name="documentacionForm.tipoDocEscanear"
> style="{width: 200px;}"><option value="">- - - - - - - - - - - - - - - - - -
> - - - - - - - - </option></select>
>                 </td>
>               </tr>
>               <tr><td colspan="4" class="textoFormulario"><img
> src="imagenes/blank.gif" alt="separador" width="10" height="10"></td></tr>
>               <tr>
>                 <td class="textoFormulario">&nbsp;</td>
>                 <td colspan="3">
>                   <input type="file"
> name="documentacionForm.archivoDocEscanear" value="">
>                 </td>
>               </tr>
>               <tr><td colspan="4" class="textoFormulario"><img
> src="imagenes/blank.gif" alt="separador" width="10" height="10"></td></tr>
>             </table>
>           </td>
>         </tr>
>         
>       </table>
> 
> Francisco Javier Martín 
> Desarrollo de Proyectos - Valladolid
> Security Solutions & Services Division        
>        
> Edif. Solar, Of. 13, 14, 15
> Parque Tecnológico Boecillo. 47151 Valladolid. España
> Tel.: 983 54 65 55   Fax: 983 54 66 09         
> 
> 
> AVISO LEGAL: La informacion contenida en este mensaje y cualquier documento 
> adjunto en el mismo es confidencial, puede estar legalmente protegida y esta 
> dirigida solamente al destinatario. La publicacion, uso, distribucion, 
> impresion o copia no autorizada del contenido de este mensaje, esta 
> estrictamente prohibida y puede ser ilegal. Si Vd. ha recibido este mensaje 
> por error, le rogamos destruya el mensaje y lo notifique al remitente o llame 
> al telefono (+34) 91 556 92 62.
> 
> DISCLAIMER: The information contained in this message and any attached 
> document is confidential, covered by law and intended solely for the 
> recipient. The distribution, print, publication, unauthorised copy and / or 
> use of the message content is strictly forbidden and could be deemed illegal. 
> If you are not the intended recipient of this message, we request that you 
> destroy it and notify the sender either in writing or by calling ++34 91 556 
> 92 62.
> 
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
> 


-- 
Blog: http://mguillem.wordpress.com

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to