[Webtest] Help
Aatish Arora
webtest@lists.canoo.com
Wed, 16 Apr 2003 01:54:00 -0700 (PDT)
Hi Mahesh,
Are you behind a firewall?...or use a proxy server?
And in ur script u havent defined the property for the
port u r using...unless i missed it :">
Cheers!
Aatish
--- Mahesh Pande <mahesh.pande@patni.com> wrote:
> 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
> >
> <project name="Test Pitney Bowes" basedir="."
> default="all">
>
> <property name="J2EE_HOST" value="www.pb.com"/>
> <property name="CANOO_WEBTEST_HOME"
> value="D:\CanooWebTest"/>
> <property name="resultpath"
> value="C:\PB-Testing\PitneyBowes"/>
> <property name="resultfile"
> value="PBWebTestResult.xml"/>
> <property name="test"
> value="C:\PB-Testing\PitneyBowes"/>
> <property name="start.page" value="home/index.jsp"/>
> <property name="base" value="cgi-bin/pb.dll"/>
>
>
>
>
> <target name="banner">
> <echo
>
message="+---------------------------------------+"/>
> <echo message="+ Testing on Pitney Bowes
> +"/>
> <echo
>
message="+---------------------------------------+"/>
>
> <delete dir="${test}" failonerror="false"/>
> <mkdir dir="${test}"/>
> </target>
>
> <target name="all" depends="banner">
> <testSpec name="Test Homepage or Login Page on
> Pitney Bowes">
> <config
> host="${J2EE_HOST}"
> basepath="${base}"
> protocol="http"
> summary="true"
> verbose="true"
> saveresponse="true"
> resultpath="C:\PB-Testing\PitneyBowes"
> resultfile="PBWebTestResult.xml"
> haltonerror="false"
> haltonfailure="false"
> >
> </config>
>
> <steps>
> <invoke url="${start.page}"/>
> <verifytext stepid="Verify title on main-page"
> text="Patni"
> />
> </steps>
>
> </testSpec>
>
> <!-- <testSpec name="Check all links on petstore
> and on its subpages except on foreign hosts">
> <config
> host="${J2EE_HOST}"
> port="${J2EE_LISTEN_PORT}"
> protocol="http"
> basepath="petstore"
> summary="true"
> verbose="true"
> saveresponse="true"
> resultpath="C:\PetStore1.3.1_02\Test1"
> resultfile="PetStoreWebTestResult.xml"
> haltonerror="false"
> haltonfailure="false"
> >
> </config>
>
> <steps>
> <invoke url="main.screen"/>
> <verifylinks stepid="Check Links"
> onsiteonly="true"/>
> </steps>
> </testSpec>
>
> -->
>
> <copy file="${resultpath}/${resultfile}" todir="."
> /> <!-- make available for merge -->
> <ant
>
antfile="D:\CanooWebTest\doc\samples\Appender\AppendUse.xml"/>
>
> </target>
>
> <target name="CreateSummaryReport" >
> <tstamp>
> <format property="report.time"
> pattern="dd.MM.yyyy hh:mm:ss"/>
> </tstamp>
> <ant
> antfile="D:\CanooWebTest\doc\samples\ApplyXSL.xml"
> target="applySingle">
> <!-- resultfile and report.time already set -->
> <property name="resultfile.html"
> value="TestResultOverview.html"/>
> <property name="style"
>
value="D:\CanooWebTest\doc\Samples\reportFromSummary.xsl"/>
> </ant>
> </target>
>
>
> <taskdef name="testSpec"
>
classname="com.canoo.webtest.ant.TestSpecificationTask">
> <classpath>
> <fileset dir="${CANOO_WEBTEST_HOME}/lib"
> includes="*.jar"/>
> </classpath>
> </taskdef>
> </project>
>
---------------------------------
Summary Report for Canoo WebTestTest Result
OverviewTest started at Tue Apr 15 19:57:18 IST
2003NoName1Test Homepage or Login Page on Pitney Bowes
---------------------------------
Test Summary for
"Test Homepage or Login Page on Pitney Bowes"
Test started at Tue Apr 15 19:57:18 IST 2003Test was
not sucessful!Test
Parametersbasepath"cgi-bin/pb.dll"defaultpage"null"haltonerror"no"haltonfailure"no"host"www.pb.com"port"80"protocol"http"resultfile"PBWebTestResult.xml"resultpath"C:\PB-Testing\PitneyBowes"saveresponse"yes"showhtmlparseroutput"no"summary"yes"verbose"yes"Executed
Test StepsNoNameParameterDurationResult1invoke
"<unknown>" url"home/index.jsp"
Failed 2verifytext "Verify title on
main-page"
regex"false"text"Patni"n/aErrorExceptioncom.canoo.webtest.engine.StepExecutionExceptionExceptionUnexpected
exception caught: Connection timed out:
connectStacktrace
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)
Back to Test Report Overview
---------------------------------
Created using
CanooWebTest and its reporting tools.
=====
================================================
Six monkeys pounding on six typewriters at random for a million years will recreate all the works of Isaac Asimov.
================================================
__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com