站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.4 API 英文版文档

UserTestCase - JBOSS Portal 2.4 API 英文版文档


org.jboss.portlet.test.forums
Class UserTestCase

java.lang.Object
  extended byWebTestCase
      extended byorg.jboss.portlet.test.forums.UserTestCase
All Implemented Interfaces:
TestConstants

public class UserTestCase
extends WebTestCase
implements TestConstants

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.jboss.portlet.test.forums.TestConstants
ADMIN_CATEGORY_1_EDIT_URL, ADMIN_CATEGORY_EDIT_NAME_FORM_ELEMENT, ADMIN_CATEGORY_EDIT_SUBMIT, ADMIN_FORUM_1_EDIT_URL, ADMIN_PANEL_TEXT_LINK, CATEGORY_1_TEXT_LINK, FLOOD_INTERVAL, FORUM_1_TEXT_LINK, FORUM_2_TEXT_LINK, INSTANT_REPLY_MESSAGE_FORM_ELEMENT, MODE_EDIT_IMAGE_LINK, MODE_MAXIMIZE_IMAGE_LINK, MODE_MINIMIZE_IMAGE_LINK, MODE_NORMAL_IMAGE_LINK, MODE_VIEW_IMAGE_LINK, NEW_TOPIC_IMAGE_LINK, POLL_ADD_OPTION_FORM_ELEMENT, POLL_ADD_OPTION_SUBMIT, POLL_OPTION_1_DELETE_SUBMIT, POLL_OPTION_1_TEXT_FORM_ELEMENT, POLL_OPTION_2_DELETE_SUBMIT, POLL_OPTION_2_TEXT_FORM_ELEMENT, POLL_OPTION_3_DELETE_SUBMIT, POLL_OPTION_3_TEXT_FORM_ELEMENT, POLL_OPTION_4_DELETE_SUBMIT, POLL_OPTION_4_TEXT_FORM_ELEMENT, POLL_OPTION_UPDATE_SUBMIT, POLL_TITLE_FORM_ELEMENT, POLL_VIEW_RESULTS_TEXT_LING, POLL_VOTE_RADIO_FORM_ELEMENT, POLL_VOTE_SUBMIT_SUBMIT, PORTAL_FORUMS_MAIN_EDIT_URL, PORTAL_FORUMS_MAIN_MAXIMIZED_URL, PORTAL_FORUMS_MAIN_MINIMIZED_URL, PORTAL_FORUMS_MAIN_NORMAL_URL, PORTAL_FORUMS_TEXT_LINK, PORTAL_LOGIN_PASSWORD_FORM_ELEMENT, PORTAL_LOGIN_TEXT_LINK, PORTAL_LOGIN_USERNAME_FORM_ELEMENT, PORTAL_LOGOUT_TEXT_LINK, PORTAL_MAIN_BEGIN, PORTAL_URL, POST_DELETE_IMAGE_LINK, POST_EDIT_IMAGE_LINK, POST_MESSAGE_FORM_ELEMENT, POST_QUOTE_IMAGE_LINK, POST_REPLY_IMAGE_LINK, POST_SUBJECT_FORM_ELEMENT, POST_SUBMIT, PREFERENCES_POST_PER_TOPIC_FORM_ELEMENT, PREFERENCES_TOPIC_PER_FORUM_FORM_ELEMENT, TOPIC_TYPE_FORM_ELEMENT, WATCHED_FORUMS_TEXT_LINK
 
Constructor Summary
UserTestCase(java.lang.String name)
           
 
Method Summary
protected  java.lang.String getRandomMessage()
           
protected  java.lang.String getRandomSubject()
           
 void loginUser()
           
protected  void setUp()
           
 void testPost11Topics()
          Test page navigation This test suppose that there are 10 topics per page
 void testPostTopic()
           
 void testReadForum()
           
 void testReadIndex()
           
 void testReplyTopic()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserTestCase

public UserTestCase(java.lang.String name)
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Throws:
java.lang.Exception

getRandomSubject

protected java.lang.String getRandomSubject()

getRandomMessage

protected java.lang.String getRandomMessage()

loginUser

public void loginUser()

testReadIndex

public void testReadIndex()

testReadForum

public void testReadForum()

testPostTopic

public void testPostTopic()

testPost11Topics

public void testPost11Topics()
Test page navigation This test suppose that there are 10 topics per page


testReplyTopic

public void testReplyTopic()