Project

General

Profile

Bug #466

Create a JUnit class for Metacat action

Added by Jing Tao over 17 years ago. Updated over 17 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
metacat
Target version:
Start date:
04/09/2002
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
466

Description

We need a JUnit class for testing the action of metacat. These actions insert,
update, delete, with valid, invalid, wf, and non-wf docs, login, and logout ...

When it is done, we will be very convenience to test our Metacat.

History

#1 Updated by Jing Tao over 17 years ago

Test cases for successful and failed login as NCEAS, PISCO and LTER ladp users
were created.

Test cases for inserting valid, invalid, wf and non-wf xml dcouments were
created.

Test cases for update, delete, read (for xml, html and zip qformat) and logout
action were created too.

These test case were created in
edu.ucsb.nceas.metacatjunittests.MetaCatServletTest class and run it by type
"ant test"

In order to testing insert data file. We need httpclient.jar and itislib.jar
file. We create another package for testing insert data file (including the
above test cases too). It is edu.ucsb.nceas.metacatunitnettests and in the
build.xml file two another targets were created. One is "gethttpclient". This
target will download morpho from cvs and run ant to get httpclient.jar. After
running gethttpclient, then we can run another target "nettest". In this test,
insert data file will be executed.

This is basic test. And we will put more there.

#2 Updated by Redmine Admin over 6 years ago

Original Bugzilla ID was 466

Also available in: Atom PDF