Author: mageshbk(a)jboss.com
Date: 2009-05-13 03:21:31 -0400 (Wed, 13 May 2009)
New Revision: 13347
Modified:
branches/Enterprise_Portal_Platform_4_3_GA_CP01_JBEPP-78/testsuite/ui-tests/src/org/jboss/portal/test/selenium/cms/CMSFileUploadTestCase.java
Log:
[JBEPP-79] Made it multi-platform
Modified:
branches/Enterprise_Portal_Platform_4_3_GA_CP01_JBEPP-78/testsuite/ui-tests/src/org/jboss/portal/test/selenium/cms/CMSFileUploadTestCase.java
===================================================================
---
branches/Enterprise_Portal_Platform_4_3_GA_CP01_JBEPP-78/testsuite/ui-tests/src/org/jboss/portal/test/selenium/cms/CMSFileUploadTestCase.java 2009-05-13
07:16:46 UTC (rev 13346)
+++
branches/Enterprise_Portal_Platform_4_3_GA_CP01_JBEPP-78/testsuite/ui-tests/src/org/jboss/portal/test/selenium/cms/CMSFileUploadTestCase.java 2009-05-13
07:21:31 UTC (rev 13347)
@@ -1,5 +1,7 @@
package org.jboss.portal.test.selenium.cms;
+import java.io.File;
+
import org.jboss.portal.test.selenium.JBossPortalSeleniumTestCase;
import org.testng.Assert;
import org.testng.annotations.AfterMethod;
@@ -23,6 +25,7 @@
private final String CMS_FILE_TABLE =
getProp(casePfx+"cms.file.table","//div[@id='center']/div/div/div[3]/table");
private final String WORKSPACE = System.getProperty("workspace");
+ private final String TEST_FILES_DIR = WORKSPACE + File.separatorChar +
"test_files" + File.separatorChar;
@BeforeMethod(groups = { "log" })
public void loginBeforeTest() {
@@ -91,7 +94,7 @@
selenium.type("title", "file to upload");
selenium.select("language", "label=Afar");
- selenium.type("response", WORKSPACE + "/test_files/testFile.txt");
+ selenium.type("response", TEST_FILES_DIR + "testFile.txt");
selenium.click("submit");
selenium.waitForPageToLoad(PAGE_LOAD);
/*
Show replies by date