[Httpunit-develop] Help
Brought to you by:
russgold
|
From: Frondoni, G. <gio...@Tr...> - 2003-03-31 21:00:28
|
I'd like to ubsubscribe my user. Please, remove my name from your mailing list. Thank you Giorgio -----Original Message----- From: htt...@li... [mailto:htt...@li...] Sent: Monday, March 31, 2003 12:03 PM To: htt...@li... Subject: Httpunit-develop digest, Vol 1 #742 - 3 msgs Send Httpunit-develop mailing list submissions to htt...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/httpunit-develop or, via email, send a message with subject or body 'help' to htt...@li... You can reach the person managing the list at htt...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of Httpunit-develop digest..." Today's Topics: 1. Re: problem setting value of select box (Astrid Wagner) 2. problem finding an input text field (Astrid Wagner) 3. Delays accessing certain web servers from HttpUnit (Andrew Bickerton) --__--__-- Message: 1 Date: Mon, 31 Mar 2003 11:23:03 +0200 From: Astrid Wagner <Ast...@mo...> To: htt...@li... Subject: Re: [Httpunit-develop] problem setting value of select box Reply-To: htt...@li... --------------080507010100030500060101 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Russell Gold wrote: > At 06:18 PM 3/27/2003 +0100, Astrid Wagner wrote: > >> I realized that it works with a select box not having MULTIPLE as >> attribute (and also java script method >> attached the same way). Could it have sth. to do with this attribute. >> I tried >> setParameter(String, String) as well as >> setParameter(String, String[]) ?! > > > I don't understand. Are you saying that it works without MULTIPLE but > does not work when the MULTIPLE attribute is specified? And that the > onChange attribute is the same in both cases? There is a select (and script) that looks like this: ----- <script LANGUAGE="javascript" TYPE="text/javascript"> <!-- countSourceNotEncrypted = 0 function pruneSourceNotEncrypted(myForm, fieldName) { return false } function onChangeSourceNotEncrypted(myForm, fieldName) { if(pruneSourceNotEncrypted(myForm, fieldName)) { myForm.DELIVERABLE_1_PROPERTY_134_PRUNE.value = "SourceNotEncrypted" } return true } // --> </SCRIPT> <select NAME="DELIVERABLE_1_PROPERTY_134_COUNT_0" onChange="return onChangeSourceNotEncrypted(this.form, this.form.DELIVERABLE_1_PROPERTY_134_COUNT_0)"> <option VALUE="True">True <option VALUE="False">False </select> ----- and I can call form.setParameter("DELIVERABLE_1_PROPERTY_134_COUNT_0", "False"); Then there is a select (and script) in the same page that looks like this: ------- <script LANGUAGE="javascript" TYPE="text/javascript"> <!-- countType = 0 function pruneType(myForm, fieldName) { return false } function onChangeType(myForm, fieldName) { if(pruneType(myForm, fieldName)) { myForm.DELIVERABLE_1_PROPERTY_18_PRUNE.value = "VCType" } return true } // --> </SCRIPT> <select NAME="DELIVERABLE_1_PROPERTY_18_COUNT_0" SIZE="5" MULTIPLE onChange="return onChangeType(this.form, this.form.DELIVERABLE_1_PROPERTY_18_COUNT_0)"> <option VALUE="Hard">Hard <option VALUE="Soft">Soft <option VALUE="Analog">Analog <option VALUE="Library">Library </select> ------- When I try to call form.setParameter("DELIVERABLE_1_PROPERTY_18_COUNT_0", values); where values is a String array containing only one entry "Soft" I receive the error: Error: Parameter 'DELIVERABLE_1_PROPERTY_18_COUNT_0' must have the value ''. Attempted to set it to: { Soft } Thanks for the help. Astrid > > > What does your "onChange" method look like? > > > ------------------------------------------------------- > This SF.net email is sponsored by: > The Definitive IT and Networking Event. Be There! > NetWorld+Interop Las Vegas 2003 -- Register today! > http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en > _______________________________________________ > Httpunit-develop mailing list > Htt...@li... > https://lists.sourceforge.net/lists/listinfo/httpunit-develop --------------080507010100030500060101 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title></title> </head> <body> <br> <br> Russell Gold wrote:<br> <blockquote type="cite" cite="mid...@po...">At 06:18 PM 3/27/2003 +0100, Astrid Wagner wrote: <br> <blockquote type="cite">I realized that it works with a select box not having MULTIPLE as attribute (and also java script method <br> attached the same way). Could it have sth. to do with this attribute. I tried <br> setParameter(String, String) as well as <br> setParameter(String, String[]) ?! <br> </blockquote> <br> I don't understand. Are you saying that it works without MULTIPLE but does not work when the MULTIPLE attribute is specified? And that the onChange attribute is the same in both cases? </blockquote> There is a select (and script) that looks like this:<br> -----<br> <pre><b><<span class="start-tag">script</span><span class="attribute-name"> LANGUAGE</span>=<span class="attribute-value">"javascript" </span><span class="attribute-name">TYPE</span>=<span class="attribute-value">"text/javascript"</span>> <!-- countSourceNotEncrypted = 0 function pruneSourceNotEncrypted(myForm, fieldName) { return false } function onChangeSourceNotEncrypted(myForm, fieldName) { if(pruneSourceNotEncrypted(myForm, fieldName)) { myForm.DELIVERABLE_1_PROPERTY_134_PRUNE.value = "SourceNotEncrypted" } return true } // --> </<span class="end-tag">SCRIPT</span>> </b></pre> <pre><b><<span class="start-tag">select</span><span class="attribute-name"> NAME</span>=<span class="attribute-value">"DELIVERABLE_1_PROPERTY_134_COUNT_0" </span><span class="attribute-name">onChange</span>=<span class="attribute-value">"return onChangeSourceNotEncrypted(this.form, this.form.DELIVERABLE_1_PROPERTY_134_COUNT_0)"</span>> <<span class="start-tag">option</span><span class="attribute-name"> VALUE</span>=<span class="attribute-value">"True"</span>>True <<span class="start-tag">option</span><span class="attribute-name"> VALUE</span>=<span class="attribute-value">"False"</span>>False </<span class="end-tag">select</span>></b> </pre> -----<br> <br> and I can call form.setParameter(<span class="attribute-value">"DELIVERABLE_1_PROPERTY_134_COUNT_0</span>", "False");<br> <br> Then there is a select (and script) in the same page that looks like this:<br> -------<br> <pre><b><<span class="start-tag">script</span><span class="attribute-name"> LANGUAGE</span>=<span class="attribute-value">"javascript" </span><span class="attribute-name">TYPE</span>=<span class="attribute-value">"text/javascript"</span>> <!-- countType = 0 function pruneType(myForm, fieldName) { return false } function onChangeType(myForm, fieldName) { if(pruneType(myForm, fieldName)) { myForm.DELIVERABLE_1_PROPERTY_18_PRUNE.value = "VCType" } return true } // --> </<span class="end-tag">SCRIPT</span>> <<span class="start-tag">select</span><span class="attribute-name"> NAME</span>=<span class="attribute-value">"DELIVERABLE_1_PROPERTY_18_COUNT_0" </span><span class="attribute-name">SIZE</span>=<span class="attribute-value">"5" </span><span class="attribute-name">MULTIPLE </span><span class="attribute-name">onChange</span>=<span class="attribute-value">"return onChangeType(this.form, this.form.DELIVERABLE_1_PROPERTY_18_COUNT_0)"</span>> <<span class="start-tag">option</span><span class="attribute-name"> VALUE</span>=<span class="attribute-value">"Hard"</span>>Hard <<span class="start-tag">option</span><span class="attribute-name"> VALUE</span>=<span class="attribute-value">"Soft"</span>>Soft <<span class="start-tag">option</span><span class="attribute-name"> VALUE</span>=<span class="attribute-value">"Analog"</span>>Analog <<span class="start-tag">option</span><span class="attribute-name"> VALUE</span>=<span class="attribute-value">"Library"</span>>Library</b> <b></<span class="end-tag">select</span>></b> </pre> -------<br> <br> When I try to call form.setParameter(<span class="attribute-value">"DELIVERABLE_1_PROPERTY_18_COUNT_0</span>", values);<br> where values is a String array containing only one entry "Soft" I receive the error:<br> Error: Parameter '<span class="attribute-value">DELIVERABLE_1_PROPERTY_18_COUNT_0</span>' must have the value ''. Attempted to set it to: { Soft }<br> <br> Thanks for the help.<br> Astrid<br> <br> <blockquote type="cite" cite="mid...@po..."><br> <br> What does your "onChange" method look like? <br> <br> <br> ------------------------------------------------------- <br> This SF.net email is sponsored by: <br> The Definitive IT and Networking Event. Be There! <br> NetWorld+Interop Las Vegas 2003 -- Register today! <br> <a class="moz-txt-link-freetext" href="http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en">http://ads. sourceforge.net/cgi-bin/redirect.pl?keyn0001en</a> <br> _______________________________________________ <br> Httpunit-develop mailing list <br> <a class="moz-txt-link-abbreviated" href="mailto:Htt...@li...">Httpunit-develop@lists. sourceforge.net</a> <br> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/httpunit-develop">https:/ /lists.sourceforge.net/lists/listinfo/httpunit-develop</a> <br> </blockquote> <br> </body> </html> --------------080507010100030500060101-- --__--__-- Message: 2 Date: Mon, 31 Mar 2003 20:01:55 +0200 From: Astrid Wagner <Ast...@mo...> To: Htt...@li... Subject: [Httpunit-develop] problem finding an input text field Reply-To: htt...@li... Hi, I have to enter data into a form. The problem is that the input names are dynamically created so I can not use the form.setParameters(name, value) call just like this. I know that the input field is preceded by a "label" of a certain string constant in a table like this: Column1: Column2: Colums3: Label1 Description1 input field1 Label2 Description2 input field2 That way I know where the input field resides (in the table). So my thought was to browse through the table cells but I have no method that returns me sth. like parameters for a table cell (only for the complete form). Is there any way with the information I have to find the corresponding input field? Thanks Astrid --__--__-- Message: 3 Date: Mon, 31 Mar 2003 20:39:42 +0100 From: an...@pw... (Andrew Bickerton) To: htt...@li... Subject: [Httpunit-develop] Delays accessing certain web servers from HttpUnit Reply-To: htt...@li... Hi all, It seems that when I use HttpUnit to test our application on certain web servers (e.g. iPlanet), the tests run a great deal slower, as much as 10 times slower, than on others (e.g. Apache). Testing manually via a browser shows no appreciable difference. I haven't had much chance to investigate this. Does anyone have any suggestions as to possible causes? The app uses CGI on the server-side. Andrew --__--__-- _______________________________________________ Httpunit-develop mailing list Htt...@li... https://lists.sourceforge.net/lists/listinfo/httpunit-develop End of Httpunit-develop Digest |