Nocaute quick start
 

How to deploy Nocaute along with your application

1) The following libraries must be on the server’s lib directory (for your convenience, all those can be found on Nocaute's lib directory)
struts.jar
smarttag_1.0.jar
dom4j-1.5-rc1.jar
displaytag-1.0-b3.jar
commons-lang-2.0.jar
commons-j2ee_1.0.jar
commons-fileupload.jar

2) Open ${Nocaute-Home}/webApp. There are two folders: "nocaute" and "WEB-INF". Copy the "nocaute" directory to your web application's roor directory.

3) Copy the files ${Nocaute-Home}/webApp/WEB-INF/*.tld and struts-config-nocaute.xml to yor web application's WEB-INF directory

4) Make the changes specified in ${Nocaute-Home}/webApp/WEB-INF/web.xml to your web application's web.xml

The directory ${Nocaute-Home}/Samples/websample contains a sample web application that has completed the three last steps. There's also its ready-to-run sample web application: ${Nocaute-Home}/Samples/websample.war

Done. Now, how do I run it?

For example (using the websample application).
1) Open http://server:port/websample/nocaute/sendXML.jsp
2) upload the test-script file
3) Click on "Run Test"

But I don't know how to make a test-script file!

See these examples:
${Nocaute-Home}/sample-nocaute.xml
${Nocaute-Home}/Samples/sample-nocaute-calculator.xml
${Nocaute-Home}/Samples/sample-nocaute-simple.xml

Pay special attention to the comments on the first one.

That's nice, but what if I just want to unit-test my classes, with no server at all?

Make sure you have the SWT dll's on your windows/system32 folder - or your OS equivalent (the windows dll's comes with Nocaute)
Then run NocauteGUI:
${Nocaute-Home}/Samples/nocautegui.bat


Home Screen shots   Quickstart Help Wanted
2004 Lampada's home page