Ji Jenny, Your code test looks perfect... so am not sure why it should not work, unless ofcourse the cookie you are seraching does not exist in the resp obj, I...
Thanks so much! It worked perfectly! The documentation and examples are not easy to follow on their web site. Do you recommend anywhere else I can get more...
I am attempting to construct a test suite that has a common component referenced and used from within tests in the suite, which is set-up once. The 'common'...
Could I ask one more question? If I use jwebunit test instead of HttpUnit, I guess I need to call the assertCookiePresent("GUID") function in WebTestCase...
merhaba, Junit yahoo groups ta isminizi gordum; ben junit ile JSP ve servletler icin unit testleri yazmak istiyorum.. Ancak bunlarla ilgili cok az ornek...
OK, so I played around a bit and was able to get VirtualMock and jMock working with my tests. I used the AspectWerkz offline mode for testing; looking through...
hi friends, Here is a sample code Using JSP <%@ page import='java.sql.*, javax.sql.*, javax.naming.*' %><%Context ic = new InitialContext();DataSource ds =...
... Yes, get that code out of the jsp and into a class that you can test. Use your jsp's for presentation only. ... Robert S. Koss, Ph.D. Senior Consultant ...
Bob Koss
koss@...
Dec 2, 2004 1:20 am
12410
... I would make it a public, class-level field of the one-time setup class. ... If the method is going to be class-level, then the field it writes to also has...
... First, I can't read the code because it's not formatted very well. But beyond that, what do you want to test? What are you afraid might fail? Ignore how to...
Hi , Is it possible to use junit to test jsp pages.I am using struts framework and j2ee as middle tier .I guess junit cannot be used independently (without ...
... Why is your Action class loading a Form bean for a JSP? Doesn't Struts do that for you automatically? Struts provides the Form object as a parameter to the...
Hi all, We are using HttpUnit (through jWebUnit) to smoke-test our Web based application. Currently we are having a problem with a page assigning a location to...
Yagiz Erkan
yagizerkan@...
Dec 2, 2004 8:04 pm
12415
... Make a test case that I can run which reproduces the problem and file a bug report <http://sourceforge.net/tracker/?group_id=6550&atid=106550>...
c = new Connection("remoteIP"); ... Thanks Joe. After rereading my question and your answer, I did arrive at a working solution of placing the reused class...
Hello, I would like to know if there is a mechanism to segregate test case results based on some version. e.g I have test functions which were added in...
Hi All, I am currently in the process of choosing a testing framework for testing our web application. I am inclined to use either HtmlUnit or jWebUnit, but ...
Hi, I think maybe you wrote some validation code for the input parameters in the ActionForm, and you want to test these validation method? If it is true, I...
Hi Srinivas, I am not similiar with HtmlUnit and jWebUnit, but I think HttpUnit is a good choice to test your java writen web application. Leon srinivas...
Leon, Srini, jWebUnit is a wrapper around httpunit, which makes it more junit like to write testscripts for your webapplications. I'd say give both HTMLUnit ...
... I'm glad you found a solution, but just as a note, the tests run in single-threaded mode, so it might just be that they're running quickly. This can be a...
... I have mostly used HtmlUnit, and I rather like it. It is easy to use HtmlUnit to test web pages, even without serving them from a web server, which I...
... I don't understand "different versions of test suites". If you mean different versions of the same class, then you can't run those tests simultaneously,...
X P D A Y T O R O N T O 2005 http://www.xpday.info February 19, 2005 Are you looking for an opportunity to learn about Extreme Programming, but unsure about...
Hello, folks: I have a question for anyone who does or has done plug-in development for Eclipse. I have noticed that when I run my plug-in tests in Run mode, I...
J. B. Rainsberger Sun, 05 Dec 2004 12:41:19 -0500 ... We run tests in both modes. Some things to look @ 0 What error messages are you getting? (Running with ...
... If you really need a separation, you can always put new functions into separate suites. I have never seen the need. Why do you want to separate them?...
We're using jWebUnit to create automated smoke tests. The tests run various scenarios verifying that the pages display without any server errors, with the...
Yagiz Erkan
yagizerkan@...
Dec 6, 2004 9:29 am
12431
I want to know how JUnit framework will handle exceptions when a test case is a Thread, and running a bunch of test cases, one test case throws exception or...