hi all, I made the required changes in build.xml as the documentation of the project. but when i tried to execute ... I got an error complaining about a...
Hi, I had the same issue using test suites. I wanted to load pages into the suite that were relative to the suite, not to the testRunner. I also wanted to...
Hi! At the moment I'm running my JsUnit tests with the ant tasks "standalone_test" and "distributed_test". Everthing runs prefect! I read in the documentation...
Hi Chris, I do that very thing, using a suite. Simply extend TestCase and define a suite() method: public static Test suite() { TestSuite suite = new...
Hi Ross, at first thank you very much for your reply! When I run the test from JUnit I get an initializationError. JUnit doesn't use the properties in...
Chris, You are correct; JUnit doesn't use (nor know about) build.xml. Those properties in build.xml are actually just set as system properties by ant. What I...
Hi everyone, Thanks to a suggestion from Dean McNamee and Dan Pupius, we've improved the way JsUnit detects test functions in IE. Previously, JsUnit was forced...
Hello, I have code to download a file to a portable mp3 player and want to test it, but the download function returns right away, sending back information via...
... JsUnit is designed to not let you hold up the test runner (it's designed for fast, focused unit tests). But that doesn't mean it can't help you in this...
Chris, I have not seen the problem you describe. I use maven as a build system, which launches JUnit for me. I'm guessing it does some initialization. The...
I am running Eclipse on Vista, and have gotten the JsUnit test runner and plugin successfully working, save one exception. The plugin does not work with IE7....
I have a Firefox extension, originally based on a Greasemonkey script and now grown into a behemoth. I'm looking for UT tools. I've not done any Javascript...
I m using jsunit to test my application.. at present i m using testrunner.html to run the tests... PLease tell me any one how to automate jsunit. thanks in...
Sometimes I have noticed that JSUnit will show errors when running a test even if the errors have already been caught an dealt with within a try/catch block. ...
Edward -- Since Greasemonkey scripts are just plain old JavaScript, they're definitely testable using using JsUnit. I haven't played with Firefox extensions...
Ok, good. But I need a bit of help getting my head round it. Greasemonkey scripts work by slotting into Firefox and executing Javascript code once pages have...
I'd like to see the results of individual JsUnit tests in my CruiseControl Test Results. CruiseControl understands JUnit XML, and JsUnit's 2.1 Server Logging...
Hi, We found the same issue. Here is the XSLT we use to convert. It will also generate a "Browser Timed out" error in the case where the browser didn't return...
Hiii to all............. I have this assignment ..... a) Create a object oriented javascript datastructures library which consist of the following data...
Your test page's body could contain a simplified version of the page that your Greasemonkey script wants to modify. Include the Greasemonkey js script after...
Great Hi to everyone here: I just started using JSUnit to test Javascript(JS) yesterday, I am still not quite familiar with its features. The JS I am going to...
I think you just need to append your "mock_div" to the DOM so that your code can find it. For example, in the body of your Test Page, you could have: <div...
I would agree with Edward with regards to adding a div to the page in your case. However, for more general JS mocking, for example for non-DOM interaction...
... your code ... Yes, the way you mentioned above is possible. However, I am looking for another way like mocking. That means I don't even want to append and...
... Yes, redefining the function is definitely working. And I have tried mock4js as well. The fact is that the project which I am testing contains a number of...