2 messages in com.canoo.lists.webtestRE: [Webtest] wrong requests of webte...| From | Sent On | Attachments |
|---|---|---|
| Ronald Angerer | 14 Oct 2002 03:37 | |
| EPu...@upstate.com | 14 Oct 2002 04:26 |
| Subject: | RE: [Webtest] wrong requests of webtest to the server![]() |
|---|---|
| From: | EPu...@upstate.com (EPu...@upstate.com) |
| Date: | 10/14/2002 04:26:30 AM |
| List: | com.canoo.lists.webtest |
One thing that helps debug your scripts is to run -verbose or -debug on your ant scripts. Then you get more debugging. Also, pull out the step that is failing into it's own target and just run that. That often helps you spot the issue...
eric pugh
-----Original Message----- From: Ronald Angerer [mailto:ROA...@orange.dk] Sent: Monday, October 14, 2002 6:38 AM To: 'webt...@lists.canoo.com' Subject: [Webtest] wrong requests of webtest to the server
Hi!
I'm quite new to webtesting with canoo, and are now stagnating on one problem. During the tests with my antscript i get a correct resulting page (both shown below). When I enter the number "264" into the inputfield "itemNumber" and pushing the button with the name "add" there should be shown an different page. But in fact it comes up with exactly the same HTML source again. I tested this behaviour several times with a standard webbrowser and it worked perferct every time, but not with the framework. There is no javascript or something like this!
There are two possibilities, for this behaviour: 1. the testing framework doesn't enter the number "264" 2. it doesn't push the button.
The ant script itself runs without errors (till i check the content of the result page.) The htmlparseroutput didn't say some noticeable only following messages: Warning: unknown attribute "onhelp" Warning: <table> lacks "summary" attribute Warning: <img> lacks "alt" attribute Warning: <script> lacks "type" attribute"
My questions: 1. Does anyone know this problems and know how to solve it (for my special case)? - Its very important! 2. Is there a possibility to find out which requests webtest performs (including the transmitted parameter)?
Thanks so far! -Ronald
<target name="sales"> <testSpec name="Testing the "Sales use case""> <config host="localhost" port="7001" protocol="http" basepath="rms" verbose="true" summary="true" saveresponse="true" showhtmlparseroutput="true" haltonerror="false" resultpath="../Docs/UAT_Result" resultfile="UATest.xml" /> <steps> <!-- cut .... --> <!-- here I get the resulting page showed below --> <setinputfield stepid="entering 264 in the input field" name="itemNumber" value="264" /> <clickbutton stepid="....and pushing the add button" name="add" /> </steps> </testSpec> </target>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <link rel="stylesheet" type="text/css" href="rms.css;jsessionid=PavgC9iczqhrrLQmNbpHcEFHu0ebF2w3!-116686493!-140770 1871!7001!7002"> <title>Sales</title> </head><body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" onHelp="return false;"> <table cellspacing="0" cellpadding="0" width="100%" border="0"> <tr> <td bgcolor="#000000"> <table cellspacing="20" cellpadding="0" width="100%"> <tr> <td><a href="index.jsp;jsessionid=PavgC9iczqhrrLQmNbpHcEFHu0ebF2w3!-116686493!-1407 701871!7001!7002"><img src="pics/orange.gif" width="40" height="40" border="0"></a></td> <td valign="middle"><img src="pics/title_en.gif" width="610" height="40" border="0" usemap="#session_map" /></td>
</tr> </table><map name="session_map"> <area shape="rect" coords="472,0,498,34" href="session.jsp;jsessionid=PavgC9iczqhrrLQmNbpHcEFHu0ebF2w3!-116686493!-14 07701871!7001!7002"> </map></td> </tr> <tr> <td valign="top"> <table cellspacing="0" cellpadding="10" width="100%" border="0"> <tr> <td valign="top" width="0%"> <table cellspacing="0" cellpadding="1" width="150" border="0"> <tr> <td bgcolor="#000000"> <table cellspacing="0" cellpadding="3" width="100%" border="0">
<tr> <td class="titlemenu"> Shop</td> </tr> <tr> <td bgcolor="#FFFFFF"> <img src="pics/arrow.gif" width="8" height="10"> <strong>ronaldShop</strong><br> <br> </td>
</tr> <tr bgcolor="#000000"> <td> <table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td><img src="pics/e.gif" width="1" height="1" /></td> <td align="right"><a href="/rms/sales.jsp;jsessionid=PavgC9iczqhrrLQmNbpHcEFHu0ebF2w3!-116686493! -1407701871!7001!7002?lang=english"><img src="pics/flag_en.gif" width="26" height="16" border="0" /></a> <a href="/rms/sales.jsp;jsessionid=PavgC9iczqhrrLQmNbpHcEFHu0ebF2w3!-116686493! -1407701871!7001!7002?lang=danish"><img src="pics/flag_da.gif" width="26" height="16" border="0"/></a> <a href="/rms/sales.jsp;jsessionid=PavgC9iczqhrrLQmNbpHcEFHu0ebF2w3!-116686493! -1407701871!7001!7002?lang=swedish"><img src="pics/flag_sv.gif" width="26" height="16" border="0" /></a></td> </tr> </table></td>
</tr> </table></td> </tr> </table> <br> <table cellspacing="0" cellpadding="1" width="100%" border="0"> <tr> <td bgcolor="#000000"> <table cellspacing="0" cellpadding="3" width="100%" border="0"> <tr> <td class="titlemenu"> Menu</td>
</tr> <tr> <td bgcolor="#FFFFFF"> <p><img src="pics/arrow.gif" width="8" height="10"> <span class="menu">Sales</span><br>   <img src="pics/square.gif" width="10" height="10"> <a href="searchitembyname.jsp;jsessionid=PavgC9iczqhrrLQmNbpHcEFHu0ebF2w3!-1166 86493!-1407701871!7001!7002" class="menuitem">Search</a><br>   <img src="pics/square.gif" width="10" height="10"> <a href="sales.jsp;jsessionid=PavgC9iczqhrrLQmNbpHcEFHu0ebF2w3!-116686493!-1407 701871!7001!7002" class="menuitem">Create sale</a><br> <img src="pics/arrow.gif" width="8" height="10"> <span class="menu">Return & Repair</span><br>
  <img src="pics/square.gif" width="10" height="10"> <a href="swap1.jsp;jsessionid=PavgC9iczqhrrLQmNbpHcEFHu0ebF2w3!-116686493!-1407 701871!7001!7002" class="menuitem">Swap</a><br>   <img src="pics/square.gif" width="10" height="10"> <a href="repair100.jsp;jsessionid=PavgC9iczqhrrLQmNbpHcEFHu0ebF2w3!-116686493!- 1407701871!7001!7002" class="menuitem">Repair</a><br>   <img src="pics/square.gif" width="10" height="10"> <a href="return_1.jsp;jsessionid=PavgC9iczqhrrLQmNbpHcEFHu0ebF2w3!-116686493!-1 407701871!7001!7002" class="menuitem">Return</a><br>   <img src="pics/square.gif" width="10" height="10"> <a href="loan100.jsp;jsessionid=PavgC9iczqhrrLQmNbpHcEFHu0ebF2w3!-116686493!-14 07701871!7001!7002" class="menuitem">Loan</a> <br>
