[Webtest] ExtJS Support

Marc Guillemot Marc Guillemot <mguillemot@yahoo.fr>
Mon, 07 Jan 2008 15:06:00 +0100


Hi,

is there some publicly available demo website allowing to reproduce the
problem?

Cheers,
Marc.
-- 
Blog: http://mguillem.wordpress.com


Ruslan Roz wrote:
> Hi Marc, 
> 
> I dumped page by following sequences
> 	<sleep seconds="1"/>
> 	<groovy>
>    	def Dump=new File ('orders_dump.html')
> 	
> Dump.write(step.context.webClient.getCurrentWindow().enclosedPage.asXm	l())
> 	</groovy>
> But result is the same. 
> 
> Earlier, pressing "Select" Button <clickButton label="select" />, that load
> discussed Page, go with:
> 
> 	Message
> 	JavaScript error loading page
> http://localhost:8080/LIFT/ordr/listext: 	TypeError: Cannot convert
> null to an object.
> (http://localhost:8080/LIFT/extJS/ext-all-debug.js#1536)
> 
> 	Location
> 	D:\Installs.FreeWare\Canoo Webtest\myWebTestProject\tests\orders.xml
> (line: 6)
> 
> 	Details
> 	javascript error TypeError: Cannot convert null to an object.
> (http://localhost:8080/LIFT/extJS/ext-all-debug.js#1536) 
> 	line 1536 
> 	javascript source   function (R) {
> 	      return typeof Ext != "undefined" ?
> P(Ext.lib.Event.getEvent(R)) 	: false;
> 	  }
>  
> 	failing line  
> 	javascript call stack TypeError: Cannot convert null to an object.
> (http://localhost:8080/LIFT/extJS/ext-all-debug.js#1536)
> 		at (http://localhost:8080/LIFT/extJS/ext-all-debug.js:1536) 
> 
> 
> To avoid JavaScript error, I set enableJavaScript to false before
> clickButton and to true after clickButton.
> 	<enableJavaScript enable="false" />
> 	<clickButton label="select" />
> 	<enableJavaScript enable="true" />
> 
> As I understand now, <enableJavaScript enable="false" /> causes required
> element isn't found by verifyXPath.  
> And before discussion of ExtJS Support I should resolve problem with
> JavaScript error loading page.
> 
> Could you help me in this case?
> 
> 
> Thanks in advance,
> Ruslan
> 
> 
> -----Original Message-----
> From: webtest-admin@lists.canoo.com [mailto:webtest-admin@lists.canoo.com]
> On Behalf Of Marc Guillemot
> Sent: Friday, January 04, 2008 11:19 AM
> To: webtest@lists.canoo.com
> Subject: Re: [Webtest] ExtJS Support
> 
> Hi,
> 
> the pages shown in the reports are the rough answers from server when
> any, and - with a recent build - a dump of the page state if it has
> changed since last step.
> This means that for instance
> <invoke url="..."/> --> in report you will see the server report
> <sleep seconds="0"/> --> in report, you will see the page state after js
> processing
> 
> Screenshots don't help.
> 
> Cheers,
> Marc.