Hi David,

1.       about JavaScript - yes it is always a pain ...
But htmlunit is extending and supporting more and more JavaScript - all the 
more we  support the developer with bug-messages

2.       Groovy: you can write Webtests in Goovy - many people do so. Or you 
can use Groovy Scriptlets insite your XML-Webtest like:


<groovy description="execute on blur on comment-element with first.line.id: 
#{first.line.id}" replaceProperties="true">
      
step.context.currentResponse.getHtmlElementById('#{first.line.id}').fireEvent("blur")
</groovy>
Or
<groovy description="select the first element of the new created select-box!" 
replaceProperties="true" >
step.context.currentResponse.getHtmlElementsByName('target_#{wm_id_1}')[0].options[1].selected=true
</groovy>

We do this at the edge of Ant and Webtest. ;-)

Yours,

Michael



Von: [email protected] [mailto:[email protected]] Im 
Auftrag von Zepernick David
Gesendet: Mittwoch, 1. Juli 2009 21:33
An: [email protected]
Betreff: [Webtest] Looking for help running Groovy in Canoo Webtest

Hi, my name is David

I work for John Deere Agri Services and I am a member of development team that 
is building business solutions for the agricultural industry.

I am , more specifically, a part of the QA group. Not a lot of programming  
experience myself but have programmers available to me although their time is 
limitted.

This year our development group decided to give Canoo Webtest a try.

I have become familiar with Canoo Webtest and have been able to write automated 
test scripts.

We as a team have had some success but have run into a few problems that have 
limitted what we can do with Canoo Webtest.

I am hoping to get a little direction from someone that has experience with 
Canoo Webtest.




Problem #1
Javascript errors  -  Controls that are incorporated to some of our webpages 
that are written in javascript cause errors when running the scripts and 
prevent us from saving pages.


The error messages look like this:
JavaScript error loading page 
https://eaqa.jdas.deere.com/Base/Home.aspx?tabcode=HOME&bppik=1
: TypeError: Cannot find function extend in object function Object()
{ [native code for Object.Object, arity=1] } .
(https://eaqa.jdas.deere.com/ajaxpro/Jdas.Applications.ExtendAg.Base.UI.Pages
.Home,Jdas.Applications.ExtendAg.Base.UI.ashx#8)

Problem #2
In attempting to incorporate groovy script into our scripts. Groovy code 
doesn't seem to work.
Eclipse is our IDE , btw .
Is there a simple example of a Canoo webtest script that incorporates the 
<groovy> tags with simple groovy code that will produce some results that I can 
use to verify that I have everything working properly (somewhere out on the 
internet)? The example on the canoo site didn't work as is.

Im not sure my configuration is correct in Eclipse.I had to manually add the 
plugin using a zip file because the software update feature didn't work.

Can you refer me to any documentation that might get me started

Im not even sure this is the right approach. Is Canoo Webtest commonly used 
this way or is it better to right groovy scripts that refer to Canoo webtest 
commands?

Any help would be appreciated.

-- 
Michael Habbert
Key-Work Consulting GmbH

Kriegsstr. 100 - 76133 Karlsruhe - Germany
Fon: +49-721-78203-269 - Fax: +49-721-78203-10
[email protected]


Key-Work Consulting GmbH Karlsruhe, HRB 108695, HRG Mannheim
Geschaeftsfuehrer: Andreas Stappert, Tobin Wotring

Reply via email to