Sorry Erez, but I'm a bit rushed by the time and you keep changing the subject/questions in your emails (at least that's my perception) and I don't understand what your problem is. I don't know what your question is at this point? I've also suggested several solutions (including using <junit> directly as you seem to have done - this is at least the script you were showing before).
I'll let others chime in for now. Thanks -Vincent > -----Original Message----- > From: Erez Nahir [mailto:[EMAIL PROTECTED] > Sent: 15 January 2004 17:06 > To: 'Cactus Users List' > Subject: RE: Using cactus with junit tests and ant on existing and running > container. > > > Oh ok. I thought you wanted to automate the whole process. > > Any reason you don't want? The not-so-nice-thing with your > > setup/approach is that you're going to be "polluting" your > > runtime application with Cactus-specific stuff (jars in lib/, > > extra config in web.xml, etc). > > I do want very much but it's a very complicated project developed over 6 > remote sites and its 3rd release so we cant get it all in one, for now I > can > only try to automate the test itself :-(. > > > > > Simply use the <junit> task as you've done. > But than it doesn't started in the Tomcat VM but in my VM isn't it? > > > > Now, if you would like us to help you, youneed to show us > > what your problem is. You just mention in your email that you > > get a NCDFE. Can you show the stack trace? > > Sure, but that's not the real problem, this one I solve by adding the > required jars to my project's build classpath, so I did and it solved the > problem. > I have another tool someone in my team wrote, that is calling the > CactusServletTestRunner with every testcase, but this in not acceptable > cause each one need to go over all the links (we have more than 50). > > What I want is to be able to call all my test cases from ant file (or even > with a single URL) and Cactus to invoke all the tests on tomcat's VM. > > The NCDFE is really not relevant here IMHO. > > The process as it is done today is as follows: > 1. Build generate the project image; > 2. Build generate project-test image; > 3. Developers install the project. > 4. Developers install the project-test (now all the Cactus specific stuff > is > added but we can live with it because we run also external tests on > project > image without project-test install); > 5. Developers open a browser and use index.html with the links. > 6. Upon clicking on specific link, the relevant test case is started and > generate the known junit report (but only for this test). > > Now, what I'm looking for is to improve steps number 5 and 6 (in addition > I > can add stuff to step 4), such that I'll be able to run either a single > url > call that will generate the xmls (and than I'll generate the report with > <junitreport> ant's task), or do ant call with cactus to run all the test > cases as if they are on the real VM. > > Any suggestions how to do it? > Thanks, > Erez. > > > > Thanks > > -Vincent > > > > > Thanks, > > > Erez. > > > > > > > -----Original Message----- > > > > From: Vincent Massol [mailto:[EMAIL PROTECTED] > > > > Sent: Thursday, January 15, 2004 4:59 PM > > > > To: 'Cactus Users List' > > > > Subject: RE: Using cactus with junit tests and ant on > > existing and > > > > running container. > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: Erez Nahir [mailto:[EMAIL PROTECTED] > > > > > Sent: 15 January 2004 14:54 > > > > > To: 'Cactus Users List' > > > > > Subject: RE: Using cactus with junit tests and ant on > > existing and > > > > running > > > > > container. > > > > > > > > > > Well, have gone again over the link and emails, added some > > > > jars to the > > > > > build.xml. > > > > > > > > > > Now I can run the tests but I'm still thinking it's not in > > > > tomcat's VM > > > > but > > > > > on my VM (the one ant forks via the junit). > > > > > > > > > > In addition, some other details: > > > > > 1. Not all the jars used by my application are under > > the project's > > > > > context, some under tomcat's lib (so I added them to > > the build.xml > > > > > file). > > > > > 2. Tomcat is running as NT Service. > > > > > > > > > > If you can give me a hint it will be great, cause I don't > > > > see were is > > > > my > > > > > mistake. > > > > > > > > Are you using the <cactus> task as mentioned in my email? > > > > It's described at the link I gave you. > > > > > > > > [snip] > > > > > > > > Thanks > > > > -Vincent > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]