Unit testing via a browser
Page: 1
ryan.doherty
on Feb 8. 2007. 8:39 pm
I see that activeCollab has unit tests, which is very good. I am curious if it has anything that would test DHTML and AJAX functionality. I ask this because I know activeCollab is heading in this direction and simple unit tests in the framework can't test that.
I'm using WATIR (http://wtr.rubyforge.org/) right now and it's pretty damn good. Basically you 'drive' IE with Ruby and it behaves as if a real person was filling out forms, clicking on links, verifying results and that elements exist in the DOM, just about anything a real user could do.
Thoughts?
I'm using WATIR (http://wtr.rubyforge.org/) right now and it's pretty damn good. Basically you 'drive' IE with Ruby and it behaves as if a real person was filling out forms, clicking on links, verifying results and that elements exist in the DOM, just about anything a real user could do.
Thoughts?
ryan.doherty
on Feb 8. 2007. 11:19 pm
Interesting, so is it actually running a web browser or just mimicking the GET and POST actions of a browser? From the documentation, I'm guessing it's creating a DOM tree in PHP and parsing that to get forms, images, links, etc.
That's cool you're developing on a Mac, but activeCollab should be tested in IE, FF and Opera on Windows anyway. You could use Parallels, I've seen it, works very well. Does cost money though, but it's one of those programs that I want to pay for because it's so good.
Firewatir looks like it's stable: http://code.google.com/p/firewatir/wiki/Firewatir . I haven't used it though.
This could become difficult if we will need to test on all 'modern' browsers. I see you are using the YUI library, which is good, provides an abstraction layer.
I'm all for FireWATIR or just WATIR testing, especially if activeCollab is going to have more JS/AJAX interactivity. There are other testing suites out there, Silk is the only one that comes to mind. I really like Watir though because I love Ruby.
That's cool you're developing on a Mac, but activeCollab should be tested in IE, FF and Opera on Windows anyway. You could use Parallels, I've seen it, works very well. Does cost money though, but it's one of those programs that I want to pay for because it's so good.
Firewatir looks like it's stable: http://code.google.com/p/firewatir/wiki/Firewatir . I haven't used it though.
This could become difficult if we will need to test on all 'modern' browsers. I see you are using the YUI library, which is good, provides an abstraction layer.
I'm all for FireWATIR or just WATIR testing, especially if activeCollab is going to have more JS/AJAX interactivity. There are other testing suites out there, Silk is the only one that comes to mind. I really like Watir though because I love Ruby.
ryan.doherty
on Feb 9. 2007. 6:13 pm
Yeah, FireWATIR tests are supposed to be compatible with WATIR tests. I haven't heard of anyone really complaining, so I think it works.
It would be cool to have the tests run on both browsers.
BTW, how do you test for IE? I poked around my install of activeCollab with IE and everything looks fine, no CSS problems.
It would be cool to have the tests run on both browsers.
BTW, how do you test for IE? I poked around my install of activeCollab with IE and everything looks fine, no CSS problems.
Topic is locked. If you have something important to say about issues discussed on this page please write at hi@a51dev.com.



