[Webtest] ExtJS Support

Ruslan Roz roz@eleks.com
Fri, 4 Jan 2008 16:18:36 +0200


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.
-- 
Blog: http://mguillem.wordpress.com


Ruslan Roz wrote:
> If I open WebTestResults.html and then click link to page that WebTest
see,
> then table, that contains verified elements, is absence.
> 
> May I send you some screenshots?
> 
> Thanks,
> Ruslan
> 
> -----Original Message-----
> From: webtest-admin@lists.canoo.com [mailto:webtest-admin@lists.canoo.com]
> On Behalf Of Marc Guillemot
> Sent: Friday, December 28, 2007 8:49 PM
> To: webtest@lists.canoo.com
> Subject: Re: [Webtest] ExtJS Support
> 
> Have you tried to dump the current state of the page to see what WebTest
> "sees":
> <groovy>
> println step.context.currentResponse.asXML
> </groovy>
> 
> Cheers,
> Marc.

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