Project

General

Profile

Actions

Bug #466

closed

Create a JUnit class for Metacat action

Added by Jing Tao over 22 years ago. Updated over 22 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.

Actions #1

Updated by Jing Tao over 22 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.

Actions #2

Updated by Redmine Admin over 11 years ago

Original Bugzilla ID was 466

Actions

Also available in: Atom PDF