Beta Edition: Testing the server

From CFTP

Jump to: navigation, search

Getting ready

The pack tests FTP server commands and features. It works with the Beta Edition using its in-memory file system. Go to http://cftp.coldcore.com/downloads-tl.html page and download the testpack source. Set the correct path in the build.properties to your Beta Edition home folder.


Running the tests

Run the tests with Apache's ANT. There are 2 options to run the build.xml script: test and test-c. The first option runs the usual set of tests, the second option runs concurrent tests. During concurrent testing a server serves 20 simultaneous clients doing random operations, each concurrent test takes approximately 3-4 minutes.


Adding your tests

To write your tests you are free to extend any base class in the test pack. Take a look at how the existing tests are implemented. There are comments all over the code, it just could not be any simpler. Note that the Beta Edition is using COTTA, so minimum knowledge of the project is required.



FTP Server: Beta Edition

Personal tools