[Webtest] Help

Mahesh Pande webtest@lists.canoo.com
Wed, 16 Apr 2003 11:00:28 +0530


This is a multi-part message in MIME format.

------=_NextPart_000_0021_01C30407.6442AFC0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_001_0022_01C30407.6442AFC0"


------=_NextPart_001_0022_01C30407.6442AFC0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Hi,
I am new to Canoo WebTest and just started using it. However, I am getting
one "Connection Timed out Error" for unknown reason. I am attaching both,
the ant script, which contains the Canoo Test Specs., as well as the WebTest
generated report in the html format.
The Application under Test is a website which uses CGI.
Please help me resolve this problem as I am badly need of your help.
I request you to please be kind enough to solve my problem.

Thanks and regards,
Mahesh

------=_NextPart_001_0022_01C30407.6442AFC0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR></HEAD>
<BODY style=3D"COLOR: #000000; FONT-FAMILY: Arial">
<DIV>
<DIV>
<DIV><FONT size=3D2><SPAN =
class=3D747243314-15042003>Hi,</SPAN></FONT></DIV>
<DIV><FONT size=3D2><SPAN class=3D747243314-15042003>I am new to Canoo =
WebTest and=20
just started using it. However, I am getting one "Connection Timed out =
Error"=20
for unknown reason. I am attaching both, the ant script, which contains =
the=20
Canoo Test Specs., as well as the&nbsp;<SPAN=20
class=3D912122904-16042003>We</SPAN><SPAN =
class=3D912122904-16042003>bTest=20
</SPAN>generated report in the html format.</SPAN></FONT></DIV>
<DIV><FONT size=3D2><SPAN class=3D747243314-15042003>The Application =
under Test is a=20
website which uses CGI.</SPAN></FONT></DIV>
<DIV><FONT size=3D2><SPAN class=3D747243314-15042003>Please help me =
resolve this=20
problem as I am badly need of your help.</SPAN></FONT></DIV>
<DIV><FONT size=3D2><SPAN class=3D747243314-15042003>I request you to =
please be kind=20
enough to solve my problem.</SPAN></FONT></DIV>
<DIV><FONT size=3D2><SPAN =
class=3D393272805-16042003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2><SPAN class=3D747243314-15042003>Thanks and=20
regards,</SPAN></FONT></DIV>
<DIV><FONT size=3D2><SPAN=20
class=3D747243314-15042003>Mahesh</SPAN></FONT></DIV></DIV></DIV></BODY><=
/HTML>

------=_NextPart_001_0022_01C30407.6442AFC0--

------=_NextPart_000_0021_01C30407.6442AFC0
Content-Type: text/xml;
	name="test_pb.xml"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="test_pb.xml"


<project name=3D"Test Pitney Bowes" basedir=3D"." default=3D"all">

<property name=3D"J2EE_HOST" value=3D"www.pb.com"/>
<property name=3D"CANOO_WEBTEST_HOME" value=3D"D:\CanooWebTest"/>
<property name=3D"resultpath" value=3D"C:\PB-Testing\PitneyBowes"/>
<property name=3D"resultfile" value=3D"PBWebTestResult.xml"/>
<property name=3D"test" value=3D"C:\PB-Testing\PitneyBowes"/>
<property name=3D"start.page" value=3D"home/index.jsp"/>
<property name=3D"base" value=3D"cgi-bin/pb.dll"/>




	<target name=3D"banner">
		<echo message=3D"+---------------------------------------+"/>
		<echo message=3D"+           Testing on Pitney Bowes            +"/>
		<echo message=3D"+---------------------------------------+"/>	=09
		<delete dir=3D"${test}" failonerror=3D"false"/>
		<mkdir dir=3D"${test}"/>
	</target>

	<target name=3D"all" depends=3D"banner">
		<testSpec name=3D"Test Homepage or Login Page on Pitney Bowes">
			<config=20
				host=3D"${J2EE_HOST}"
				basepath=3D"${base}"
				protocol=3D"http"
				summary=3D"true"
				verbose=3D"true"
				saveresponse=3D"true"
			        resultpath=3D"C:\PB-Testing\PitneyBowes"
			        resultfile=3D"PBWebTestResult.xml"
			        haltonerror=3D"false"
			        haltonfailure=3D"false"
   			>
			</config>

			<steps>
				<invoke	url=3D"${start.page}"/>
				<verifytext	 stepid=3D"Verify title on main-page"
						 text=3D"Patni"
				/>
			</steps>					    =20
		=09
		</testSpec>