<img src="pics/arrow.gif" width="8" height="10"> <span class="menu">Cash</span><br>   <img src="pics/square.gif" width="10" height="10"> <a href="deposit.jsp;jsessionid=PavgC9iczqhrrLQmNbpHcEFHu0ebF2w3!-116686493!-14 07701871!7001!7002" class="menuitem">Deposit</a><br>   <img src="pics/square.gif" width="10" height="10"> <a href="disbursement.jsp;jsessionid=PavgC9iczqhrrLQmNbpHcEFHu0ebF2w3!-11668649 3!-1407701871!7001!7002" class="menuitem">Disbursement</a><br>   <img src="pics/square.gif" width="10" height="10"> <a href="cashcheck.jsp;jsessionid=PavgC9iczqhrrLQmNbpHcEFHu0ebF2w3!-116686493!- 1407701871!7001!7002" class="menuitem">Check</a><br>   <img src="pics/square.gif" width="10" height="10"> <a href="cashreport.jsp;jsessionid=PavgC9iczqhrrLQmNbpHcEFHu0ebF2w3!-116686493! -1407701871!7001!7002?cmd=default" class="menuitem">Cashreport</a> <br>
<img src="pics/arrow.gif" width="8" height="10"> <span class="menu">Client</span><br>   <img src="pics/square.gif" width="10" height="10"> <a href="clientsearchinput.jsp;jsessionid=PavgC9iczqhrrLQmNbpHcEFHu0ebF2w3!-116 686493!-1407701871!7001!7002" class="menuitem">Search</a><br>   <img src="pics/square.gif" width="10" height="10"> <a href="#;jsessionid=PavgC9iczqhrrLQmNbpHcEFHu0ebF2w3!-116686493!-1407701871!7 001!7002" class="menuitem">Invoice pay.</a><br>   <img src="pics/square.gif" width="10" height="10"> <a href="#;jsessionid=PavgC9iczqhrrLQmNbpHcEFHu0ebF2w3!-116686493!-1407701871!7 001!7002" class="menuitem">Close subscrip.</a><br> </p></td>
</tr> </table></td> </tr> </table></td> <td valign="top" width="100%"><table width="100%" border="0" cellspacing="0" cellpadding="3"> <tr> <td class="title"><br> <img src="pics/square.gif" width="10" height="10"> Sales <img src="pics/arrow.gif" width="8" height="10"> Create the order<br> <img src="pics/bar.gif" width="442" height="3" /></td>
</tr> <tr> <td> <br><br> <form action="sales.jsp;jsessionid=PavgC9iczqhrrLQmNbpHcEFHu0ebF2w3!-116686493!-14 07701871!7001!7002" method="post" name="formular"> <br><br> <table width="500" border="0" align="center" cellpadding="2" cellspacing="1"> <tr> <td width="14"> </td> <td width="58" class="titlemenu">Quantity</td> <td width="282" class="titlemenu">Item</td>
<td width="75" class="titlemenu">Price</td> </tr>
<tr class="line2"> <td bgcolor="#FFFFFF"><a href="sales.jsp;jsessionid=PavgC9iczqhrrLQmNbpHcEFHu0ebF2w3!-116686493!-1407 701871!7001!7002?cmd=delete&lineId=0"><img src="pics/delete.gif" width="14" height="14" alt="Delete this item" border="0"></a></td> <td><div align="center">1</div></td> <td>Nokia.3310.Red</td> <td><div align="center">887,00 kr</div></td>
</tr>
<tr class="line1"> <td bgcolor="#FFFFFF"><img src="pics/e.gif" width="1" height="1"
</td>
<td align="center"><input name="quantity" type="text" size="2" value="1"></td> <td><input name="itemNumber" type="text" size="35"></td> <td><div align="center"><input type="image" name="add" src="pics/add.gif" width="40" height="14" border="0" class="img"></div></td> </tr> <tr> <td> </td>
<td> </td> <td><div align="right"><strong>Total</strong>: </div></td> <td bgcolor="#FF9900"> <div align="center"><strong>887,00 kr</strong></div></td> </tr> </table> <br> <table width="400" border="0" align="center" cellpadding="3" cellspacing="0">
<tr> <td><input name="cancel" type="submit" class="button" value="Cancel"></td> <td align="right"><input name="search" type="submit" class="button" value="Search"></td> <td align="right"><input name="payment" type="submit" class="button" value="Payment >>"></td> </tr> </table>
</form> <script language="javascript"> <!-- document.formular.itemNumber.focus(); document.formular.itemNumber.blur(); document.formular.itemNumber.select(); //--> </script> </td>
</tr> </table></td> </tr> </table></td> </tr> </table> </body> </html>
_______________________________________________ WebTest mailing list WebT...@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webtest




