Hey list, I''m currently playing with the selenium acceptance test-thingies, and I want to build something that saves a screenshot when a test fails. However, I have no clue whatsoever where to implement this. I''m thinking it should be along the line of: - apply a general after_each, in which we - check whether we were using selenium (no idea how yet), and - if an error occured, take a screenshot, and save it somewhere Any ideas? thanks a bunch, bartz
Doesn''t Selenium already do that? Mine takes screenshots on failure. On Tue, Apr 8, 2008 at 6:25 AM, Bart Zonneveld <loop at superinfinite.com> wrote:> Hey list, > > I''m currently playing with the selenium acceptance test-thingies, and > I want to build something that saves a screenshot when a test fails. > However, I have no clue whatsoever where to implement this. I''m > thinking it should be along the line of: > - apply a general after_each, in which we > - check whether we were using selenium (no idea how yet), and > - if an error occured, take a screenshot, and save it somewhere > > Any ideas? > thanks a bunch, > bartz > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20080408/c7853e23/attachment.html
On Tue, Apr 8, 2008 at 6:29 AM, Andrew WC Brown <omen.king at gmail.com> wrote:> On Tue, Apr 8, 2008 at 6:25 AM, Bart Zonneveld <loop at superinfinite.com> > wrote: > > > Hey list, > > > > I''m currently playing with the selenium acceptance test-thingies, and > > I want to build something that saves a screenshot when a test fails. > > However, I have no clue whatsoever where to implement this. I''m > > thinking it should be along the line of: > > - apply a general after_each, in which we > > - check whether we were using selenium (no idea how yet), and > > - if an error occured, take a screenshot, and save it somewhere > > > > Any ideas? > > thanks a bunch, > > bartz> Doesn''t Selenium already do that? > Mine takes screenshots on failure.Selenium does support this but I don''t think it''s automatic. spec_ui (part of rspec-exts at rubyforge) automates this, but it''s quite dated and doesn''t work w/ the current rspec. I know Aslak has something working with WATIR and the current RSpec, but has yet to open source it. All this to say that we will be supporting this, likely in an updated spec_ui. Just a matter of when. Cheers, David
If you''re using mac os x, you could give http://mosquito.the.tool.googlepages.com a try. On Tue, Apr 8, 2008 at 9:27 PM, David Chelimsky <dchelimsky at gmail.com> wrote:> On Tue, Apr 8, 2008 at 6:29 AM, Andrew WC Brown <omen.king at gmail.com> > wrote: > > > On Tue, Apr 8, 2008 at 6:25 AM, Bart Zonneveld <loop at superinfinite.com> > > wrote: > > > > > Hey list, > > > > > > I''m currently playing with the selenium acceptance test-thingies, and > > > I want to build something that saves a screenshot when a test fails. > > > However, I have no clue whatsoever where to implement this. I''m > > > thinking it should be along the line of: > > > - apply a general after_each, in which we > > > - check whether we were using selenium (no idea how yet), and > > > - if an error occured, take a screenshot, and save it somewhere > > > > > > Any ideas? > > > thanks a bunch, > > > bartz > > > Doesn''t Selenium already do that? > > Mine takes screenshots on failure. > > Selenium does support this but I don''t think it''s automatic. spec_ui > (part of rspec-exts at rubyforge) automates this, but it''s quite dated > and doesn''t work w/ the current rspec. I know Aslak has something > working with WATIR and the current RSpec, but has yet to open source > it. > > All this to say that we will be supporting this, likely in an updated > spec_ui. Just a matter of when. > > Cheers, > David > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20080408/b0b4c15d/attachment.html
I used Selenium with Rpsec less than a month ago.Could you not just roll back a few version? On Tue, Apr 8, 2008 at 7:49 AM, Mark Ryall <mark.ryall at gmail.com> wrote:> If you''re using mac os x, you could give > http://mosquito.the.tool.googlepages.com a try. > > On Tue, Apr 8, 2008 at 9:27 PM, David Chelimsky <dchelimsky at gmail.com> > wrote: > > > On Tue, Apr 8, 2008 at 6:29 AM, Andrew WC Brown <omen.king at gmail.com> > > wrote: > > > > > On Tue, Apr 8, 2008 at 6:25 AM, Bart Zonneveld <loop at superinfinite.com > > > > > > wrote: > > > > > > > Hey list, > > > > > > > > I''m currently playing with the selenium acceptance test-thingies, > > and > > > > I want to build something that saves a screenshot when a test fails. > > > > However, I have no clue whatsoever where to implement this. I''m > > > > thinking it should be along the line of: > > > > - apply a general after_each, in which we > > > > - check whether we were using selenium (no idea how yet), and > > > > - if an error occured, take a screenshot, and save it somewhere > > > > > > > > Any ideas? > > > > thanks a bunch, > > > > bartz > > > > > Doesn''t Selenium already do that? > > > Mine takes screenshots on failure. > > > > Selenium does support this but I don''t think it''s automatic. spec_ui > > (part of rspec-exts at rubyforge) automates this, but it''s quite dated > > and doesn''t work w/ the current rspec. I know Aslak has something > > working with WATIR and the current RSpec, but has yet to open source > > it. > > > > All this to say that we will be supporting this, likely in an updated > > spec_ui. Just a matter of when. > > > > Cheers, > > David > > _______________________________________________ > > rspec-users mailing list > > rspec-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rspec-users > > > > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20080408/6c627d98/attachment.html
On 8-apr-2008, at 14:03, Andrew WC Brown wrote:> I used Selenium with Rpsec less than a month ago. > Could you not just roll back a few version?Nah, I''d rather ditch selenium altogether. It doesn''t play that very nice with Safari, and Firefox needs too much time to start up. I guess I''ll stick to webrat and a irl QA dude (me, mostly) for the time being. thanks though, bartz> > On Tue, Apr 8, 2008 at 7:49 AM, Mark Ryall <mark.ryall at gmail.com> > wrote: > If you''re using mac os x, you could give http:// > mosquito.the.tool.googlepages.com a try. > > On Tue, Apr 8, 2008 at 9:27 PM, David Chelimsky > <dchelimsky at gmail.com> wrote: > On Tue, Apr 8, 2008 at 6:29 AM, Andrew WC Brown > <omen.king at gmail.com> wrote: > > > On Tue, Apr 8, 2008 at 6:25 AM, Bart Zonneveld > <loop at superinfinite.com> > > wrote: > > > > > Hey list, > > > > > > I''m currently playing with the selenium acceptance test- > thingies, and > > > I want to build something that saves a screenshot when a test > fails. > > > However, I have no clue whatsoever where to implement this. I''m > > > thinking it should be along the line of: > > > - apply a general after_each, in which we > > > - check whether we were using selenium (no idea how yet), and > > > - if an error occured, take a screenshot, and save it somewhere > > > > > > Any ideas? > > > thanks a bunch, > > > bartz > > > Doesn''t Selenium already do that? > > Mine takes screenshots on failure. > > Selenium does support this but I don''t think it''s automatic. spec_ui > (part of rspec-exts at rubyforge) automates this, but it''s quite dated > and doesn''t work w/ the current rspec. I know Aslak has something > working with WATIR and the current RSpec, but has yet to open source > it. > > All this to say that we will be supporting this, likely in an updated > spec_ui. Just a matter of when. > > Cheers, > David > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users > > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users