testing JSP with catcus

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • oll3i
    Contributor
    • Mar 2007
    • 679

    testing JSP with catcus

    I try to do some jsp testing with cactus but i couldn't make it work
    Where should the cactus jars go .I use tomcat 5.5.
    I read the tutorial, i put jars where it told me to but later i read a different tutorial that said something else.
    I want to test jsp sites.
    Maybe there is some plugin for eclipse?

    Thank YOU
  • oll3i
    Contributor
    • Mar 2007
    • 679

    #2
    i followed the tutorial http://jakarta.apache. org/cactus/integration/howto_tomcat.ht ml
    but when i try to compile a sample application to test (from cactus site)
    i get



    C:\PROGRA~1\TOM CAT~1.5\WEBAPPS \TEST\WEB-INF\CLASSES>jav ac TestSampleServl et.java
    TestSampleServl et.java:1: package junit.framework does not exist
    import junit.framework .Test;
    ^
    TestSampleServl et.java:2: package junit.framework does not exist
    import junit.framework .TestSuite;
    ^
    TestSampleServl et.java:4: package org.apache.cact us does not exist
    import org.apache.cact us.ServletTestC ase;
    ^
    TestSampleServl et.java:5: package org.apache.cact us does not exist
    import org.apache.cact us.WebRequest;
    ^
    TestSampleServl et.java:7: cannot find symbol
    symbol: class ServletTestCase
    public class TestSampleServl et extends ServletTestCase
    ^
    TestSampleServl et.java:14: cannot find symbol
    symbol : class Test
    location: class TestSampleServl et
    public static Test suite()
    ^
    TestSampleServl et.java:19: cannot find symbol
    symbol : class WebRequest
    location: class TestSampleServl et
    public void beginSaveToSess ionOK(WebReques t webRequest)
    ^
    TestSampleServl et.java:16: cannot find symbol
    symbol : class TestSuite
    location: class TestSampleServl et
    return new TestSuite(TestS ampleServlet.cl ass);
    ^
    TestSampleServl et.java:27: cannot find symbol
    symbol : variable request
    location: class TestSampleServl et
    servlet.saveToS ession(request) ;
    ^
    TestSampleServl et.java:28: cannot find symbol
    symbol : variable session
    location: class TestSampleServl et
    assertEquals("i t works!", session.getAttr ibute("testAttr ibute"));
    ^
    10 errors

    C:\PROGRA~1\TOM CAT~1.5\WEBAPPS \TEST\WEB-INF\CLASSES>

    Comment

    • oll3i
      Contributor
      • Mar 2007
      • 679

      #3
      hmm i managed to do the sample testing(from cactus) i added jars to eclipse project and started tomcat (have Sysdeo) and it works but now if i wanted to test a jsp page what do i have to write to test it?

      Comment

      Working...