Re: testing Javascript applications ?
--- Mark Stosberg <[EMAIL PROTECTED]> wrote: > > http://openjsan.org/doc/t/th/theory/Test/Simple/0.21/index.html > > > > I've been using it and once you get it set up, it's fairly straight > > forward. You can see a sample in my journal: > > http://use.perl.org/~Ovid/journal/27229 > > Interesting. > > And is there a way to run these as part of "./Build test" for a > project, > that may also run Perl tests as well? Short of compiling Spidermonkey, not that I know of. However, there might be a different approach available: http://use.perl.org/~Ovid/journal/26650 Cheers, Ovid -- If this message is a response to a question on a mailing list, please send follow up questions to the list. Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/
Re: automated web testing with selenium
On Mon, Nov 28, 2005 at 10:34:42PM +, Mark Stosberg wrote: > On 2005-11-02, Luke Closs <[EMAIL PROTECTED]> wrote: > > > > Also, yesterday Test::WWW::Selenium was uploaded to CPAN, so Selenium > > can now be driven by perl! > > Test::WWW::Selenium seems interesting, but I could use an example it > would be useful to use, versus the standard techniques. > > From the docs, it's not clear if there are restrictions about where > the related Perl testing code must reside. Does it need to be on the > same server as Selenium and the application? I believe it either needs to be on the same server, or else the perl code should be on a server that provides a reverse proxy to the application under test. I've not actually used the driven mode of selenium - I just use the table driven approach. We have lots of selenium test scripts to test our applications, but we only use the table mode. It's much easier to get started than using selenium in driven mode. > > Anyways, check out the podcast at http://qapodcast.com > > I'm downloading it now, but I think I better wait until the house clears > out before I pipe it through the speaker system and expose my geek side. Sounds good. Note that I don't talk very much about selenium in driven mode in the podcast or the screencast. Luke -- Luke Closs PureMessage Developer There is always time to juggle in the Sophos Zone.
Re: automated web testing with selenium
On 2005-11-02, Luke Closs <[EMAIL PROTECTED]> wrote: > > Also, yesterday Test::WWW::Selenium was uploaded to CPAN, so Selenium > can now be driven by perl! Test::WWW::Selenium seems interesting, but I could use an example it would be useful to use, versus the standard techniques. From the docs, it's not clear if there are restrictions about where the related Perl testing code must reside. Does it need to be on the same server as Selenium and the application? > Anyways, check out the podcast at http://qapodcast.com I'm downloading it now, but I think I better wait until the house clears out before I pipe it through the speaker system and expose my geek side. Mark
Re: testing Javascript applications ?
On 2005-11-28, Ovid <[EMAIL PROTECTED]> wrote: > --- Mark Stosberg <[EMAIL PROTECTED]> wrote: > >> What are other folks doing to test web applications that make heavy >> use >> of JavaScript? > > If you want to leverage your Perl testing knowledge, you can check out > Test.Simple from JSAN: > > http://openjsan.org/doc/t/th/theory/Test/Simple/0.21/index.html > > I've been using it and once you get it set up, it's fairly straight > forward. You can see a sample in my journal: > http://use.perl.org/~Ovid/journal/27229 Interesting. And is there a way to run these as part of "./Build test" for a project, that may also run Perl tests as well? Mark
Re: testing Javascript applications ?
--- Mark Stosberg <[EMAIL PROTECTED]> wrote: > What are other folks doing to test web applications that make heavy > use > of JavaScript? If you want to leverage your Perl testing knowledge, you can check out Test.Simple from JSAN: http://openjsan.org/doc/t/th/theory/Test/Simple/0.21/index.html I've been using it and once you get it set up, it's fairly straight forward. You can see a sample in my journal: http://use.perl.org/~Ovid/journal/27229 Cheers, Ovid -- If this message is a response to a question on a mailing list, please send follow up questions to the list. Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/
Re: testing Javascript applications ?
On Mon, Nov 28, 2005 at 08:25:48PM +, Mark Stosberg wrote: > It used to be that WWW::Mechanize was a "good enough" testing tool for > my web applications. > > It doesn't do Javascript, but I used very minimal > Javascript and thus worked around that limitation. > > Along comes AJAX. It offers benefits that make JavaScript seem worth > using. > > But now how I can test the application? I have a link that uses AJAX to > pull in some content that gets displayed in a new layer, including a > form I'd like to submit. > > Mozilla::Mechanize seems like a potential answer here, but so far I > haven't run across people who are actually using it to test sites with > Javascript. (It has enough dependencies that I'm putting off installing > it myself just yet. :) > > What are other folks doing to test web applications that make heavy use > of JavaScript? > > Mark Oh, my juggling friend, you've asked this question at the exact right time. Over here at Sophos, we've recently started using Selenium, a browser based web testing tool. It's all written in Javascript, so it runs entirely in the browser, which means that all of the javascript in your application is run just like what the user sees. And (you're super lucky), I've JUST created a screencast that shows just how easy it is to get started with selenium: http://www.yi.org/~luke/selenium-intro.mov I was interviewed by qapodcast.com about Selenium recently: http://tinyurl.com/9k242 Our web manager uses lots of ajax and javascript, and we're able to use selenium to test on all our supported browsers (IE, FF, Safari). The selenium website is here: http://selenium.thoughtworks.com HTH, Luke -- Luke Closs PureMessage Developer There is always time to juggle in the Sophos Zone.
Re: testing Javascript applications ?
On Mon, Nov 28, 2005 at 20:25:48 +, Mark Stosberg wrote: > But now how I can test the application? I have a link that uses AJAX to > pull in some content that gets displayed in a new layer, including a > form I'd like to submit. http://www.qapodcast.com/news/2005/11/02/qa-podcast-7-talking-selenium-with-luke-closs That and unit tests for your ajax handlers should do it. -- () Yuval Kogman <[EMAIL PROTECTED]> 0xEBD27418 perl hacker & /\ kung foo master: /me kicks %s on the nose: neeyah! pgprvZR0Fd8IK.pgp Description: PGP signature
testing Javascript applications ?
It used to be that WWW::Mechanize was a "good enough" testing tool for my web applications. It doesn't do Javascript, but I used very minimal Javascript and thus worked around that limitation. Along comes AJAX. It offers benefits that make JavaScript seem worth using. But now how I can test the application? I have a link that uses AJAX to pull in some content that gets displayed in a new layer, including a form I'd like to submit. Mozilla::Mechanize seems like a potential answer here, but so far I haven't run across people who are actually using it to test sites with Javascript. (It has enough dependencies that I'm putting off installing it myself just yet. :) What are other folks doing to test web applications that make heavy use of JavaScript? Mark