[Webunitproj-users] RE: enterprise web test
Brought to you by:
dgan
From: Brian K. <bt...@ne...> - 2002-11-05 15:12:39
|
We also added the "onkeydown" event to fire when setting text on an input... we appended the following line to the method described in the email below... thanks. el3.FireEvent("ONKEYDOWN",new Variant(ev)); -----Original Message----- From: Brian Knorr=20 Sent: Monday, November 04, 2002 10:48 AM To: 'Doron' Cc: web...@li... Subject: RE: enterprise web test Thanks... we built from cvs and were able to change the code so the "onchange" event is firing. We also added the "onblur" event. We changed the class com.zeborg.webunit.ie.ExplorerNativeWebClient by appending the following two lines of code at the end of the method setText(WebTag tag, String text): el3.FireEvent("ONCHANGE",new Variant(ev)); el3.FireEvent("ONBLUR",new Variant(ev)); If this is correct, please incorporate these into cvs for the next release... thanks, Brian -----Original Message----- From: Doron [mailto:dg...@sh...]=20 Sent: Monday, November 04, 2002 10:04 AM To: Brian Knorr Cc: web...@li... Subject: RE: enterprise web test Hi Brian, I think actually I was incorrect. The set text triggers a key up event. You'll need to modify the code to add the onChange event (It should be very obvious how to do this if you look at the set text code). I suggest you build from CVS as this will allow you guys to tweak the code(ofcourse we'll incorporate any fixes/enhancements into the CVS tree). -Doron On Mon, 2002-11-04 at 10:44, Brian Knorr wrote: > Is there a new release available for this, or do we have to build from > cvs to get this functionality? We are using 1.02 and are finding that > setValue places the text in the input field correctly, however it isn't > triggering the "onchange" event. Please advise... thanks, >=20 > Brian >=20 >=20 > -----Original Message----- > From: Doron [mailto:dg...@sh...]=20 > Sent: Monday, November 04, 2002 7:18 AM > To: Brian Knorr > Cc: web...@li... > Subject: RE: enterprise web test >=20 > Hi Brian, >=20 > The webunit code will trigger an OnChange event when you do a > setValue() on the input tag. If you look at the web unit code, what this > does is actually generate that event explicitly. So ideally you could > generate the event explicitly but with the current code the side-effect > of a setValue on a text field will do it. >=20 > -Doron >=20 >=20 > On Fri, 2002-11-01 at 17:02, Brian Knorr wrote: > > Thanks for the info... we started writing some tests using Web Unit > and > > we have made some really good progress using the system as is. We > just > > ran into our first hurdle though -- we have a single input field on a > > page that utilizes the "onchange" javascript event when a user tabs > out > > of the field. However with web unit we can't find a way to "tab out" > > of the field, especially since this is the only field on the page. > Any > > ideas on how we could get this working... thanks, > >=20 > > Brian > >=20 > > -----Original Message----- > > From: Doron [mailto:dg...@sh...]=20 > > Sent: Friday, November 01, 2002 10:54 AM > > To: Brian Knorr > > Cc: web...@li... > > Subject: RE: enterprise web test > >=20 > > Hi Brian, > >=20 > > First you need to generate a test case (that generates some > > dynamic > > HTML based on a javascript event (like a button push). Then the test > > case needs to use web unit to drive the page, pressing the button, and > > then trying to do something else on the generated html (like pressing > a > > button) This will cover the dynamic HTML test case. > >=20 > > The second part you should probably have all the events that you > > will > > need but if not we can add an API to generate all the HTML events for > > each HTML component which will allow you to generate all events > without > > having to modify web-unit. > >=20 > > So you have two options on how to get this done: > >=20 > > 1) You can code it yourself (its not too hard). > >=20 > > OR > > =09 > > 2) You can send us the test case and we can add/fix code to make > > sure > > it works. This method depends on us having some free time to code this > > up. Erik seems to have more time than I do these days. However, it > > should take 1-2 weeks to do it worst case (very conservative > estimate). > >=20 > > =09 > > -Doron > >=20 > >=20 > > On Fri, 2002-11-01 at 11:11, Brian Knorr wrote: > > > Great... we are really looking forward to using web unit for testing > > our > > > applications, and it sounds like with just a little work, Web Unit > > could > > > fully satisfy our testing needs. What is the process to have the > > > remaining javascript events supported, as well as dhtml? Any idea > on > > a > > > timeframe we could be looking at for a release of these new > features? > > >=20 > > > Thanks, > > >=20 > > > Brian > > >=20 > > >=20 > > >=20 > > > -----Original Message----- > > > From: Doron [mailto:dg...@sh...]=20 > > > Sent: Friday, November 01, 2002 6:55 AM > > > To: Brian Knorr > > > Subject: Re: enterprise web test > > >=20 > > > Hi Brian, > > >=20 > > > Web unit supports complex java script since it really is NOT > > > involved > > > in processing (I.E. does the work). Web unit can be used to > actually > > > generate any event on any HTML component but right now it just does > > the > > > simple stuff (like onChange on a select when the code changes the > > value > > > of a select field and key up on a text field change when the code > > > changes the text value). More events can be added easily. > > >=20 > > > As for dynamic HTML, it may be necessary to add a tiny bit of > > > code to > > > tell WebUnit NOT to cache the text of an HTML page once it is > received > > > from the server since it can change via DHTML. This will slow things > > > down some (depending on how big the HTML is) but it will work. > > >=20 > > > -Doron > > >=20 > > >=20 > > > On Thu, 2002-10-31 at 17:28, Brian Knorr wrote: > > > > Hello there... > > > >=20 > > > > =20 > > > >=20 > > > > We are looking at the various open source testing tools and came > > > across > > > > Enterprise Web Test... from what we have read and seen it looks > very > > > > promising. Quick question: we are creating a very > javascript/dtml > > > > intensive application tailored for Internet Explorer 5.5+... does > > > > Enterprise Web Test support complex javascript and dhtml > > (manipulating > > > > the dom, triggering off of all available events, etc...)? If not, > > how > > > > difficult would it be to fully support all the javascript that IE > > has > > > to > > > > offer? Please let me know what you think... thanks, > > > >=20 > > > > =20 > > > >=20 > > > > Brian > > > >=20 > > >=20 > > >=20 > >=20 > >=20 >=20 >=20 |