[Webtest] Newbie needs help!

Marc Guillemot webtest@lists.canoo.com
Fri, 09 Jan 2004 12:03:06 +0100


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
>