From portal-commits at lists.jboss.org Thu May 28 06:14:01 2009 Content-Type: multipart/mixed; boundary="===============8036833235238087369==" MIME-Version: 1.0 From: portal-commits at lists.jboss.org To: portal-commits at lists.jboss.org Subject: [portal-commits] JBoss Portal SVN: r13417 - in branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium: portal and 1 other directory. Date: Thu, 28 May 2009 06:06:10 -0400 Message-ID: --===============8036833235238087369== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: vrockai Date: 2009-05-28 06:06:10 -0400 (Thu, 28 May 2009) New Revision: 13417 Modified: branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal= /test/selenium/cms/CMSFileTestCase.java branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal= /test/selenium/cms/CMSFileUploadTestCase.java branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal= /test/selenium/cms/CMSFileWorkflowTestCase.java branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal= /test/selenium/cms/CMSFileWorkflowUploadTestCase.java branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal= /test/selenium/portal/EndtoEndPortalAdminTestCase.java Log: [BPORTAL-2311] cms workflow refactoring Modified: branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss= /portal/test/selenium/cms/CMSFileTestCase.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/porta= l/test/selenium/cms/CMSFileTestCase.java 2009-05-27 10:33:48 UTC (rev 13416) +++ branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/porta= l/test/selenium/cms/CMSFileTestCase.java 2009-05-28 10:06:10 UTC (rev 13417) @@ -22,7 +22,7 @@ private final String TBL_CMS_FILEVER =3D getLoc(casePfx + "tbl.cms.fileve= r", "//div[@id=3D'center']/div/div/table"); public final String TBL_CMS_FILE =3D getLoc(casePfx + "tbl.cms.file", "//= div[@id=3D'center']/div/div/div[3]/table"); public final String TBL_FILE_PENDING =3D getLoc(casePfx + "tbl.file.pendi= ng", "//div[@id=3D'center']/div/div/table[2]"); - + = @BeforeMethod(groups =3D { "log" }) protected void loginBeforeTest() { logoutIfPossible(); Modified: branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss= /portal/test/selenium/cms/CMSFileUploadTestCase.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/porta= l/test/selenium/cms/CMSFileUploadTestCase.java 2009-05-27 10:33:48 UTC (rev= 13416) +++ branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/porta= l/test/selenium/cms/CMSFileUploadTestCase.java 2009-05-28 10:06:10 UTC (rev= 13417) @@ -13,7 +13,7 @@ * = * @author Viliam Rockai */ - +//TODO refactoring needed @Test(groups =3D { "cms_file_upload" }, enabled =3D true) public class CMSFileUploadTestCase extends JBossPortalSeleniumTestCase { /* Modified: branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss= /portal/test/selenium/cms/CMSFileWorkflowTestCase.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/porta= l/test/selenium/cms/CMSFileWorkflowTestCase.java 2009-05-27 10:33:48 UTC (r= ev 13416) +++ branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/porta= l/test/selenium/cms/CMSFileWorkflowTestCase.java 2009-05-28 10:06:10 UTC (r= ev 13417) @@ -17,12 +17,14 @@ @Test(groups =3D { "cms_file_workflow" }, enabled =3D true) public class CMSFileWorkflowTestCase extends JBossPortalSeleniumTestCase { = - private static final String SUB_MOVE =3D "submit"; = + /** prefix for locator properties =3D cms.file.work. */ public final String casePfx =3D "cms.file.work."; = private final String LAB_LANG_CZECH =3D getLoc(casePfx + "lab.lang.czech"= , "label=3DCzech"); + private final String SUB_MOVE =3D getLoc(casePfx + "sub.move", "submit"); + private final String LNK_HOME =3D getLoc(casePfx + "lnk.home", "link=3DHo= me"); private final String LNK_DENY =3D getLoc(casePfx + "lnk.deny", "link=3DDe= ny"); private final String LNK_PREVIEW =3D getLoc(casePfx + "lnk.preview", "lin= k=3DPreview"); private final String LNK_APPROVE =3D getLoc(casePfx + "lnk.approve", "lin= k=3DApprove"); @@ -169,7 +171,7 @@ selenium.waitForPageToLoad(PAGE_LOAD); selenium.click(LNK_CMS); selenium.waitForPageToLoad(PAGE_LOAD); - selenium.click("link=3DHome"); + selenium.click(LNK_HOME); selenium.waitForPageToLoad(PAGE_LOAD); selenium.select(SELECT_CMS_MAIN, LAB_CREATE_FILE); selenium.waitForPageToLoad(PAGE_LOAD); @@ -270,7 +272,7 @@ = Assert.assertFalse(selenium.isElementPresent("link=3DfileToMove")); = - selenium.click("link=3DHome"); + selenium.click(LNK_HOME); selenium.waitForPageToLoad(PAGE_LOAD); = Assert.assertTrue(selenium.isElementPresent("link=3DfileToMove")); @@ -298,7 +300,7 @@ = Assert.assertTrue(selenium.isElementPresent("link=3DfileToMove")); = - selenium.click("link=3DHome"); + selenium.click(LNK_HOME); selenium.waitForPageToLoad(PAGE_LOAD); = Assert.assertFalse(selenium.isElementPresent("link=3DfileToMove")); @@ -329,7 +331,7 @@ = Assert.assertTrue(selenium.isElementPresent("link=3Dfile2copy")); = - selenium.click("link=3DHome"); + selenium.click(LNK_HOME); selenium.waitForPageToLoad(PAGE_LOAD); = Assert.assertTrue(selenium.isElementPresent("link=3Dfile2copy")); @@ -376,7 +378,7 @@ selenium.waitForPageToLoad(PAGE_LOAD); selenium.click(LNK_CMS); selenium.waitForPageToLoad(PAGE_LOAD); - selenium.click("link=3DHome"); + selenium.click(LNK_HOME); selenium.waitForPageToLoad(PAGE_LOAD); = selenium.click("link=3D" + file); @@ -421,7 +423,7 @@ selenium.waitForPageToLoad(PAGE_LOAD); selenium.click(LNK_CMS); selenium.waitForPageToLoad(PAGE_LOAD); - selenium.click("link=3DHome"); + selenium.click(LNK_HOME); selenium.waitForPageToLoad(PAGE_LOAD); selenium.select(SELECT_CMS_MAIN, LAB_CREATE_FILE); selenium.waitForPageToLoad(PAGE_LOAD); @@ -436,7 +438,7 @@ = selenium.click(LNK_APPROVE); selenium.waitForPageToLoad(PAGE_LOAD); - selenium.click("link=3DHome"); + selenium.click(LNK_HOME); selenium.waitForPageToLoad(PAGE_LOAD); = Assert.assertEquals(name, selenium.getText("link=3D" + name)); Modified: branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss= /portal/test/selenium/cms/CMSFileWorkflowUploadTestCase.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/porta= l/test/selenium/cms/CMSFileWorkflowUploadTestCase.java 2009-05-27 10:33:48 = UTC (rev 13416) +++ branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/porta= l/test/selenium/cms/CMSFileWorkflowUploadTestCase.java 2009-05-28 10:06:10 = UTC (rev 13417) @@ -9,32 +9,33 @@ import org.testng.annotations.Test; = /** - * CMSFileUploadTestCase is responsible for testing of file uploading. + * CMSFileUploadTestCase is responsible for testing of file uploading. Fil= es + * used in these tests are stored in the path defined by the system variab= le + * workspace (-Dworkspace). * = * @author Viliam Rockai */ -//TODO refactoring needed @Test(groups =3D { "cms_file_upload" }, enabled =3D true) public class CMSFileWorkflowUploadTestCase extends JBossPortalSeleniumTest= Case { - /* - * uncomment following lines and set the right path to the workspace in t= he - * case you want to use this test case locally from eclipse - */ - /* - * { - * System.setProperty("workspace","/home/vrockai/workspace/selenium-2.7/" - * ); } - */ - /** prefix for locator properties =3D cms.file.up. */ private final String casePfx =3D "cms.file.up."; + + private final String SUB_FIL_SUBMIT =3D getLoc(casePfx + "sub.fil.submit"= , "submit"); + private final String SUB_FIL_CANCEL =3D getLoc(casePfx + "sub.fil.cancel"= , "cancel"); + private final String INP_FIL_FIL =3D getLoc(casePfx + "inp.fil.fil", "res= ponse"); + private final String INP_FIL_LAN =3D getLoc(casePfx + "inp.fil.lan", "lan= guage"); + private final String INP_FIL_TIT =3D getLoc(casePfx + "inp.fil.tit", "tit= le"); + private final String INP_FIL_DES =3D getLoc(casePfx + "inp.fil.des", "des= cription"); private final String LNK_DENY =3D getLoc(casePfx + "lnk.deny", "link=3DDe= ny"); private final String LNK_PREVIEW =3D getLoc(casePfx + "lnk.preview", "lin= k=3DPreview"); private final String LNK_APPROVE =3D getLoc(casePfx + "lnk.approve", "lin= k=3DApprove"); private final String CMS_FILE_TABLE =3D getLoc(casePfx + "cms.file.table"= , "//div[@id=3D'center']/div/div/div[3]/table"); private final String WORKSPACE =3D System.getProperty("workspace"); - private final String TEST_FILES_DIR =3D WORKSPACE + File.separatorChar += "test_files" + File.separatorChar; - = + private final String TEST_FILES_DIR =3D WORKSPACE + File.separatorChar + = "test_files" + File.separatorChar; + private final String SEL_ACTION =3D getLoc(casePfx + "sel.action", "//div= [@id=3D'center']/div/div/div[1]/div/select"); + private final String LNK_CMS_ROOT =3D getLoc(casePfx + "lnk.cms.root", "l= ink=3DHome"); + private final String TAB_FILE_VER =3D getLoc(casePfx + "tab.file.ver", "/= /div[@id=3D'center']/div/div/table"); + @BeforeMethod(groups =3D { "log" }) protected void loginBeforeTest() { logoutIfPossible(); @@ -68,18 +69,18 @@ = int rc_d_before =3D countTableRows(CMS_FILE_TABLE); = - selenium.click("link=3DHome"); + selenium.click(LNK_CMS_ROOT); selenium.waitForPageToLoad(PAGE_LOAD); = - selenium.select("//div[@id=3D'center']/div/div/div[1]/div/select", "labe= l=3DUpload File"); + selenium.select(SEL_ACTION, "label=3DUpload File"); selenium.waitForPageToLoad(PAGE_LOAD); selenium.waitForPopUp("_top", PAGE_LOAD); - selenium.type("description", "myFile"); - selenium.type("title", "file to upload"); - selenium.select("language", "label=3DAfar"); - selenium.type("response", WORKSPACE + "/test_files/testFile.txt"); + selenium.type(INP_FIL_DES, "myFile"); + selenium.type(INP_FIL_TIT, "file to upload"); + selenium.select(INP_FIL_LAN, "label=3DAfar"); + selenium.type(INP_FIL_FIL, WORKSPACE + "/test_files/testFile.txt"); selenium.click("link=3Ddefault"); - selenium.click("cancel"); + selenium.click(SUB_FIL_CANCEL); selenium.waitForPageToLoad(PAGE_LOAD); = int rc_m_after =3D countTableRows(CMS_FILE_TABLE); @@ -89,7 +90,7 @@ = int rc_d_after =3D countTableRows(CMS_FILE_TABLE); = - selenium.click("link=3DHome"); + selenium.click(LNK_CMS_ROOT); selenium.waitForPageToLoad(PAGE_LOAD); = Assert.assertEquals(rc_m_after, rc_m_before, "The row count in CMS file = table has changes after canceling the upload of file in the root dir."); @@ -100,129 +101,135 @@ * File upload test. The form for uploading file is filled with relevant * values and the file located in "test_files/testFile.txt" is chosen for * uploading into the root directory. Submit button is pressed and the - * upload should take the action and afterwards the file is approved. The= existence of the file in root - * directory is asserted. + * upload should take the action and afterwards the file is approved. The + * existence of the file in root directory is asserted. */ @Test(enabled =3D true, description =3D "File upload test") public void testFileApproveUpload() { + String fileName =3D "testFile.txt"; = selenium.click("link=3DAdmin"); selenium.waitForPageToLoad(PAGE_LOAD); selenium.click("link=3DCMS"); selenium.waitForPageToLoad(PAGE_LOAD); = - selenium.select("//div[@id=3D'center']/div/div/div[1]/div/select", "labe= l=3DUpload File"); + selenium.select(SEL_ACTION, "label=3DUpload File"); selenium.waitForPageToLoad(PAGE_LOAD); selenium.waitForPopUp("_top", PAGE_LOAD); - selenium.type("description", "myFile"); - selenium.type("title", "file to upload"); - selenium.select("language", "label=3DAfar"); - selenium.type("response", TEST_FILES_DIR + "testFile.txt"); - selenium.click("submit"); + selenium.type(INP_FIL_DES, "myFile"); + selenium.type(INP_FIL_TIT, "file to upload"); + selenium.select(INP_FIL_LAN, "label=3DAfar"); + selenium.type(INP_FIL_FIL, TEST_FILES_DIR + fileName); + selenium.click(SUB_FIL_SUBMIT); selenium.waitForPageToLoad(PAGE_LOAD); - = + Assert.assertTrue(selenium.isElementPresent(LNK_PREVIEW)); Assert.assertTrue(selenium.isElementPresent(LNK_APPROVE)); Assert.assertTrue(selenium.isElementPresent(LNK_DENY)); - = + selenium.click(LNK_APPROVE); selenium.waitForPageToLoad(PAGE_LOAD); - = - Assert.assertEquals(selenium.getText("//div[@id=3D'center']/div/div/ul/l= i[3]"), "testFile.txt"); + + Assert.assertTrue(selenium.isTextPresent(fileName)); Assert.assertTrue(selenium.isElementPresent("link=3Dtext/plain")); - Assert.assertTrue(selenium.isElementPresent("//div[@id=3D'center']/div/d= iv/table/tbody/tr[4]/td[3]")); - Assert.assertEquals(selenium.getText("//div[@id=3D'center']/div/div/tabl= e/tbody/tr[4]/td[6]"), "file to upload"); = + int r =3D findTableRow(TAB_FILE_VER, "file to upload", 5); + + Assert.assertTrue(r > -1, "File title not found in the file table"); + Assert.assertTrue(selenium.isElementPresent("link=3DAfar")); - Assert.assertTrue(selenium.isTextPresent("testFile.txt")); + Assert.assertTrue(selenium.isTextPresent(fileName)); = - selenium.click("link=3DHome"); + selenium.click(LNK_CMS_ROOT); selenium.waitForPageToLoad(PAGE_LOAD); = - Assert.assertEquals(selenium.getText("link=3DtestFile.txt"), "testFile.t= xt"); + Assert.assertEquals(selenium.getText("link=3D" + fileName), fileName); } - = + /** * File upload test. The form for uploading file is filled with relevant - * values and the file located in "test_files/testFileDeny.txt" is chosen= for - * uploading into the root directory. Submit button is pressed and the - * upload should take the action and afterwards the file is denied. The n= on-existence of the file in root - * directory is asserted. + * values and the file located in "test_files/testFileDeny.txt" is chosen + * for uploading into the root directory. Submit button is pressed and the + * upload should take the action and afterwards the file is denied. The + * non-existence of the file in root directory is asserted. */ @Test(enabled =3D true, description =3D "File upload test") public void testFileDenyUpload() { + String filename =3D "testFileDeny.txt"; = selenium.click("link=3DAdmin"); selenium.waitForPageToLoad(PAGE_LOAD); selenium.click("link=3DCMS"); selenium.waitForPageToLoad(PAGE_LOAD); = - selenium.select("//div[@id=3D'center']/div/div/div[1]/div/select", "labe= l=3DUpload File"); + selenium.select(SEL_ACTION, "label=3DUpload File"); selenium.waitForPageToLoad(PAGE_LOAD); selenium.waitForPopUp("_top", PAGE_LOAD); - selenium.type("description", "myFile"); - selenium.type("title", "file to deny upload"); - selenium.select("language", "label=3DAfar"); - selenium.type("response", TEST_FILES_DIR + "testFileDeny.txt"); - selenium.click("submit"); + selenium.type(INP_FIL_DES, "myFile"); + selenium.type(INP_FIL_TIT, "file to deny upload"); + selenium.select(INP_FIL_LAN, "label=3DAfar"); + selenium.type(INP_FIL_FIL, TEST_FILES_DIR + filename); + selenium.click(SUB_FIL_SUBMIT); selenium.waitForPageToLoad(PAGE_LOAD); - = + Assert.assertTrue(selenium.isElementPresent(LNK_PREVIEW)); Assert.assertTrue(selenium.isElementPresent(LNK_APPROVE)); Assert.assertTrue(selenium.isElementPresent(LNK_DENY)); - = + selenium.click(LNK_DENY); selenium.waitForPageToLoad(PAGE_LOAD); - = - Assert.assertFalse(selenium.isTextPresent("testFileDeny.txt")); = - selenium.click("link=3DHome"); + Assert.assertFalse(selenium.isTextPresent(filename)); + + selenium.click(LNK_CMS_ROOT); selenium.waitForPageToLoad(PAGE_LOAD); = - Assert.assertFalse(selenium.isElementPresent("link=3DtestFileDeny.txt")); + Assert.assertFalse(selenium.isElementPresent("link=3D" + filename)); } - = + /** - * Selenium doesn't support file downloading, therefore the test is disab= led. The form for uploading file is filled with relevant - * values and the file located in "test_files/testFilePrev.txt" is chosen= for - * uploading into the root directory. Submit button is pressed and the - * upload should take the action and afterwards the file is previewed and= denied. non-existence of the file in root - * directory is asserted. + * Selenium doesn't support file downloading, therefore the test is + * disabled. The form for uploading file is filled with relevant values a= nd + * the file located in "test_files/testFilePrev.txt" is chosen for upload= ing + * into the root directory. Submit button is pressed and the upload should + * take the action and afterwards the file is previewed and denied. + * non-existence of the file in root directory is asserted. */ @Test(enabled =3D false, description =3D "File upload test") public void testFilePreviewUpload() { + String filename =3D "testFilePrev.txt"; = selenium.click("link=3DAdmin"); selenium.waitForPageToLoad(PAGE_LOAD); selenium.click("link=3DCMS"); selenium.waitForPageToLoad(PAGE_LOAD); = - selenium.select("//div[@id=3D'center']/div/div/div[1]/div/select", "labe= l=3DUpload File"); + selenium.select(SEL_ACTION, "label=3DUpload File"); selenium.waitForPageToLoad(PAGE_LOAD); selenium.waitForPopUp("_top", PAGE_LOAD); - selenium.type("description", "myFile"); - selenium.type("title", "file to deny upload"); - selenium.select("language", "label=3DAfar"); - selenium.type("response", TEST_FILES_DIR + "testFilePrev.txt"); - selenium.click("submit"); + selenium.type(INP_FIL_DES, "myFile"); + selenium.type(INP_FIL_TIT, "file to deny upload"); + selenium.select(INP_FIL_LAN, "label=3DAfar"); + selenium.type(INP_FIL_FIL, TEST_FILES_DIR + filename); + selenium.click(SUB_FIL_SUBMIT); selenium.waitForPageToLoad(PAGE_LOAD); - = + Assert.assertTrue(selenium.isElementPresent(LNK_PREVIEW)); Assert.assertTrue(selenium.isElementPresent(LNK_APPROVE)); Assert.assertTrue(selenium.isElementPresent(LNK_DENY)); - = + selenium.click(LNK_PREVIEW); selenium.waitForPageToLoad(PAGE_LOAD); - = + selenium.click(LNK_DENY); selenium.waitForPageToLoad(PAGE_LOAD); - = - Assert.assertFalse(selenium.isTextPresent("testFileDenyPrev.txt")); = - selenium.click("link=3DHome"); + Assert.assertFalse(selenium.isTextPresent(filename)); + + selenium.click(LNK_CMS_ROOT); selenium.waitForPageToLoad(PAGE_LOAD); = - Assert.assertFalse(selenium.isElementPresent("link=3DtestFilePrev.txt")); + Assert.assertFalse(selenium.isElementPresent("link=3D" + filename)); } = } Modified: branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss= /portal/test/selenium/portal/EndtoEndPortalAdminTestCase.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/porta= l/test/selenium/portal/EndtoEndPortalAdminTestCase.java 2009-05-27 10:33:48= UTC (rev 13416) +++ branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/porta= l/test/selenium/portal/EndtoEndPortalAdminTestCase.java 2009-05-28 10:06:10= UTC (rev 13417) @@ -71,6 +71,7 @@ } = final String portalName =3D "UseCasePortal"; + final String portalManName =3D "UseManagePortal"; final String page1Name =3D "firstPage"; final String page2Name =3D "anotherPage"; final String page3Name =3D "lastPage with whitespace"; @@ -168,6 +169,11 @@ assertPageContains(page5Name, por5str); = } + = + @Test(enabled =3D true, description =3D "Usecase for creating small porta= l with content.") + public void testManagePortalUsecase() { + createPortal(portalManName); + } = private void assertPageContains(String pageName, String awaitStr) { selenium.open(ADR_PORTAL); --===============8036833235238087369==--