|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.framework.Assert | +--junit.framework.TestCase | +--junit.log4j.LoggedTestCase | +--openfuture.bugbase.test.common.BusinessTestCase | +--openfuture.bugbase.test.bugreports.JspAddBugReportTestCase
Test adding a new bug report via the JSP interface.
Created: Sat Nov 24 14:42:35 2001
Fields inherited from class junit.log4j.LoggedTestCase |
category, isLog4jInClasspath |
Constructor Summary | |
JspAddBugReportTestCase(java.lang.String name)
Creates a new JspAddBugReportTestCase instance and
initializes the criteria as an empty list. |
Method Summary | |
protected void |
addReportWithAttachment(java.lang.String prefix,
java.lang.String suffix)
Submit a complete bug report including an attachment using the JSP interface. |
protected com.meterware.httpunit.WebRequest |
fillReportForm(com.meterware.httpunit.WebForm form,
java.lang.String title,
java.lang.String description,
java.lang.String packageName,
java.lang.String groupid,
java.lang.String errorLevel)
Fill the bug report form with the given parameters |
static java.lang.String |
findFileParameter(com.meterware.httpunit.WebForm form)
Search the form for the first file parameter |
java.util.LinkedList |
getCriteria()
Get the value of criteria. |
java.text.DateFormat |
getDateFormat()
Get the date format used to make bug report titles unique. |
void |
setCriteria(java.util.LinkedList v)
Set the value of criteria. |
void |
setDateFormat(java.text.DateFormat newDateFormat)
Set the date format used to make bug report titles unique. |
void |
tearDown()
Try to remove the created bug reports again. |
void |
testAddCompleteReport()
Submit a complete bug report using the JSP interface. |
void |
testAddMissingDescription()
Submit a bug report with missing description entry using the JSP interface: Call NewBugReport.jsp .
Log in.
Fill form completely except for the report description.
Submit the form.
|
void |
testAddMissingTitle()
Submit a bug report with missing title entry using the JSP interface: Call NewBugReport.jsp .
Log in.
Fill form completely except for the report title.
Submit the form.
|
void |
testAddReportWithConformAttachment()
Submit
a complete bug report including an attachment
with HTTP conform name using the JSP interface. |
void |
testAddReportWithNonConformAttachment()
Submit
a complete bug report including an attachment
with a name containing a blank using the JSP interface. |
Methods inherited from class openfuture.bugbase.test.common.BusinessTestCase |
callPage, createAdminUser, createCompleteBugReport, createCompleteBugReport, createDoctorUser, createNormalUser, createNormalUser, createUniqueUserId, findForm, findLink, findLinkByText, getAdminUser, getClient, getDoctorUser, getNormalUser, getResourceBundle, getUniqueFilename, hasReasonKey, isUniqueUserId, login, login, loginPage, loginPage, logoff, logoffPage, searchUser, setAdminUser, setClient, setDefault, setDoctorUser, setNormalUser, setResourceBundle, setUp |
Methods inherited from class junit.log4j.LoggedTestCase |
debug, debug, error, error, fatal, fatal, getProperties, info, info, setProperties, warn, warn |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public JspAddBugReportTestCase(java.lang.String name)
JspAddBugReportTestCase
instance and
initializes the criteria
as an empty list.name
- test case nameMethod Detail |
public void testAddCompleteReport() throws java.lang.Exception
NewBugReport.jsp
.java.lang.Exception
- if an error occurspublic void testAddMissingTitle() throws java.lang.Exception
NewBugReport.jsp
.java.lang.Exception
- if an error occurspublic void testAddMissingDescription() throws java.lang.Exception
NewBugReport.jsp
.java.lang.Exception
- if an error occurspublic void testAddReportWithConformAttachment() throws java.lang.Exception
Submit
a complete bug report including an attachment
with HTTP conform name using the JSP interface.java.lang.Exception
- if an error occurspublic void testAddReportWithNonConformAttachment() throws java.lang.Exception
Submit
a complete bug report including an attachment
with a name containing a blank using the JSP interface.java.lang.Exception
- if an error occurspublic void tearDown() throws java.lang.Exception
tearDown
in class BusinessTestCase
java.lang.Exception
- if an error occursprotected void addReportWithAttachment(java.lang.String prefix, java.lang.String suffix) throws java.lang.Exception
NewBugReport.jsp
.prefix
- a filename prefixsuffix
- a filename suffixjava.lang.Exception
- if an error occursprotected com.meterware.httpunit.WebRequest fillReportForm(com.meterware.httpunit.WebForm form, java.lang.String title, java.lang.String description, java.lang.String packageName, java.lang.String groupid, java.lang.String errorLevel)
fillReportForm
in class BusinessTestCase
form
- the HTML formtitle
- bug report titledescription
- bug report descriptionpackageName
- bug report package namegroupid
- bug report group IDerrorLevel
- bug report error levelpublic static java.lang.String findFileParameter(com.meterware.httpunit.WebForm form)
form
- the web formnull
,
if none is found.public java.util.LinkedList getCriteria()
public void setCriteria(java.util.LinkedList v)
v
- Value to assign to criteria.public java.text.DateFormat getDateFormat()
public void setDateFormat(java.text.DateFormat newDateFormat)
newDateFormat
- the new date format used to make bug report titles unique.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |