[Webtest] Newbie needs help!

Wang, Lisong webtest@lists.canoo.com
Fri, 9 Jan 2004 10:20:56 -0500


Thanks Marc, with your tip in mind I did the test steps manually, and the
results at both client side and server side were ok that a PDF file was
received from server in a new browser window.  If I manually close the new
browser window before it has the PDF received, the server will yell out the
same error message I had when I was running Canoo testing scripts.
Is it possible that Canoo does not simulat "one web session shared via two
browsers" right?  Or using "clicklink" tag to test link with "target=_blank"
attribute will need special config?

Lisong
 

-----Original Message-----
From: Marc Guillemot [mailto:mguillemot@yahoo.fr]
Sent: January 9, 2004 6:03 AM
To: webtest@gate2.canoo.com
Subject: Re: [Webtest] Newbie needs help!


Hi,

webtest just checks what it becomes from server. An http error code causes
the 
script to fail but it may happend that an exception occurs on the server
side 
and no http error code is send according to the way the webapp is 
programmed/configured.
Have you look at the generated test reports to check how the responses looks
like?

Marc.


Wang, Lisong wrote:
> Hi:
> My web application has a page that have a couple of reports links on it.
> Via clicking each of the links, it actually launches a new window and
sends
> a report request to the server, and then the server will invoke a report
> servlet to generate the report at run time, and sends the report back to
the
> new window in PDF as response.  Following is the context that may help to
> see what I am asking for:
> 
> Part of html code for the page which has report links:
> <li><a href="/des/reports/meas_list" target="_blank">Puzzle View
> Measures</a></li>
> 
> My Canoo testing scripts:
> ...
> &login;
> <invoke
> 	stepid="go to printable report page"
> 	url="PrintableReports.do" />
> <clicklink
> 	stepid="click on one report link"
> 	label="Puzzle View Measures"/>
> &logout;
> ...
> 
> When I run the testing script with ant, message shows like below:
> 
> BUILD SUCCESSFUL
> Total time: 7 seconds
> 
> But at server side, the same script will cause an exception:
> 
> 30 Dec 2003 15:17:47 FATAL reports.ReportGenerateThread - The class
> "ca.gc.ccra_adrc.bsc.des.view.reports.ReportData" could not be
instantiated
> java.lang.IllegalStateException: Session was invalidated
>         at
>
com.evermind.server.http.EvermindHttpSession.setAttribute(EvermindHttpSessio
> n.java:75)
>         at
>
ca.gc.ccra_adrc.bsc.des.view.reports.ReportGenerateThread.run(ReportGenerate
> Thread.java:91)
> 
> Obviously the report generating operation has been failed at server side
> (note: if I test it manually, it has no problem at server side).
> 
> Does anyone know why Canoo shows a successful message even there is a
> problem?
> What is the difference of request session between manually clicking on a
> link than using Canoo "clicklink"?
> If there is a report has been produced at server side, how could I verify
> that it has been sent to the new window in PDF successfully with Canoo?
> 
> Thanks,
> 
> 
> Lisong Wang
> 
> ITB
> BSC Technology Solution
> (613)941-4847
> 
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
> 


_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest