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...
... Hi Patrick, Thanks for the start. JsUnit's XML has changed again since your XSLT. Among other things, it uses "testCaseResult" rather than "testCase". ...
Hello, Some folks on the Maven users' list have been discussing creating a plugin that has everything needed for agile development in JS. One of the things ...
Here is what I'd like to do: I am running JSUnit 2.1. Still running (JDK 1.4.2 - don't laugh;) I'd like to be able to have a remote Windows box running JSUnit...
Hi, This is a very typical and well-supported use of JsUnit. Apologies for the lack of documentation - we're currently working on revamping the website, which...
Thanks for the info. What do I need to enable on the machine running the tests so that the remote server can communicate with it? Do I have to also start a...
Here is what I have found with both JSUnit 2.1 & 2.2 in relation to my use case. 1. With 2.1 it does not spawn a server instance on the machine running the...
What I am trying to say is how does the remote JSUnit server request the tests from the build server? ... the remote server can communicate with it? Do I have...
Sorry you're having trouble getting started. Here are the basics: A. Start a JsUnitServer on each of the machines on which you want the tests to run....
I actually did the steps (A, B & C) you outlined before I wrote the last post comparing the differences I found between 2.2 & 2.1 JSUnit versions. 1. I...
I wouldn't bother with 2.1 (it's very old) - stick with 2.2. OK, you're farther along than I thought. It does sound like the problem is that you haven't...
Doesn't JSUnit 2.2 automatically use the directory relative to where the tests are run from. For example in my testing I am running everything from where I...
I also could see (since my timeout was 120secs) that manually requesting the test page I set in the testPage query string param would actually return...