<!--		<testSpec name=3D"Check all links on petstore and on its subpages =
except on foreign hosts">
		   	<config=20
		   		host=3D"${J2EE_HOST}"
		   		port=3D"${J2EE_LISTEN_PORT}"
		   		protocol=3D"http"
		   		basepath=3D"petstore"
		   		summary=3D"true"
		   		verbose=3D"true"
		   		saveresponse=3D"true"
		   		resultpath=3D"C:\PetStore1.3.1_02\Test1"
		   		resultfile=3D"PetStoreWebTestResult.xml"
		   		haltonerror=3D"false"
		   		haltonfailure=3D"false"
		      	>
		   	</config>

		   <steps>=20
		      <invoke url=3D"main.screen"/>
		      <verifylinks stepid=3D"Check Links"=20
		      onsiteonly=3D"true"/>
		   </steps>
		</testSpec>

-->	=09
	=09
		<copy file=3D"${resultpath}/${resultfile}" todir=3D"." /> <!-- make =
available for merge -->
		<ant antfile=3D"D:\CanooWebTest\doc\samples\Appender\AppendUse.xml"/>
	=09
	</target>
=09
	<target name=3D"CreateSummaryReport" >
	       <tstamp>
	            <format property=3D"report.time" pattern=3D"dd.MM.yyyy =
hh:mm:ss"/>
	        </tstamp>
	        <ant antfile=3D"D:\CanooWebTest\doc\samples\ApplyXSL.xml" =
target=3D"applySingle">
				<!-- resultfile and report.time  already set -->
				<property name=3D"resultfile.html" =
value=3D"TestResultOverview.html"/>
				<property name=3D"style" =
value=3D"D:\CanooWebTest\doc\Samples\reportFromSummary.xsl"/>
	        </ant>
    </target>


	<taskdef name=3D"testSpec" =
classname=3D"com.canoo.webtest.ant.TestSpecificationTask">
		<classpath>
			<fileset dir=3D"${CANOO_WEBTEST_HOME}/lib" includes=3D"*.jar"/>
		</classpath>
	</taskdef>
</project>

------=_NextPart_000_0021_01C30407.6442AFC0
Content-Type: text/html;
	name="TestResultOverview.html"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="TestResultOverview.html"

<a name=3D"%0A%09%09%09%09overview%0A%09%09%09"></a>
<h1>Summary Report for Canoo WebTest</h1>
<H2>Test Result Overview</H2>
<h3>Test started at Tue Apr 15 19:57:18 IST 2003</h3>
<table border=3D"1" cellpadding=3D"6">
<tr>
<th>No</th><th>Name</th>
</tr>
<tr>
<td valign=3D"top" class=3D"tocred">1</td><td><a class=3D"toc" =
href=3D"#testspec1">Test Homepage or Login Page on Pitney Bowes</a></td>
</tr>
</table>
   =20
<hr>
<CENTER>
<a name=3D"#testspec1">
<H2>Test Summary for<BR>"Test Homepage or Login Page on Pitney =
Bowes"</H2>
</a>
<H3>
        Test started at Tue Apr 15 19:57:18 IST 2003</H3>
