Re: plz help me
Wolfgang Fahl <[email protected]> Wed, 04 May 2011 09:23:41 +0200
| Newsgroups | gmane.comp.web.httpunit.devel |
|---|---|
| Organization | BITPlan GmbH |
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--===============6532254402097238945==
Content-Type: multipart/alternative;
boundary="------------060106040101030904080808"
This is a multi-part message in MIME format.
--------------060106040101030904080808
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit
Dear RAJASHREE NANDINI,
you might want to read the FAQ and convert you request to a JUnit
Testcase that shows
the problem with a local url. The task of simplifying and structuring
your problem is yours.
Please separate the concerns to see whether it is a JavaScript issue
which is the most likely cause (see FAQ).
Yours
Wolfgang
Am 04.05.11 09:11, schrieb RAJASHREE NANDINI:
>
> Hi,
>
> Rajashree here. I used httpunit Api for test an application. I
> have a button having onClick(). After clicking the button it should go
> next page .but I m getting same page as response . plz help me
..
>
> *The source code is* <td align="left" valign="middle" colspan="2"
> width=><input type="button" name="UDDIImportPortletsearch"
> value="Search" width="" title="" class="buttonActive"
> onClick="setActionAndSubmitForm('searchBusinessServiceForm','http://localhost:7021/sbconsole/sbconsole.portal?_nfpb=true&UDDIImportPortlet_actionOverride=/com/bea/alsb/console/uddi/pageflow/uddiimport/searchBusinessServicesResult'
> <http://localhost:7021/sbconsole/sbconsole.portal?_nfpb=true&UDDIImportPortlet_actionOverride=/com/bea/alsb/console/uddi/pageflow/uddiimport/searchBusinessServicesResult%27>)"
> /></td>
>
> *My code is-**if*(types[i].equals("Button"))
>
> {
>
> ss=form.getButtons();
>
> *for*(*int*j=0;j<ss.length;j++)
>
> {
>
>
> System./out/.println("booouufghsd"+ss[j].getName());
>
> *if*(ss[j].getName().equals(names[i]))
>
> {
>
> *if*(ss[j] != *null*) {
>
> // System.out.println("This is not null ");
>
> ss[j].click();
>
> System./out/.println("This is not
> null "+ss[j].getType() );
>
> //form.submit();
>
> //String
> _url_="http://wilyisl007:7021/sbconsole/sbconsole.portal?_nfpb=true&UDDIImportPortlet_actionOverride=/com/bea/alsb/console/uddi/pageflow/uddiimport/searchBusinessServicesResult
> <http://wilyisl007:7021/sbconsole/sbconsole.portal?_nfpb=true&UDDIImportPortlet_actionOverride=/com/bea/alsb/console/uddi/pageflow/uddiimport/searchBusinessServicesResult>";
>
> //System.out.println("This is not null "+form.getAction());
>
> //request=new GetMethodWebRequest(form.getAction());
>
> //response=wc.getResponse(request);
>
> response=wc.getCurrentPage();
>
> }
>
> }
>
> **
>
>
> ------------------------------------------------------------------------------
> WhatsUp Gold - Download Free Network Management Software
> The most intuitive, comprehensive, and cost-effective network
> management toolset available today. Delivers lowest initial
> acquisition cost and overall TCO of any competing solution.
> http://p.sf.net/sfu/whatsupgold-sd
>
>
> _______________________________________________
> Httpunit-develop mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/httpunit-develop
--
BITPlan - smart solutions
Wolfgang Fahl
Pater-Delp-Str. 1, D-47877 Willich Schiefbahn
Tel. +49 2154 811-480, Fax +49 2154 811-481
Web: http://www.bitplan.de
BITPlan GmbH, Willich - HRB 6820 Krefeld, Steuer-Nr.: 10258040548, Geschäftsführer: Wolfgang Fahl
--------------060106040101030904080808
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: 8bit
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Dear RAJASHREE NANDINI,<br>
<br>
you might want to read the FAQ and convert you request to a JUnit
Testcase that shows<br>
the problem with a local url. The task of simplifying and
structuring your problem is yours.<br>
Please separate the concerns to see whether it is a JavaScript issue
which is the most likely cause (see FAQ).<br>
<br>
Yours<br>
Wolfgang<br>
<br>
Am 04.05.11 09:11, schrieb RAJASHREE NANDINI:
<blockquote
cite="mid:[email protected]"
type="cite">
<p style="margin: 0in 0in 0pt;" class="MsoNormal"><font size="3"><font
face="Calibri">Hi,</font></font></p>
<p style="margin: 0in 0in 0pt;" class="MsoNormal"><font size="3"><font
face="Calibri">Rajashree here. I used httpunit Api for
test an application. I have a button having onClick(). After
clicking the button it should go next page .but I m getting
same page as response . plz help me
..</font></font></p>
<p style="margin: 0in 0in 0pt;" class="MsoNormal"><font
face="Calibri" size="3"> </font></p>
<p style="margin: 0in 0in 0pt;" class="MsoNormal"><font
face="Calibri" size="3"> </font></p>
<p style="margin: 0in 0in 0pt;" class="MsoNormal"><font
face="Calibri" size="3"> </font></p>
<p style="margin: 0in 0in 0pt;" class="MsoNormal"><font size="3"><font
face="Calibri"><b>The source code is</b> <td
align="left" valign="middle" colspan="2" width=><input
type="button" name="UDDIImportPortletsearch" value="Search"
width="" title="" class="buttonActive"
onClick="setActionAndSubmitForm('searchBusinessServiceForm','<a
moz-do-not-send="true"
href="http://localhost:7021/sbconsole/sbconsole.portal?_nfpb=true&UDDIImportPortlet_actionOverride=/com/bea/alsb/console/uddi/pageflow/uddiimport/searchBusinessServicesResult%27">http://localhost:7021/sbconsole/sbconsole.portal?_nfpb=true&UDDIImportPortlet_actionOverride=/com/bea/alsb/console/uddi/pageflow/uddiimport/searchBusinessServicesResult'</a>)"
/></td></font></font></p>
<p style="margin: 0in 0in 0pt;" class="MsoNormal"><font
face="Calibri" size="3"> </font></p>
<p style="margin: 0in 0in 0pt;" class="MsoNormal"><font
face="Calibri" size="3"> </font></p>
<p style="margin: 0in 0in 0pt;" class="MsoNormal"><b><font
face="Calibri" size="3">My code is-</font></b><b><span
style="font-family: 'Courier New'; color: rgb(127, 0, 85);
font-size: 10pt;">if</span></b><span style="font-family:
'Courier New'; color: black; font-size: 10pt;">(types[i].equals(</span><span
style="font-family: 'Courier New'; color: rgb(42, 0, 255);
font-size: 10pt;">"Button"</span><span style="font-family:
'Courier New'; color: black; font-size: 10pt;">))</span><span
style="font-family: 'Courier New'; font-size: 10pt;"></span></p>
<p style="margin: 0in 0in 0pt;" class="MsoNormal"><span
style="font-family: 'Courier New'; color: black; font-size:
10pt;"> {</span><span
style="font-family: 'Courier New'; font-size: 10pt;"></span></p>
<p style="margin: 0in 0in 0pt;" class="MsoNormal"><span
style="font-family: 'Courier New'; color: black; font-size:
10pt;"> </span><span
style="font-family: 'Courier New'; font-size: 10pt;"></span></p>
<p style="margin: 0in 0in 0pt;" class="MsoNormal"><span
style="font-family: 'Courier New'; color: black; font-size:
10pt;"> </span><span
style="font-family: 'Courier New'; font-size: 10pt;"></span></p>
<p style="margin: 0in 0in 0pt;" class="MsoNormal"><span
style="font-family: 'Courier New'; color: black; font-size:
10pt;"> </span><span
style="font-family: 'Courier New'; font-size: 10pt;"></span></p>
<p style="margin: 0in 0in 0pt;" class="MsoNormal"><span
style="font-family: 'Courier New'; color: black; font-size:
10pt;"> </span><span
style="font-family: 'Courier New'; color: rgb(0, 0, 192);
font-size: 10pt;">ss</span><span style="font-family: 'Courier
New'; color: black; font-size: 10pt;">=</span><span
style="font-family: 'Courier New'; color: rgb(0, 0, 192);
font-size: 10pt;">form</span><span style="font-family:
'Courier New'; color: black; font-size: 10pt;">.getButtons();</span><span
style="font-family: 'Courier New'; font-size: 10pt;"></span></p>
<p style="margin: 0in 0in 0pt;" class="MsoNormal"><span
style="font-family: 'Courier New'; color: black; font-size:
10pt;"> </span><b><span
style="font-family: 'Courier New'; color: rgb(127, 0, 85);
font-size: 10pt;">for</span></b><span style="font-family:
'Courier New'; color: black; font-size: 10pt;">(</span><b><span
style="font-family: 'Courier New'; color: rgb(127, 0, 85);
font-size: 10pt;">int</span></b><span style="font-family:
'Courier New'; color: black; font-size: 10pt;"> j=0;j<</span><span
style="font-family: 'Courier New'; color: rgb(0, 0, 192);
font-size: 10pt;">ss</span><span style="font-family: 'Courier
New'; color: black; font-size: 10pt;">.</span><span
style="font-family: 'Courier New'; color: rgb(0, 0, 192);
font-size: 10pt;">length</span><span style="font-family:
'Courier New'; color: black; font-size: 10pt;">;j++)</span><span
style="font-family: 'Courier New'; font-size: 10pt;"></span></p>
<p style="margin: 0in 0in 0pt;" class="MsoNormal"><span
style="font-family: 'Courier New'; color: black; font-size:
10pt;"> </span><span
style="font-family: 'Courier New'; font-size: 10pt;"></span></p>
<p style="margin: 0in 0in 0pt;" class="MsoNormal"><span
style="font-family: 'Courier New'; color: black; font-size:
10pt;"> </span><span
style="font-family: 'Courier New'; font-size: 10pt;"></span></p>
<p style="margin: 0in 0in 0pt;" class="MsoNormal"><span
style="font-family: 'Courier New'; color: black; font-size:
10pt;"> {</span><span
style="font-family: 'Courier New'; font-size: 10pt;"></span></p>
<p style="margin: 0in 0in 0pt;" class="MsoNormal"><span
style="font-family: 'Courier New'; color: black; font-size:
10pt;"> System.</span><i><span
style="font-family: 'Courier New'; color: rgb(0, 0, 192);
font-size: 10pt;">out</span></i><span style="font-family:
'Courier New'; color: black; font-size: 10pt;">.println(</span><span
style="font-family: 'Courier New'; color: rgb(42, 0, 255);
font-size: 10pt;">"booouufghsd"</span><span
style="font-family: 'Courier New'; color: black; font-size:
10pt;">+</span><span style="font-family: 'Courier New'; color:
rgb(0, 0, 192); font-size: 10pt;">ss</span><span
style="font-family: 'Courier New'; color: black; font-size:
10pt;">[j].getName());</span><span style="font-family:
'Courier New'; font-size: 10pt;"></span></p>
<p style="margin: 0in 0in 0pt;" class="MsoNormal"><span
style="font-family: 'Courier New'; color: black; font-size:
10pt;"> </span><b><span
style="font-family: 'Courier New'; color: rgb(127, 0, 85);
font-size: 10pt;">if</span></b><span style="font-family:
'Courier New'; color: black; font-size: 10pt;">(</span><span
style="font-family: 'Courier New'; color: rgb(0, 0, 192);
font-size: 10pt;">ss</span><span style="font-family: 'Courier
New'; color: black; font-size: 10pt;">[j].getName().equals(names[i]))</span><span
style="font-family: 'Courier New'; font-size: 10pt;"></span></p>
<p style="margin: 0in 0in 0pt;" class="MsoNormal"><span
style="font-family: 'Courier New'; color: black; font-size:
10pt;"> {</span><span
style="font-family: 'Courier New'; font-size: 10pt;"></span></p>
<p style="margin: 0in 0in 0pt;" class="MsoNormal"><span
style="font-family: 'Courier New'; color: black; font-size:
10pt;"> </span><b><span
style="font-family: 'Courier New'; color: rgb(127, 0, 85);
font-size: 10pt;">if</span></b><span style="font-family:
'Courier New'; color: black; font-size: 10pt;"> (</span><span
style="font-family: 'Courier New'; color: rgb(0, 0, 192);
font-size: 10pt;">ss</span><span style="font-family: 'Courier
New'; color: black; font-size: 10pt;">[j] != </span><b><span
style="font-family: 'Courier New'; color: rgb(127, 0, 85);
font-size: 10pt;">null</span></b><span style="font-family:
'Courier New'; color: black; font-size: 10pt;">) {</span><span
style="font-family: 'Courier New'; font-size: 10pt;"></span></p>
<p style="margin: 0in 0in 0pt;" class="MsoNormal"><span
style="font-family: 'Courier New'; color: black; font-size:
10pt;"> </span><span
style="font-family: 'Courier New'; color: rgb(63, 127, 95);
font-size: 10pt;">// System.out.println("This is not null
");</span><span style="font-family: 'Courier New'; font-size:
10pt;"></span></p>
<p style="margin: 0in 0in 0pt;" class="MsoNormal"><span
style="font-family: 'Courier New'; color: black; font-size:
10pt;"> </span><span
style="font-family: 'Courier New'; color: rgb(0, 0, 192);
font-size: 10pt;">ss</span><span style="font-family: 'Courier
New'; color: black; font-size: 10pt;">[j].click();</span><span
style="font-family: 'Courier New'; font-size: 10pt;"></span></p>
<p style="margin: 0in 0in 0pt;" class="MsoNormal"><span
style="font-family: 'Courier New'; color: black; font-size:
10pt;"> System.</span><i><span
style="font-family: 'Courier New'; color: rgb(0, 0, 192);
font-size: 10pt;">out</span></i><span style="font-family:
'Courier New'; color: black; font-size: 10pt;">.println(</span><span
style="font-family: 'Courier New'; color: rgb(42, 0, 255);
font-size: 10pt;">"This is not null "</span><span
style="font-family: 'Courier New'; color: black; font-size:
10pt;">+</span><span style="font-family: 'Courier New'; color:
rgb(0, 0, 192); font-size: 10pt;">ss</span><span
style="font-family: 'Courier New'; color: black; font-size:
10pt;">[j].getType() );</span><span style="font-family:
'Courier New'; font-size: 10pt;"></span></p>
<p style="margin: 0in 0in 0pt;" class="MsoNormal"><span
style="font-family: 'Courier New'; color: black; font-size:
10pt;"> </span><span
style="font-family: 'Courier New'; color: rgb(63, 127, 95);
font-size: 10pt;">//form.submit();</span><span
style="font-family: 'Courier New'; font-size: 10pt;"></span></p>
<p style="margin: 0in 0in 0pt;" class="MsoNormal"><span
style="font-family: 'Courier New'; color: black; font-size:
10pt;"> </span><span
style="font-family: 'Courier New'; color: rgb(63, 127, 95);
font-size: 10pt;">//String <u>url</u>="<a
moz-do-not-send="true"
href="http://wilyisl007:7021/sbconsole/sbconsole.portal?_nfpb=true&UDDIImportPortlet_actionOverride=/com/bea/alsb/console/uddi/pageflow/uddiimport/searchBusinessServicesResult"><font
color="#0000ff">http://wilyisl007:7021/sbconsole/sbconsole.portal?_nfpb=true&UDDIImportPortlet_actionOverride=/com/bea/alsb/console/uddi/pageflow/uddiimport/searchBusinessServicesResult</font></a>";</span><span
style="font-family: 'Courier New'; font-size: 10pt;"></span></p>
<p style="margin: 0in 0in 0pt;" class="MsoNormal"><span
style="font-family: 'Courier New'; color: black; font-size:
10pt;"> </span><span
style="font-family: 'Courier New'; color: rgb(63, 127, 95);
font-size: 10pt;">//System.out.println("This is not null
"+form.getAction());</span><span style="font-family: 'Courier
New'; font-size: 10pt;"></span></p>
<p style="margin: 0in 0in 0pt;" class="MsoNormal"><span
style="font-family: 'Courier New'; color: black; font-size:
10pt;"> </span><span
style="font-family: 'Courier New'; color: rgb(63, 127, 95);
font-size: 10pt;">//request=new
GetMethodWebRequest(form.getAction()); </span><span
style="font-family: 'Courier New'; font-size: 10pt;"></span></p>
<p style="margin: 0in 0in 0pt;" class="MsoNormal"><span
style="font-family: 'Courier New'; color: rgb(63, 127, 95);
font-size: 10pt;">//response=wc.getResponse(request);</span><span
style="font-family: 'Courier New'; font-size: 10pt;"></span></p>
<p style="margin: 0in 0in 0pt;" class="MsoNormal"><span
style="font-family: 'Courier New'; color: black; font-size:
10pt;"> </span><span
style="font-family: 'Courier New'; color: rgb(0, 0, 192);
font-size: 10pt;">response</span><span style="font-family:
'Courier New'; color: black; font-size: 10pt;">=</span><span
style="font-family: 'Courier New'; color: rgb(0, 0, 192);
font-size: 10pt;">wc</span><span style="font-family: 'Courier
New'; color: black; font-size: 10pt;">.getCurrentPage();</span><span
style="font-family: 'Courier New'; font-size: 10pt;"></span></p>
<p style="margin: 0in 0in 0pt;" class="MsoNormal"><span
style="font-family: 'Courier New'; color: black; font-size:
10pt;"> } </span><span
style="font-family: 'Courier New'; font-size: 10pt;"></span></p>
<p style="margin: 0in 0in 0pt;" class="MsoNormal"><span
style="font-family: 'Courier New'; color: black; font-size:
10pt;"> </span><span
style="font-family: 'Courier New'; font-size: 10pt;"></span></p>
<p style="margin: 0in 0in 0pt;" class="MsoNormal"><span
style="font-family: 'Courier New'; color: black; font-size:
10pt;"> </span><span
style="font-family: 'Courier New'; font-size: 10pt;"></span></p>
<p style="margin: 0in 0in 0pt;" class="MsoNormal"><span
style="font-family: 'Courier New'; color: black; font-size:
10pt;"> } </span></p>
<p style="margin: 0in 0in 0pt;" class="MsoNormal"><span
style="font-family: 'Courier New'; color: black; font-size:
10pt;"> </span></p>
<p style="margin: 0in 0in 0pt;" class="MsoNormal"><span
style="font-family: 'Courier New'; color: black; font-size:
10pt;"> </span></p>
<p style="margin: 0in 0in 0pt;" class="MsoNormal"><b><font
face="Calibri" size="3"> </font></b></p>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
<a class="moz-txt-link-freetext" href="http://p.sf.net/sfu/whatsupgold-sd">http://p.sf.net/sfu/whatsupgold-sd</a></pre>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Httpunit-develop mailing list
<a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/httpunit-develop">https://lists.sourceforge.net/lists/listinfo/httpunit-develop</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
BITPlan - smart solutions
Wolfgang Fahl
Pater-Delp-Str. 1, D-47877 Willich Schiefbahn
Tel. +49 2154 811-480, Fax +49 2154 811-481
Web: <a class="moz-txt-link-freetext" href="http://www.bitplan.de">http://www.bitplan.de</a>
BITPlan GmbH, Willich - HRB 6820 Krefeld, Steuer-Nr.: 10258040548, Geschäftsführer: Wolfgang Fahl </pre>
</body>
</html>
--------------060106040101030904080808--
--===============6532254402097238945==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
--===============6532254402097238945==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Httpunit-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/httpunit-develop
--===============6532254402097238945==--