Thread: [Logitest-developer] Features added
Status: Alpha
Brought to you by:
aeden
From: Clancy M. <cl...@cy...> - 2002-02-07 00:23:14
|
I have committed the following changes to the CVS - Added support for variables - Added recording of get and post requests made by the browser - Added ResourceChild class as generic child to variable readers and testlets - Replaced OROMatcher.jar with jakarta-oro-2.0.5.jar - Changed browser component to CalHTMLPane to support recording and for better rendering - Enhancements to paths (e.g. in Expect Testlet) to make them more xpath like (e.g. / at start, // for recursive search) - Added Diff Testlet - Changed default view to Browser instead of HTML - Added session ID substitution to test properties for use with recording and diffing when URLs contain a session ID Cheers, Clancy __________________________________________________________________________ Clancy Malcolm <cl...@cy...> Application Development Manager Cybersource: Level 9, 140 Queen Street, Melbourne http://www.cyber.com.au Phone: 03 9642 5997 Fax: 03 9642 5998 Mobile: 0414 297879 |
From: Anthony E. <me...@an...> - 2002-02-13 16:31:09
|
Clancy, Here are some issues which I found with your additions: - The icons you added seem to be corrupt. - NPE in the singleStep() method when no items selected. I have commited code to fix this - the default behavior is to just select the first test (and thus test the first resource) when nothing is selected. - CalpaHTMLPane doesn't support SSL. Any thoughts on how to deal with this? This is the reason I switched back to JEditorPane. - You added DiffTestlet but not to the config. Is it because you want to test it some more before adding it to the available testlet list in the config? - The DOM and HTML views don't seem to be in sync with the browser view. - The temp file addition to the SaveThread always fails on my machine (and thus I cannot save). Sincerely, Anthony Eden > -----Original Message----- > From: log...@li... > [mailto:log...@li...]On Behalf Of > Clancy Malcolm > Sent: Wednesday, February 06, 2002 7:21 PM > To: Log...@li... > Subject: [Logitest-developer] Features added > > > I have committed the following changes to the CVS > > - Added support for variables > - Added recording of get and post requests made by the browser > - Added ResourceChild class as generic child to variable readers and > testlets > - Replaced OROMatcher.jar with jakarta-oro-2.0.5.jar > - Changed browser component to CalHTMLPane to support recording and for > better rendering > - Enhancements to paths (e.g. in Expect Testlet) to make them more xpath > like (e.g. / at start, // for recursive search) > - Added Diff Testlet > - Changed default view to Browser instead of HTML > - Added session ID substitution to test properties for use with recording > and diffing when URLs contain a session ID > > Cheers, > Clancy > __________________________________________________________________________ > Clancy Malcolm <cl...@cy...> Application Development Manager > Cybersource: Level 9, 140 Queen Street, Melbourne http://www.cyber.com.au > Phone: 03 9642 5997 Fax: 03 9642 5998 Mobile: 0414 297879 > > _______________________________________________ > Logitest-developer mailing list > Log...@li... > https://lists.sourceforge.net/lists/listinfo/logitest-developer > |
From: Clancy M. <cl...@cy...> - 2002-02-14 02:36:48
|
On Thursday 14 February 2002 03:31, Anthony Eden wrote: > Clancy, > > Here are some issues which I found with your additions: > > - The icons you added seem to be corrupt. I guess this is another instance of me assuming that the CVS server recognises certain extensions as binary (gif, jar, etc). I'll try re-adding them as binary. As a side note, I found that the current build.xml will copy the images to build/classes after it makes the jar, causing the images to be missing from the jar for the first build after a clean. I have patched the build.xml and will commit it soon. > - NPE in the singleStep() method when no items selected. I have commited > code to fix this - the default behavior is to just select the first test > (and thus test the first resource) when nothing is selected. Thanks. > - CalpaHTMLPane doesn't support SSL. Any thoughts on how to deal with > this? This is the reason I switched back to JEditorPane. Hmmm. This is currently OK for URLs opened from other parts of Logitest - these URLs are opened by AbstractBrowser and the HTML is then given to CalpaHTMLPane. The only part that would fail is if you were submitting forms or clicking links within the CalpaHTMLPane. For the web sites I am testing I found JEditorPane basically unusable for clicking on links anyway - any links inside tables were rendedered as links, but didn't respond to clicks. Long term I think we need to find a better (preferrably with source code) HTML renderer than both JEditorPane and CalpaHTMLPane which both seem to be limitted. In the shorter term maybe we need to let the user switch between the two so that they can choose to have either recording functions or HTTPS browsing functions. What are your thoughts? > - You added DiffTestlet but not to the config. Is it because you want to > test it some more before adding it to the available testlet list in the > config? It can be added to the config, but it is fairly rough at the moment and only has limitted usefulness. Part of what is lacking is a way to display the differences between the reference and captured documents. The only diff code I can find out there is GPL which has the 'viral' effect when you add it to your own code. > - The DOM and HTML views don't seem to be in sync with the browser view. I noticed this but thought it had always been this way and couldn't really understand how I could have broken it. Anyway, I will have a look at it. > - The temp file addition to the SaveThread always fails on my machine (and > thus I cannot save). Can you give me a stacktrace? It seems to work fine for me. > Sincerely, > Anthony Eden > > > -----Original Message----- > > From: log...@li... > > [mailto:log...@li...]On Behalf Of > > Clancy Malcolm > > Sent: Wednesday, February 06, 2002 7:21 PM > > To: Log...@li... > > Subject: [Logitest-developer] Features added > > > > > > I have committed the following changes to the CVS > > > > - Added support for variables > > - Added recording of get and post requests made by the browser > > - Added ResourceChild class as generic child to variable readers and > > testlets > > - Replaced OROMatcher.jar with jakarta-oro-2.0.5.jar > > - Changed browser component to CalHTMLPane to support recording and for > > better rendering > > - Enhancements to paths (e.g. in Expect Testlet) to make them more xpath > > like (e.g. / at start, // for recursive search) > > - Added Diff Testlet > > - Changed default view to Browser instead of HTML > > - Added session ID substitution to test properties for use with recording > > and diffing when URLs contain a session ID > > > > Cheers, > > Clancy > > _________________________________________________________________________ > >_ Clancy Malcolm <cl...@cy...> Application Development > > Manager Cybersource: Level 9, 140 Queen Street, Melbourne > > http://www.cyber.com.au Phone: 03 9642 5997 Fax: 03 9642 5998 > > Mobile: 0414 297879 > > > > _______________________________________________ > > Logitest-developer mailing list > > Log...@li... > > https://lists.sourceforge.net/lists/listinfo/logitest-developer > > _______________________________________________ > Logitest-developer mailing list > Log...@li... > https://lists.sourceforge.net/lists/listinfo/logitest-developer -- __________________________________________________________________________ Clancy Malcolm <cl...@cy...> Application Development Manager Cybersource: Level 9, 140 Queen Street, Melbourne http://www.cyber.com.au Phone: 03 9642 5997 Fax: 03 9642 5998 Mobile: 0414 297879 |
From: Anthony E. <me...@an...> - 2002-02-14 16:09:11
|
> -----Original Message----- > From: log...@li... > [mailto:log...@li...]On Behalf Of > Clancy Malcolm > Sent: Wednesday, February 13, 2002 9:12 PM > To: Anthony Eden; LogiTest Developer > Subject: Re: [Logitest-developer] Features added > > > On Thursday 14 February 2002 03:31, Anthony Eden wrote: > > Clancy, > > > > Here are some issues which I found with your additions: > > > > - The icons you added seem to be corrupt. > > I guess this is another instance of me assuming that the CVS server > recognises certain extensions as binary (gif, jar, etc). I'll > try re-adding > them as binary. I did a new checkout this morning and it seems fine now on my home computer. > > As a side note, I found that the current build.xml will copy the > images to > build/classes after it makes the jar, causing the images to be > missing from > the jar for the first build after a clean. I have patched the > build.xml and > will commit it soon. Actually, I already made a change to fix that. > > - NPE in the singleStep() method when no items selected. I > have commited > > code to fix this - the default behavior is to just select the first test > > (and thus test the first resource) when nothing is selected. > > Thanks. > > > - CalpaHTMLPane doesn't support SSL. Any thoughts on how to deal with > > this? This is the reason I switched back to JEditorPane. > > Hmmm. This is currently OK for URLs opened from other parts of > Logitest - > these URLs are opened by AbstractBrowser and the HTML is then given to > CalpaHTMLPane. The only part that would fail is if you were > submitting forms > or clicking links within the CalpaHTMLPane. > > For the web sites I am testing I found JEditorPane basically unusable for > clicking on links anyway - any links inside tables were > rendedered as links, > but didn't respond to clicks. > > Long term I think we need to find a better (preferrably with source > code) HTML renderer than both JEditorPane and CalpaHTMLPane which > both seem > to be limitted. Agree 100%. This is the main reason I stopped working on LogiTest - there are no open source Java web browser components worth a damn. > In the shorter term maybe we need to let the user switch > between the two so that they can choose to have either recording > functions or > HTTPS browsing functions. What are your thoughts? Seems like a pain. I would almost rather ignore SSL...My company site uses it though (and that was the main reason I wrote LogiTest.) I am OK using CalpaHTMLPane for the moment and just using SSL through explicit resource definitions. > > - You added DiffTestlet but not to the config. Is it because > you want to > > test it some more before adding it to the available testlet list in the > > config? > > It can be added to the config, but it is fairly rough at the > moment and only > has limitted usefulness. Part of what is lacking is a way to display the > differences between the reference and captured documents. The > only diff code > I can find out there is GPL which has the 'viral' effect when you > add it to > your own code. Right...that sucks. I definitely would like a good diff testlet though - I am not sure if you have ever used eTest, but that is there method for testing success or failure. It is good that LogiTest lets you define a testlet, but it would be nice to be use diff as a default testlet for pages. > > > - The DOM and HTML views don't seem to be in sync with the browser view. > > I noticed this but thought it had always been this way and > couldn't really > understand how I could have broken it. Anyway, I will have a look at it. Me too. I thought it worked before, but I will take a closer look. > > - The temp file addition to the SaveThread always fails on my > machine (and > > thus I cannot save). > > Can you give me a stacktrace? It seems to work fine for me. > Sure: java.io.IOException: Could not backup file to C:\DOCUME~1\ANTHON~1\LOCALS~1\Temp \logitest55082.xml at org.logitest.ui.SaveThread.run(SaveThread.java:91) Not very descriptive though. :-) A couple suggestions as well: - The hot key for the start and stop recording is the same...perhaps the stop recording button and menu item should be disabled until the record button is hit. - It would be nice to have something indicate that you are recording. Originally I had a little "RECORDING" flashing in the bottom of the window, next to the progress indicator, but you are welcome to do something else. - If I record and then type a link into the address field the page comes up but is not added to the test tree. - You may want to allow the delay between user clicks while recording to be stored and used as the pre-load delay. Users should be able to enable and disable this feature. The pre-load feature allows the playback to occur in a more realistic fashion (i.e. simulate user delay). All in all though I really like the recording. I am glad someone did it. :-) I am curious about your "added support for variables" comment in your CVS entry...what exactly is it? BTW - Thanks for your hard work and input on LogiTest. -Anthony |
From: Clancy M. <cl...@cy...> - 2002-02-14 22:30:02
|
On Friday 15 February 2002 03:09, Anthony Eden wrote: > > -----Original Message----- > > From: log...@li... > > [mailto:log...@li...]On Behalf Of > > Clancy Malcolm > > Sent: Wednesday, February 13, 2002 9:12 PM > > To: Anthony Eden; LogiTest Developer > > Subject: Re: [Logitest-developer] Features added > > [snip] > > Long term I think we need to find a better (preferrably with source > > code) HTML renderer than both JEditorPane and CalpaHTMLPane which > > both seem > > to be limitted. > > Agree 100%. This is the main reason I stopped working on LogiTest - there > are no open source Java web browser components worth a damn. > > > In the shorter term maybe we need to let the user switch > > between the two so that they can choose to have either recording > > functions or > > HTTPS browsing functions. What are your thoughts? > > Seems like a pain. I would almost rather ignore SSL...My company site uses > it though (and that was the main reason I wrote LogiTest.) I am OK using > CalpaHTMLPane for the moment and just using SSL through explicit resource > definitions. OK, I'm happy with that. > > > - You added DiffTestlet but not to the config. Is it because > > > > you want to > > > > > test it some more before adding it to the available testlet list in the > > > config? > > > > It can be added to the config, but it is fairly rough at the > > moment and only > > has limitted usefulness. Part of what is lacking is a way to display the > > differences between the reference and captured documents. The > > only diff code > > I can find out there is GPL which has the 'viral' effect when you > > add it to > > your own code. > > Right...that sucks. I definitely would like a good diff testlet though - I > am not sure if you have ever used eTest, but that is there method for > testing success or failure. It is good that LogiTest lets you define a > testlet, but it would be nice to be use diff as a default testlet for > pages. I'll see if I can find something to do the diffing. However, for the sites that I am testing there is lots of date dependent output (e.g. if you have logitest create a task that is due on 2002-02-16 today it will be a regular task, but tomorrow it will be a due task). I found that this made the diff testlet unreliable by design. I haven't used eTest, did they do a character by character diff or something with more tolerance? > [snip] > > > - The temp file addition to the SaveThread always fails on my > > > > machine (and > > > > > thus I cannot save). > > > > Can you give me a stacktrace? It seems to work fine for me. > > Sure: > > java.io.IOException: Could not backup file to > C:\DOCUME~1\ANTHON~1\LOCALS~1\Temp > \logitest55082.xml > at org.logitest.ui.SaveThread.run(SaveThread.java:91) > > Not very descriptive though. :-) > You're right - not very descriptive. I'll see what I can do. > > A couple suggestions as well: > > - The hot key for the start and stop recording is the same...perhaps the > stop recording button and menu item should be disabled until the record > button is hit. > - It would be nice to have something indicate that you are recording. > Originally I had a little "RECORDING" flashing in the bottom of the window, > next to the progress indicator, but you are welcome to do something else. > - If I record and then type a link into the address field the page comes > up but is not added to the test tree. > - You may want to allow the delay between user clicks while recording to > be stored and used as the pre-load delay. Users should be able to enable > and disable this feature. The pre-load feature allows the playback to > occur in a more realistic fashion (i.e. simulate user delay). Will do. > All in all though I really like the recording. I am glad someone did it. > > :-) I am curious about your "added support for variables" comment in your > > CVS entry...what exactly is it? At this stage variables are only supported in URLs. I needed them because the site that I am testing uses a system assigned session ID in the URL (rather than cookies). When I test my site the login page is loaded and this has a session ID as part of the login form's action URL. I use a "Regex Variable Reader" to read a value for the variable SESS from the page using a regular expression. In the test properties dialog I set the session substitution command to replace any session IDs in recorded URLs with $SESS$. Hence when the recorder adds resources they have $SESS$ instead of the session ID. When the browser opens these resources it substitutes $SESS$ with the value read by the variable reader on the login page. While variables are only substituted in URLs at this stage I imagine it could be useful to allow them to be substituted in request parameters (i.e. post data) as well. This means you could read a variable of one page and then submit it as part of the post request on another page. > BTW - Thanks for your hard work and input on LogiTest. > > -Anthony No problems - likewise for yours. Clancy. __________________________________________________________________________ Clancy Malcolm <cl...@cy...> Application Development Manager Cybersource: Level 9, 140 Queen Street, Melbourne http://www.cyber.com.au Phone: 03 9642 5997 Fax: 03 9642 5998 Mobile: 0414 297879 |
From: Anthony E. <me...@an...> - 2002-02-15 02:50:55
|
> > I haven't used eTest, did they do a character by character > diff or something > with more tolerance? I believe it was line by line. If I recall correctly they parse the HTML (similar to running it through HTML Tidy), convert it to all caps and then compare that with the last run. > > [snip] > > > > - The temp file addition to the SaveThread always fails on my > > > > > > machine (and > > > > > > > thus I cannot save). > > > > > > Can you give me a stacktrace? It seems to work fine for me. > > > > Sure: > > > > java.io.IOException: Could not backup file to > > C:\DOCUME~1\ANTHON~1\LOCALS~1\Temp > > \logitest55082.xml > > at org.logitest.ui.SaveThread.run(SaveThread.java:91) > > > > Not very descriptive though. :-) > > > > You're right - not very descriptive. I'll see what I can do. For the moment I took it out of my version of the code. I would like to be able to put it back in though. I await your changes. > > > > > A couple suggestions as well: > > > > - The hot key for the start and stop recording is the > same...perhaps > > the stop recording button and menu item should be disabled > until the > > record button is hit. > > - It would be nice to have something indicate that you are > recording. > > Originally I had a little "RECORDING" flashing in the bottom of the > > window, next to the progress indicator, but you are welcome to do > > something else. > > - If I record and then type a link into the address field > the page comes > > up but is not added to the test tree. > > - You may want to allow the delay between user clicks > while recording to > > be stored and used as the pre-load delay. Users should be > able to enable > > and disable this feature. The pre-load feature allows the > playback to > > occur in a more realistic fashion (i.e. simulate user delay). > > Will do. > > > All in all though I really like the recording. I am glad > someone did > > it. > > > > :-) I am curious about your "added support for variables" > comment in > > your > > > > CVS entry...what exactly is it? > > At this stage variables are only supported in URLs. I needed > them because > the site that I am testing uses a system assigned session ID > in the URL > (rather than cookies). When I test my site the login page is > loaded and this > has a session ID as part of the login form's action URL. I > use a "Regex > Variable Reader" to read a value for the variable SESS from > the page using a > regular expression. > > In the test properties dialog I set the session substitution > command to > replace any session IDs in recorded URLs with $SESS$. Hence when the > recorder adds resources they have $SESS$ instead of the > session ID. When the > browser opens these resources it substitutes $SESS$ with the > value read by > the variable reader on the login page. > > While variables are only substituted in URLs at this stage I > imagine it could > be useful to allow them to be substituted in request > parameters (i.e. post > data) as well. This means you could read a variable of one > page and then > submit it as part of the post request on another page. What are you using for variable insertion? Perhaps we can use Velocity for all variable substitution. -Anthony |
From: Clancy M. <cl...@cy...> - 2002-02-19 10:14:37
|
On Friday 15 February 2002 13:48, Anthony Eden wrote: > [...] > What are you using for variable insertion? Perhaps we can use Velocity > for all variable substitution. > > -Anthony I am currently using the Oro libraries with a custom implementation of the Substitution interface - checkout org.logitest.Variables. IMO this works well for now and saves adding unnecessary download bulk. What advantages do you see of using Velocity? Clancy -- __________________________________________________________________________ Clancy Malcolm <cl...@cy...> Application Development Manager Cybersource: Level 9, 140 Queen Street, Melbourne http://www.cyber.com.au Phone: 03 9642 5997 Fax: 03 9642 5998 Mobile: 0414 297879 |
From: Anthony E. <me...@an...> - 2002-02-19 15:39:16
|
I suppose there is not much advantage at this point. The nice thing about using Velocity is that if you ever needed support for more than just variables (i.e. loops and such) then Velocity supports it. In addition it would be one less thing that we need to maintain. :-) But if you are happy with your system for the moment then don't bother changing it. Sincerely, Anthony Eden > -----Original Message----- > From: log...@li... > [mailto:log...@li...]On Behalf Of > Clancy Malcolm > Sent: Tuesday, February 19, 2002 5:12 AM > To: log...@li... > Subject: Re: [Logitest-developer] Features added > > > On Friday 15 February 2002 13:48, Anthony Eden wrote: > > [...] > > What are you using for variable insertion? Perhaps we can use Velocity > > for all variable substitution. > > > > -Anthony > > I am currently using the Oro libraries with a custom > implementation of the > Substitution interface - checkout org.logitest.Variables. IMO this works > well for now and saves adding unnecessary download bulk. What > advantages do > you see of using Velocity? > > Clancy > -- > __________________________________________________________________________ > Clancy Malcolm <cl...@cy...> Application Development Manager > Cybersource: Level 9, 140 Queen Street, Melbourne http://www.cyber.com.au > Phone: 03 9642 5997 Fax: 03 9642 5998 Mobile: 0414 297879 > > _______________________________________________ > Logitest-developer mailing list > Log...@li... > https://lists.sourceforge.net/lists/listinfo/logitest-developer > |