Articles Section Index | Page 4
Java contains a lot of useful utility packages. One is java.util with its lists, maps, and calendar stuff--a lot to look into and use in your applications. Another package, java.io, contains what y...more
For testing our programs we need a simple directory structure, with a few files and a few directories. Something along the lines of this:
Outputting results to System.out is not actually cutting edge technology, so let's consider showing the directory structure in some other formats. In the first one we'll present the output as an HT...more
The class for the directory is also rather simple, but this class also has to keep track of the files and directories it contains. Let's use two Vectors for this purpose. Since the code is so simpl...more
If you show this jsp-file in an XML-aware browser like Microsoft Internet Explorer 5.5 you'll get this picture:
The order of the elements doesn’t really matter, but it’s easy to rearrange them. Simply drag the elements to the proper position and answer
The next application to test is from the article "Using Apache Axis version 1 to build Web Services". It’s currently not possible to record a web service (SOAP) application automatically so w...more
One of the really useful features in JMeter is its ability to record what you do in your browser. If you want to make a test plan for a use case, where a user working with her browser goes through ...more
The final application that we’ll test is a mixture of the two others, it’s a browser application using Struts to invoke the DVD web service system we have just tested. The response time...more
JMeter is an excellent tool for performing load testing, mainly because it’s so easy to use. You must however be prepared for minor bugs, and also allot enough use time for setting up a prope...more
Now we’re ready to go. First we’ll record a scenario from the article "Coding your second Jakarta Struts Application". If you’re interested in using this application yourself you&...more
Testing programs can be very boring. Especially testing other people's programs. And especially if you're a programmer. But programmers love to write programs, so why not let the programmers write ...more
During the development of a web-project you'll build more and more test cases, which all may be run individually, but often you'll want to run more or all of them in one go.
JUnit is a Java open source project which offers an extremely useful framework for unit testing.
For the Round class we'll need a method--newScore--to enter the strokes for the hole we've just played. To get the current score we define a method called currentScore.