Hi, I hope the following answers help: On Oct 12, 6:36 pm, Oliver <[email protected]> wrote: > Hello, > > first of all: TestSwarm is a great idea and it's even better that we > can run own installations to test our own apps! Thanks to all people > who were contributing so far and their efforts! > > I've spent quite a lot of time in setting up an own swarm during the > past weekend and now I feel ready to ask a few questions concerning > testing with TestSwarm and the testing of a mootools based app. > > I've set up a testCase and a testSuite in jsunit. Both do run well in > the jsunit testRunner. But I didn't manage to run them in the swarm. > > first of all: "testCase" and "testSuite" - I am still a bit confused. > Adding jobs via the perl scripts is yet too early for me as I still > have to find a way of running the swarm at all. > When I add jobs via the addjobs gui, I wonder: > - do I add testCases that form a testSuite OR > - do I add testSuites that form a "big suite" ? OR > - is both possible? > I am afraid the addjobs gui isn't clear about it as you are supposed > to add suites that form a suite.
A job url is pointing to just any test page that forms a suite, you could optionally put a big suite there or break into series, all depend on you. > next question is about the use of JQuery: > - when testing a mootools based app, am I supposed to use the > mootools dollar safe mode? > I observed the use of JQuery in the JavaScript code related to the > swarm test runner and of course, the first thing going through my head > was: mootools and jquery aren't out-of-the-box compatible(dollar > operator problem). But the TestSwarm pages say that mootools testing > is possible. Or do I have to use JSSpec when testing a mootools app or > is jsunit also working? Please, a few directions concerning testing of > a mootools based app were very helpful to me. Swarm is test tool and application ignorance, in this case it knows neither which library you're using to build the application nor the underlay testing framework, the jQuery library you see there is only used in the swarm runner, while the actual testing are running inside a separated frame, be sure that nothing conflict there. > Another question about gui testing: When using TestSwarm with one of > the supported test frameworks, are there any restrictions for the > testing of the GUI? Is it possible with mootools/jsunit AND with > mootools/jsspec ? In case you're testing the GUI via unit test way ( on contrary to manual GUI testing ), things are mostly the same, except the only risk that the iframe environment may contribute to a wrong result ;) > > and, please, a few questions concerning inject.js > - where to add inject.js to my test page > - after or before the loading of my test framework? > - as the last javascript in the page? The inject.js file is the key for a successful live in the Swarm, while the standard way is to create your own version of this build script http://github.com/jeresig/testswarm/blob/master/scripts/testswarm-jquery.pl.txt But I can tell the simplest way ( and if you feel perl sucks ) is just to link the inject.js file directly in your test suite html: 1. when your suite is running in Swarm, the injection communicate with the runner; 2. When your suite is running standalone out of Swarm, the injection will check there's no Swarm env thus leave everything untouched. > All in all it looks like I am quite close. I can log in to my swarm > and start tests. But they do all time out. Be ware about time out, TestSwarm is designed to be hang-up proofing, so on the negative side you may experience test time rushing issue ( Swarm is dropping the client while test is still running ), this require you to tune the configurations in many places, e.g. heartbeat life-cycle etc. > Tanks in advance to anybody who can spend some clarification. > > yours, oliver --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TestSwarm" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/testswarm?hl=en -~----------~----~----~----~------~----~------~--~---