<table border=3D"0" cellpadding=3D"6">
<tr>
<td class=3D"red">Test was not sucessful!</td>
</tr>
</table>
</CENTER>
<h2>Test Parameters</h2>
<table border=3D"0" cellspacing=3D"1" cellpadding=3D"1">
<tr class=3D"params">
<td class=3D"paramname">basepath</td><td>"<b>cgi-bin/pb.dll</b>"</td>
</tr>
<tr class=3D"params">
<td class=3D"paramname">defaultpage</td><td>"<b>null</b>"</td>
</tr>
<tr class=3D"params">
<td class=3D"paramname">haltonerror</td><td>"<b>no</b>"</td>
</tr>
<tr class=3D"params">
<td class=3D"paramname">haltonfailure</td><td>"<b>no</b>"</td>
</tr>
<tr class=3D"params">
<td class=3D"paramname">host</td><td>"<b>www.pb.com</b>"</td>
</tr>
<tr class=3D"params">
<td class=3D"paramname">port</td><td>"<b>80</b>"</td>
</tr>
<tr class=3D"params">
<td class=3D"paramname">protocol</td><td>"<b>http</b>"</td>
</tr>
<tr class=3D"params">
<td =
class=3D"paramname">resultfile</td><td>"<b>PBWebTestResult.xml</b>"</td>
</tr>
<tr class=3D"params">
<td =
class=3D"paramname">resultpath</td><td>"<b>C:\PB-Testing\PitneyBowes</b>"=
</td>
</tr>
<tr class=3D"params">
<td class=3D"paramname">saveresponse</td><td>"<b>yes</b>"</td>
</tr>
<tr class=3D"params">
<td class=3D"paramname">showhtmlparseroutput</td><td>"<b>no</b>"</td>
</tr>
<tr class=3D"params">
<td class=3D"paramname">summary</td><td>"<b>yes</b>"</td>
</tr>
<tr class=3D"params">
<td class=3D"paramname">verbose</td><td>"<b>yes</b>"</td>
</tr>
</table>
<h2>Executed Test Steps</h2>
<table width=3D"100%" border=3D"1" cellpadding=3D"4">
<tr>
<th width=3D"30">No</th><th width=3D"200">Name</th><th =
width=3D"*">Parameter</th><th width=3D"50">Duration</th><th =
width=3D"100">Result</th>
</tr>
<tr>
<td>1</td><td>
<table cellpadding=3D"1">
<tr>
<td class=3D"stepname">invoke</td>
</tr>
<tr>
<td>
					"<b>&lt;unknown&gt;</b>"
				</td>
</tr>
</table>
</td><td>
<table cellpadding=3D"2">
<tr class=3D"params">
<td class=3D"paramname">url</td><td>"<b>home/index.jsp</b>"</td>
</tr>
</table>
</td><td colspan=3D"2" class=3D"red"><a class=3D"result" =
href=3D"#error1">
                    Failed
                </a></td>
</tr>
<tr>
<td>2</td><td>
<table cellpadding=3D"1">
<tr>
<td class=3D"stepname">verifytext</td>
</tr>
<tr>
<td>
					"<b>Verify title on main-page</b>"
				</td>
</tr>
</table>
</td><td>
<table cellpadding=3D"2">
<tr class=3D"params">
<td class=3D"paramname">regex</td><td>"<b>false</b>"</td>
</tr>
<tr class=3D"params">
<td class=3D"paramname">text</td><td>"<b>Patni</b>"</td>
</tr>
</table>
</td><td colspan=3D"2" class=3D"normal">n/a</td>
</tr>
</table>
<a name=3D"error1">
<h2>Error</h2>
</a>
<h3>Exception</h3>com.canoo.webtest.engine.StepExecutionException<h3>Exce=
ption</h3>Unexpected exception caught: Connection timed out: =
connect<h3>Stacktrace</h3>
<PRE>com.canoo.webtest.engine.StepExecutionException: Unexpected =
exception caught: Connection timed out: connect
	at =
com.canoo.webtest.steps.Step.handleUnexpectedException(Step.java:237)
	at com.canoo.webtest.steps.request.Target.gotoTarget(Target.java:225)
	at com.canoo.webtest.steps.request.Target.gotoTarget(Target.java:183)
	at =
com.canoo.webtest.steps.request.InvokePage.doExecute(InvokePage.java:41)
	at com.canoo.webtest.steps.Step.execute(Step.java:56)
	at com.canoo.webtest.engine.Engine.executeSteps(Engine.java:32)
	at =
com.canoo.webtest.ant.TestSpecificationTask.execute(TestSpecificationTask=
.java:55)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
	at org.apache.tools.ant.Task.perform(Task.java:341)
	at org.apache.tools.ant.Target.execute(Target.java:309)
	at org.apache.tools.ant.Target.performTasks(Target.java:336)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
	at org.apache.tools.ant.Main.runBuild(Main.java:609)
	at org.apache.tools.ant.Main.start(Main.java:196)
	at org.apache.tools.ant.Main.main(Main.java:235)
</PRE>
<a href=3D"#overview">Back to Test Report Overview</a>

<table width=3D"100%" border=3D"0">
<tr>
<td class=3D"footer">
<hr>
	            Created using
	            <a href=3D"http://webtest.canoo.com/webtest">
					CanooWebTest
				</a>
	            and its reporting tools.
			</td>
</tr>
</table>

------=_NextPart_000_0021_01C30407.6442AFC0--