AJAX for simpletest?
Moderator: General Moderators
AJAX for simpletest?
Now I know absolutely nothing about AJAX, but it seems there might be some benefit in making a TestRunner, or test front end using it. For instance with the test GUI (in one of te lost threads) it would allow for updating percent complete. It could also be useful for running the test cases in seperate script environments and avoiding timeout issues?
Just a random thought....
Just a random thought....
I think there might have been some discussion related to this on the SimpleTest mailing list. Personally I'm a luddite when it comes to js. Some people (myself included) have it turned off by default making it rather useless. I haven't a clue how you would test a page which uses js.
Firefox has a nice feature (maybe it's an add-on, forget now) where js is blocked by default but can be allowed per session and/or per site.
Firefox has a nice feature (maybe it's an add-on, forget now) where js is blocked by default but can be allowed per session and/or per site.
-
stryderjzw
- Forum Newbie
- Posts: 21
- Joined: Sat Aug 06, 2005 5:45 pm
There is: http://www.edwardh.com/jsunit/.. Meaby it will get to work together with simpletest one day..
http://www.sitepoint.com/forums/showpos ... stcount=42
http://www.sitepoint.com/forums/showpos ... stcount=42
-
stryderjzw
- Forum Newbie
- Posts: 21
- Joined: Sat Aug 06, 2005 5:45 pm
I don't think it will allow one to avoid time-out issues, as the tests still need to be run by php, so i'm not seeing advantages right now.
I think it's going to be easier if one uses the xmlreporter instead of htmlreporter. It should make the request/recieve/display with javascript (and xmlhttp) a little more straightforward.
I think it's going to be easier if one uses the xmlreporter instead of htmlreporter. It should make the request/recieve/display with javascript (and xmlhttp) a little more straightforward.
Well currently none of my tests are too long, but the combination of all of them will hit the timeout. Was thinking that an AJAX version could somehow aggregate the results and show a nice tracking green bar as progress is made, while handing new page requests behind the scenes to keep the timeouts reasonable.