Index: lams_common/src/java/org/lamsfoundation/lams/selenium/AbstractSeleniumTestCase.java =================================================================== RCS file: /usr/local/cvsroot/lams_common/src/java/org/lamsfoundation/lams/selenium/Attic/AbstractSeleniumTestCase.java,v diff -u -r1.1 -r1.2 --- lams_common/src/java/org/lamsfoundation/lams/selenium/AbstractSeleniumTestCase.java 29 Jul 2009 14:55:40 -0000 1.1 +++ lams_common/src/java/org/lamsfoundation/lams/selenium/AbstractSeleniumTestCase.java 4 Aug 2009 12:12:25 -0000 1.2 @@ -81,21 +81,29 @@ learningDesignDAO = (LearningDesignDAO) context.getBean("learningDesignDAO"); learningDesignName = getLearningDesignName(); - HttpCommandProcessor proc = new HttpCommandProcessor(TestFrameworkConstants.SERVER_HOST, - TestFrameworkConstants.SERVER_PORT, TestFrameworkConstants.BROWSER, - TestFrameworkConstants.WEB_APP_HOST + TestFrameworkConstants.WEB_APP_DIR); + HttpCommandProcessor proc = new HttpCommandProcessor(SeleniumConstants.SERVER_HOST, + SeleniumConstants.SERVER_PORT, SeleniumConstants.BROWSER, + SeleniumConstants.WEB_APP_HOST + SeleniumConstants.WEB_APP_DIR); selenium = new DefaultSeleniumFlex(proc); selenium.start(); - // do not reduce this parameter as Selenium might start working wrong - selenium.setSpeed("400"); } + // do not reduce this parameter as Selenium might start working wrong + selenium.setSpeed("400"); } @Override public void tearDown() throws Exception { checkForVerificationErrors(); - //TODO close all windows except main one - //then we can remove all the tearDown... + + //leaves only Lams main window opened + String[] windowNames = selenium.getAllWindowNames(); + for (String windowName : windowNames) { + if (!(windowName.equals(SeleniumConstants.LAMS_MAIN_WINDOW_NAME) || windowName.equals("null"))) { + selenium.selectWindow(windowName); + selenium.close(); + } + } + selenium.selectWindow(null); } /** @@ -107,49 +115,6 @@ selenium = null; } } - -// /** -// * Our main test class. Currently it tests authoring, learning and -// * monitoring sequentially one-by-one. Also it relies on the fact that you -// * store new LD in authoring (otherwise you should reimplement this method). -// * -// * @throws Exception -// */ -// public void testEntireTool() throws Exception { -// loginToLams(); -// -// //Authoring part -// Map contentDetails = setUpAuthoring(); -// authoringTest(); -// storeLearningDesign(contentDetails); -// -// createNewLesson(); -// -// //Learning part -// learningTest(); -// -// //Monitoring part -// openToolMonitor(); -// monitoringTest(); -// closeToolMonitor(); -// } -// -// /** -// * Tests tool authoring. Should be overridden by all subclasses. -// */ -// protected void authoringTest() throws Exception; -// -// /** -// * Tests tool learning. Always should begin with setUpLearning() and end up with tearDownLearning() methods. Should -// * be overridden by all subclasses. -// */ -// protected abstract void learningTest() throws Exception; -// -// /** -// * Tests tool monitoring. Should be overridden by all subclasses. -// */ -// protected abstract void monitoringTest() throws Exception; - /** * Returns tool's signature. This method should be overridden by all @@ -169,22 +134,30 @@ /** */ protected void loginToLams() throws Exception { - //prevent popup window for user logging in for the first time - //may be move to setUp() - User user = userManagementService.getUserByLogin(TestFrameworkConstants.USER_LOGIN); + //prevent introductionary window from appearing (for users logged in for the first time) + User user = userManagementService.getUserByLogin(SeleniumConstants.USER_LOGIN); if (user.isFirstLogin()) { user.setFirstLogin(false); Workspace workspace = (Workspace) activityDAO.find(Workspace.class, user.getWorkspace().getWorkspaceId()); user.setWorkspace(workspace); userManagementService.save(user); } - selenium.open(TestFrameworkConstants.WEB_APP_DIR); - //TODO try to logout (solving prob with IE) - selenium.type("j_username", TestFrameworkConstants.USER_LOGIN); - selenium.type("j_password", TestFrameworkConstants.USER_PASSWORD); + selenium.open(SeleniumConstants.WEB_APP_DIR); + selenium.waitForPageToLoad("20000"); + + // if it's IE try to logout + if (SeleniumConstants.BROWSER.equals(SeleniumConstants.BROWSER_INTERNET_EXPLORER) + && selenium.isElementPresent("link=Logout")) { + selenium.click("link=Logout"); + selenium.waitForPageToLoad("20000"); + } + + assertTrue("Unable to access LAMS login page.", selenium.isElementPresent("link=Login")); + selenium.type("j_username", SeleniumConstants.USER_LOGIN); + selenium.type("j_password", SeleniumConstants.USER_PASSWORD); selenium.click("link=Login"); - selenium.waitForPageToLoad("10000"); + selenium.waitForPageToLoad("20000"); Thread.sleep(3000); } @@ -201,8 +174,8 @@ selenium.click("//div[@id='header-my-courses']//div[@class='tab-middle-highlight']/a"); selenium.waitForPopUp("aWindow", "10000"); - Integer userID = userManagementService.getUserByLogin(TestFrameworkConstants.USER_LOGIN).getUserId(); - String createUniqueContentFolderUrl = TestFrameworkConstants.WEB_APP_DIR + Integer userID = userManagementService.getUserByLogin(SeleniumConstants.USER_LOGIN).getUserId(); + String createUniqueContentFolderUrl = SeleniumConstants.WEB_APP_DIR + "authoring/author.do?method=createUniqueContentFolder&userID=" + userID; final String createUniqueContentFolderId = "createUniqueContentFolderId"; selenium.openWindow(createUniqueContentFolderUrl, createUniqueContentFolderId); @@ -214,7 +187,7 @@ selenium.selectWindow(null); Tool tool = toolDAO.getToolBySignature(getToolSignature()); - String getToolContentUrl = TestFrameworkConstants.WEB_APP_DIR + String getToolContentUrl = SeleniumConstants.WEB_APP_DIR + "authoring/author.do?method=getToolContentID&toolID=" + tool.getToolId(); final String getToolContentId = "getToolContentId"; selenium.openWindow(getToolContentUrl, getToolContentId); @@ -225,7 +198,7 @@ selenium.close(); selenium.selectWindow(null); - String openToolUrl = TestFrameworkConstants.WEB_APP_DIR + tool.getAuthorUrl() + "?mode=author" + String openToolUrl = SeleniumConstants.WEB_APP_DIR + tool.getAuthorUrl() + "?mode=author" + "&toolContentID=" + toolContentID + "&contentFolderID=" + contentFolderID; final String openToolId = "openToolId"; selenium.openWindow(openToolUrl.toString(), openToolId); @@ -248,23 +221,16 @@ //closes tool authoring screen selenium.click("//span[@class='okIcon']"); selenium.waitForPageToLoad("10000"); - selenium.close(); - - //closes Flash authoring screen - selenium.selectWindow("aWindow"); - selenium.close(); selenium.selectWindow(null); - final String storeLearningDesignUrl = TestFrameworkConstants.WEB_APP_DIR + final String storeLearningDesignUrl = SeleniumConstants.WEB_APP_DIR + "servlet/authoring/storeLearningDesignDetails"; String designDetails = constructWddxDesign(authoringSettings); //callback function is aimed to let Selenium wait till StoreLDServlet finishes its work selenium.runScript("$.post(\"" + storeLearningDesignUrl + "\", " + "\"" + designDetails + "\", " + "function(data){ return data; }" + ");"); - selenium.selectWindow(null); - //TODO add timeout so let servelet running first time finish its work } /** @@ -274,11 +240,18 @@ * @throws Exception */ public void createNewLesson() throws Exception { - //TODO check for new design for several times letting it work Long lastCreatedLessonId = getLastCreatedLessonId(true); DefaultSeleniumFlex flexSelenium = (DefaultSeleniumFlex) selenium; + + flexSelenium.click("link=Add Lesson"); + Thread.sleep(6000); + // flexObjId is now set to "cloudWizard" by default, change it if + // you want to use another one. + // flexSelenium.flexSetFlexObjID("cloudWizard"); + waitForFlexExists("workspaceTree", 20, flexSelenium); + assertTrue(flexSelenium.getFlexEnabled("startButton").equals("true")); - User user = userManagementService.getUserByLogin(TestFrameworkConstants.USER_LOGIN); + User user = userManagementService.getUserByLogin(SeleniumConstants.USER_LOGIN); Workspace workspace = (Workspace) activityDAO.find(Workspace.class, user.getWorkspace().getWorkspaceId()); Integer workspaceFolderID = workspace.getDefaultFolder().getWorkspaceFolderId(); List titles = learningDesignDAO.getLearningDesignTitlesByWorkspaceFolder(workspaceFolderID); @@ -294,46 +267,44 @@ } assertTrue("There isn't learning design with name " + learningDesignName, count <= titles.size()); - flexSelenium.click("link=Add Lesson"); - Thread.sleep(6000); - // flexObjId is now setted to "cloudWizard" by default, change this if - // you want to use another one - // flexSelenium.flexSetFlexObjID("cloudWizard"); - waitForFlexExists("workspaceTree", 20, flexSelenium); - assertTrue(flexSelenium.getFlexEnabled("startButton").equals("true")); - flexSelenium.flexSelectIndex("workspaceTree", String.valueOf(count)); - // flexSelenium.flexType("resourceName_txi", "bueno"); flexSelenium.flexClick("startButton"); Thread.sleep(5000); - assertTrue("Assertion failed. Lesson has *not* been created", - lastCreatedLessonId < getLastCreatedLessonId(true)); + + // TODO fix CloudWizard or define offset checking for lesson's LD name + final String cloudWizardError = "Tests aborted due to the problem with CloudWizard's root element problem. Please, restart tests"; + assertTrue(cloudWizardError, lastCreatedLessonId < getLastCreatedLessonId(true)); - //TODO fix CloudWizard or define offset checking for lesson's LD name Long lessonId = getLastCreatedLessonId(false); String lessonTitle = lessonDAO.getLesson(lessonId).getLessonName(); - assertTrue("Tests aborted due to the problem with CloudWizard's root element problem. Please, restart tests", - learningDesignName.equals(lessonTitle)); + assertTrue(cloudWizardError, learningDesignName.equals(lessonTitle)); } /** - * Prepares learning environment. Should be invoked each time learning is - * going to be tested. + * Opens up learning. It should be used in the beginning of each learner test. * * @throws InterruptedException */ protected void setUpLearning() throws InterruptedException { selenium.runScript("openLearner(" + getLastCreatedLessonId(false) + ")"); + waitForLearning(); + } + + /** + * Waits for learning. It can be used after learning refresh. + * + * @throws InterruptedException + */ + protected void waitForLearning() throws InterruptedException { selenium.waitForPopUp("lWindow", "30000"); selenium.selectWindow("lWindow"); waitForElementPresent("contentFrame"); selenium.selectFrame("contentFrame"); - //TODO set timeout but only during the first time + waitForElementPresent("//html//div[@id='content']"); } /** - * Shuts up learning environment. Should be invoked each time learning - * testing is done. + * Closes Lams learning. Then selects back Lams main window. */ protected void tearDownLearning() { selenium.close(); @@ -356,7 +327,7 @@ // openning tool monitor popup Tool tool = toolDAO.getToolBySignature(getToolSignature()); - String monitorUrl = TestFrameworkConstants.WEB_APP_DIR + tool.getMonitorUrl() + "?toolContentID=" + String monitorUrl = SeleniumConstants.WEB_APP_DIR + tool.getMonitorUrl() + "?toolContentID=" + toolActivity.getToolContentId() + "&contentFolderID=" + contentFolderID; final String monitorId = "monitorId"; selenium.openWindow(monitorUrl, monitorId); @@ -365,7 +336,7 @@ } /** - * Closes Lams monitor. (Optional activity) + * Closes Lams monitor. Then selects back Lams main window. */ protected void tearDownMonitoring() { selenium.close(); @@ -433,7 +404,7 @@ * @return id */ private Long getLastCreatedLessonId(boolean returnNegative) { - Integer userID = userManagementService.getUserByLogin(TestFrameworkConstants.USER_LOGIN).getUserId(); + Integer userID = userManagementService.getUserByLogin(SeleniumConstants.USER_LOGIN).getUserId(); List lessonsCreatedByUser = lessonDAO.getLessonsCreatedByUser(userID); List lessonsWithLDName = new ArrayList(); for (Lesson lesson : lessonsCreatedByUser) { @@ -506,7 +477,7 @@ * @return */ private String constructWddxDesign(Map contentDetails) { - User user = userManagementService.getUserByLogin(TestFrameworkConstants.USER_LOGIN); + User user = userManagementService.getUserByLogin(SeleniumConstants.USER_LOGIN); Tool tool = toolDAO.getToolBySignature(getToolSignature()); //checks if another LD with the same name exists. If so then trying to create unique one. Index: lams_common/src/java/org/lamsfoundation/lams/selenium/DefaultSeleniumFlex.java =================================================================== RCS file: /usr/local/cvsroot/lams_common/src/java/org/lamsfoundation/lams/selenium/Attic/DefaultSeleniumFlex.java,v diff -u -r1.1 -r1.2 --- lams_common/src/java/org/lamsfoundation/lams/selenium/DefaultSeleniumFlex.java 29 Jul 2009 14:55:40 -0000 1.1 +++ lams_common/src/java/org/lamsfoundation/lams/selenium/DefaultSeleniumFlex.java 4 Aug 2009 12:12:24 -0000 1.2 @@ -1,4 +1,3 @@ - /* * License * @@ -25,158 +24,157 @@ import com.thoughtworks.selenium.DefaultSelenium; import com.thoughtworks.selenium.HttpCommandProcessor; import com.thoughtworks.selenium.SeleniumException; - public class DefaultSeleniumFlex extends DefaultSelenium { - - public DefaultSeleniumFlex(HttpCommandProcessor proc) { - super(proc); + + public DefaultSeleniumFlex(HttpCommandProcessor proc) { + super(proc); + } + + protected void handleException(SeleniumException e, String command, String target, String args) { + System.out.println(e.getMessage()); + System.out.println("Failed command : " + command + "(" + target + ", " + args + ")"); + } + + protected String executeCommand(String command, String target, String args) throws Exception { + String retval = ""; + try { + retval = this.commandProcessor.doCommand(command, new String[] { target, args }); + } catch (SeleniumException e) { + handleException(e, command, target, args); + throw e; } - - protected void handleException(SeleniumException e, String command, String target, String args) { - System.out.println(e.getMessage()); - System.out.println("Failed command : " + command + "(" + target + ", " + args +")"); - } - - protected String executeCommand(String command, String target, String args) throws Exception { - String retval = ""; - try { - retval = this.commandProcessor.doCommand(command, new String[] { target, args }); - } catch (SeleniumException e) { - handleException(e, command, target, args); - throw e; - } - return retval; - } + return retval; + } - public String getFlexSelectedItemAtIndex(String target, String args) throws Exception { return executeCommand("getFlexSelectedItemAtIndex", target, args).replace("OK,", ""); } - public String getFlexSelectedItemAtIndex(String target) throws Exception { return executeCommand("getFlexSelectedItemAtIndex", target, "").replace("OK,", ""); } - public String getFlexNumSelectedItems(String target, String args) throws Exception { return executeCommand("getFlexNumSelectedItems", target, args).replace("OK,", ""); } - public String getFlexNumSelectedItems(String target) throws Exception { return executeCommand("getFlexNumSelectedItems", target, "").replace("OK,", ""); } - public String getFlexVisible(String target, String args) throws Exception { return executeCommand("getFlexVisible", target, args).replace("OK,", ""); } - public String getFlexVisible(String target) throws Exception { return executeCommand("getFlexVisible", target, "").replace("OK,", ""); } - public String getFlexTextPresent(String target, String args) throws Exception { return executeCommand("getFlexTextPresent", target, args).replace("OK,", ""); } - public String getFlexTextPresent(String target) throws Exception { return executeCommand("getFlexTextPresent", target, "").replace("OK,", ""); } - public String getFlexText(String target, String args) throws Exception { return executeCommand("getFlexText", target, args).replace("OK,", ""); } - public String getFlexText(String target) throws Exception { return executeCommand("getFlexText", target, "").replace("OK,", ""); } - public String getFlexStepper(String target, String args) throws Exception { return executeCommand("getFlexStepper", target, args).replace("OK,", ""); } - public String getFlexStepper(String target) throws Exception { return executeCommand("getFlexStepper", target, "").replace("OK,", ""); } - public String getFlexSelectionIndex(String target, String args) throws Exception { return executeCommand("getFlexSelectionIndex", target, args).replace("OK,", ""); } - public String getFlexSelectionIndex(String target) throws Exception { return executeCommand("getFlexSelectionIndex", target, "").replace("OK,", ""); } - public String getFlexSelection(String target, String args) throws Exception { return executeCommand("getFlexSelection", target, args).replace("OK,", ""); } - public String getFlexSelection(String target) throws Exception { return executeCommand("getFlexSelection", target, "").replace("OK,", ""); } - public String getFlexRadioButton(String target, String args) throws Exception { return executeCommand("getFlexRadioButton", target, args).replace("OK,", ""); } - public String getFlexRadioButton(String target) throws Exception { return executeCommand("getFlexRadioButton", target, "").replace("OK,", ""); } - public String getFlexProperty(String target, String args) throws Exception { return executeCommand("getFlexProperty", target, args).replace("OK,", ""); } - public String getFlexProperty(String target) throws Exception { return executeCommand("getFlexProperty", target, "").replace("OK,", ""); } - public String getFlexParseInt(String target, String args) throws Exception { return executeCommand("getFlexParseInt", target, args).replace("OK,", ""); } - public String getFlexParseInt(String target) throws Exception { return executeCommand("getFlexParseInt", target, "").replace("OK,", ""); } - public String getFlexNumeric(String target, String args) throws Exception { return executeCommand("getFlexNumeric", target, args).replace("OK,", ""); } - public String getFlexNumeric(String target) throws Exception { return executeCommand("getFlexNumeric", target, "").replace("OK,", ""); } - public String getFlexGlobalPosition(String target, String args) throws Exception { return executeCommand("getFlexGlobalPosition", target, args).replace("OK,", ""); } - public String getFlexGlobalPosition(String target) throws Exception { return executeCommand("getFlexGlobalPosition", target, "").replace("OK,", ""); } - public String getFlexExists(String target, String args) throws Exception { return executeCommand("getFlexExists", target, args).replace("OK,", ""); } - public String getFlexExists(String target) throws Exception { return this.commandProcessor.doCommand("getFlexExists", new String[] { target, }); } - public String getFlexErrorString(String target, String args) throws Exception { return executeCommand("getFlexErrorString", target, args).replace("OK,", ""); } - public String getFlexErrorString(String target) throws Exception { return executeCommand("getFlexErrorString", target, "").replace("OK,", ""); } - public String getFlexEnabled(String target, String args) throws Exception { return executeCommand("getFlexEnabled", target, args).replace("OK,", ""); } - public String getFlexEnabled(String target) throws Exception { return executeCommand("getFlexEnabled", target, "").replace("OK,", ""); } - public String getFlexDate(String target, String args) throws Exception { return executeCommand("getFlexDate", target, args).replace("OK,", ""); } - public String getFlexDate(String target) throws Exception { return executeCommand("getFlexDate", target, "").replace("OK,", ""); } - public String getFlexDataGridUIComponentLabel(String target, String args) throws Exception { return executeCommand("getFlexDataGridUIComponentLabel", target, args).replace("OK,", ""); } - public String getFlexDataGridUIComponentLabel(String target) throws Exception { return executeCommand("getFlexDataGridUIComponentLabel", target, "").replace("OK,", ""); } - public String getFlexDataGridRowIndexForFieldValue(String target, String args) throws Exception { return executeCommand("getFlexDataGridRowIndexForFieldValue", target, args).replace("OK,", ""); } - public String getFlexDataGridRowIndexForFieldValue(String target) throws Exception { return executeCommand("getFlexDataGridRowIndexForFieldValue", target, "").replace("OK,", ""); } - public String getFlexDataGridRowCount(String target, String args) throws Exception { return executeCommand("getFlexDataGridRowCount", target, args).replace("OK,", ""); } - public String getFlexDataGridRowCount(String target) throws Exception { return executeCommand("getFlexDataGridRowCount", target, "").replace("OK,", ""); } - public String getFlexDataGridFieldValueForGridRow(String target, String args) throws Exception { return executeCommand("getFlexDataGridFieldValueForGridRow", target, args).replace("OK,", ""); } - public String getFlexDataGridFieldValueForGridRow(String target) throws Exception { return executeCommand("getFlexDataGridFieldValueForGridRow", target, "").replace("OK,", ""); } - public String getFlexDataGridCellText(String target, String args) throws Exception { return executeCommand("getFlexDataGridCellText", target, args).replace("OK,", ""); } - public String getFlexDataGridCellText(String target) throws Exception { return executeCommand("getFlexDataGridCellText", target, "").replace("OK,", ""); } - public String getFlexDataGridCell(String target, String args) throws Exception { return executeCommand("getFlexDataGridCell", target, args).replace("OK,", ""); } - public String getFlexDataGridCell(String target) throws Exception { return executeCommand("getFlexDataGridCell", target, "").replace("OK,", ""); } - public String getFlexComponentInfo(String target, String args) throws Exception { return executeCommand("getFlexComponentInfo", target, args).replace("OK,", ""); } - public String getFlexComponentInfo(String target) throws Exception { return executeCommand("getFlexComponentInfo", target, "").replace("OK,", ""); } - public String getFlexComboContainsLabel(String target, String args) throws Exception { return executeCommand("getFlexComboContainsLabel", target, args).replace("OK,", ""); } - public String getFlexComboContainsLabel(String target) throws Exception { return executeCommand("getFlexComboContainsLabel", target, "").replace("OK,", ""); } - public String getFlexCheckBoxChecked(String target, String args) throws Exception { return executeCommand("getFlexCheckBoxChecked", target, args).replace("OK,", ""); } - public String getFlexCheckBoxChecked(String target) throws Exception { return executeCommand("getFlexCheckBoxChecked", target, "").replace("OK,", ""); } - public String getFlexAlertTextPresent(String target, String args) throws Exception { return executeCommand("getFlexAlertTextPresent", target, args).replace("OK,", ""); } - public String getFlexAlertTextPresent(String target) throws Exception { return executeCommand("getFlexAlertTextPresent", target, "").replace("OK,", ""); } - public String getFlexAlertText(String target, String args) throws Exception { return executeCommand("getFlexAlertText", target, args).replace("OK,", ""); } - public String getFlexAlertText(String target) throws Exception { return executeCommand("getFlexAlertText", target, "").replace("OK,", ""); } - public String getFlexAlertPresent(String target, String args) throws Exception { return executeCommand("getFlexAlertPresent", target, args).replace("OK,", ""); } - public String getFlexAlertPresent(String target) throws Exception { return executeCommand("getFlexAlertPresent", target, "").replace("OK,", ""); } - public String getFlexASProperty(String target, String args) throws Exception { return executeCommand("getFlexASProperty", target, args).replace("OK,", ""); } - public String getFlexASProperty(String target) throws Exception { return executeCommand("getFlexASProperty", target, "").replace("OK,", ""); } - public String getDataGridUIComponentLabel(String target, String args) throws Exception { return executeCommand("getDataGridUIComponentLabel", target, args).replace("OK,", ""); } - public String getDataGridUIComponentLabel(String target) throws Exception { return executeCommand("getDataGridUIComponentLabel", target, "").replace("OK,", ""); } - public String getDataGridCellText(String target, String args) throws Exception { return executeCommand("getDataGridCellText", target, args).replace("OK,", ""); } - public String getDataGridCellText(String target) throws Exception { return executeCommand("getDataGridCellText", target, "").replace("OK,", ""); } - public void doRefreshIDToolTips(String target, String args) throws Exception { executeCommand("doRefreshIDToolTips", target, args); } - public void doRefreshIDToolTips(String target) throws Exception { executeCommand("doRefreshIDToolTips", target, ""); } - public void flexWaitForElementVisible(String target, String args) throws Exception { executeCommand("flexWaitForElementVisible", target, args); } - public void flexWaitForElementVisible(String target) throws Exception { executeCommand("flexWaitForElementVisible", target, ""); } - public void flexWaitForElement(String target, String args) throws Exception { executeCommand("flexWaitForElement", target, args); } - public void flexWaitForElement(String target) throws Exception { executeCommand("flexWaitForElement", target, ""); } - public void flexTypeAppend(String target, String args) throws Exception { executeCommand("flexTypeAppend", target, args); } - public void flexTypeAppend(String target) throws Exception { executeCommand("flexTypeAppend", target, ""); } - public void flexType(String target, String args) throws Exception { executeCommand("flexType", target, args); } - public void flexType(String target) throws Exception { executeCommand("flexType", target, ""); } - public void flexStepper(String target, String args) throws Exception { executeCommand("flexStepper", target, args); } - public void flexStepper(String target) throws Exception { executeCommand("flexStepper", target, ""); } - public void flexSetFocus(String target, String args) throws Exception { executeCommand("flexSetFocus", target, args); } - public void flexSetFocus(String target) throws Exception { executeCommand("flexSetFocus", target, ""); } - public void flexSetDataGridCell(String target, String args) throws Exception { executeCommand("flexSetDataGridCell", target, args); } - public void flexSetDataGridCell(String target) throws Exception { executeCommand("flexSetDataGridCell", target, ""); } - public void flexSelectMatchingOnField(String target, String args) throws Exception { executeCommand("flexSelectMatchingOnField", target, args); } - public void flexSelectMatchingOnField(String target) throws Exception { executeCommand("flexSelectMatchingOnField", target, ""); } - public void flexSelectIndex(String target, String args) throws Exception { executeCommand("flexSelectIndex", target, args); } - public void flexSelectIndex(String target) throws Exception { executeCommand("flexSelectIndex", target, ""); } - public void flexSelectComboByLabel(String target, String args) throws Exception { executeCommand("flexSelectComboByLabel", target, args); } - public void flexSelectComboByLabel(String target) throws Exception { executeCommand("flexSelectComboByLabel", target, ""); } - public void flexSelect(String target, String args) throws Exception { executeCommand("flexSelect", target, args); } - public void flexSelect(String target) throws Exception { executeCommand("flexSelect", target, ""); } - public void flexRefreshIDToolTips(String target, String args) throws Exception { executeCommand("flexRefreshIDToolTips", target, args); } - public void flexRefreshIDToolTips(String target) throws Exception { executeCommand("flexRefreshIDToolTips", target, ""); } - public void flexRadioButton(String target, String args) throws Exception { executeCommand("flexRadioButton", target, args); } - public void flexRadioButton(String target) throws Exception { executeCommand("flexRadioButton", target, ""); } - public void flexProperty(String target, String args) throws Exception { executeCommand("flexProperty", target, args); } - public void flexProperty(String target) throws Exception { executeCommand("flexProperty", target, ""); } - public void flexMouseUp(String target, String args) throws Exception { executeCommand("flexMouseUp", target, args); } - public void flexMouseUp(String target) throws Exception { executeCommand("flexMouseUp", target, ""); } - public void flexMouseRollOver(String target, String args) throws Exception { executeCommand("flexMouseRollOver", target, args); } - public void flexMouseRollOver(String target) throws Exception { executeCommand("flexMouseRollOver", target, ""); } - public void flexMouseRollOut(String target, String args) throws Exception { executeCommand("flexMouseRollOut", target, args); } - public void flexMouseRollOut(String target) throws Exception { executeCommand("flexMouseRollOut", target, ""); } - public void flexMouseOver(String target, String args) throws Exception { executeCommand("flexMouseOver", target, args); } - public void flexMouseOver(String target) throws Exception { executeCommand("flexMouseOver", target, ""); } - public void flexMouseMove(String target, String args) throws Exception { executeCommand("flexMouseMove", target, args); } - public void flexMouseMove(String target) throws Exception { executeCommand("flexMouseMove", target, ""); } - public void flexMouseDown(String target, String args) throws Exception { executeCommand("flexMouseDown", target, args); } - public void flexMouseDown(String target) throws Exception { executeCommand("flexMouseDown", target, ""); } - public void flexDragTo(String target, String args) throws Exception { executeCommand("flexDragTo", target, args); } - public void flexDragTo(String target) throws Exception { executeCommand("flexDragTo", target, ""); } - public void flexDoubleClick(String target, String args) throws Exception { executeCommand("flexDoubleClick", target, args); } - public void flexDoubleClick(String target) throws Exception { executeCommand("flexDoubleClick", target, ""); } - public void flexDate(String target, String args) throws Exception { executeCommand("flexDate", target, args); } - public void flexDate(String target) throws Exception { executeCommand("flexDate", target, ""); } - public void flexClickMenuBarUIComponent(String target, String args) throws Exception { executeCommand("flexClickMenuBarUIComponent", target, args); } - public void flexClickMenuBarUIComponent(String target) throws Exception { executeCommand("flexClickMenuBarUIComponent", target, ""); } - public void flexClickDataGridUIComponent(String target, String args) throws Exception { executeCommand("flexClickDataGridUIComponent", target, args); } - public void flexClickDataGridUIComponent(String target) throws Exception { executeCommand("flexClickDataGridUIComponent", target, ""); } - public void flexClickDataGridItem(String target, String args) throws Exception { executeCommand("flexClickDataGridItem", target, args); } - public void flexClickDataGridItem(String target) throws Exception { executeCommand("flexClickDataGridItem", target, ""); } - public void flexClick(String target, String args) throws Exception { executeCommand("flexClick", target, args); } - public void flexClick(String target) throws Exception { executeCommand("flexClick", target, ""); } - public void flexCheckBox(String target, String args) throws Exception { executeCommand("flexCheckBox", target, args); } - public void flexCheckBox(String target) throws Exception { executeCommand("flexCheckBox", target, ""); } - public void flexAlertResponse(String target, String args) throws Exception { executeCommand("flexAlertResponse", target, args); } - public void flexAlertResponse(String target) throws Exception { executeCommand("flexAlertResponse", target, ""); } - public void flexAddSelectMatchingOnField(String target, String args) throws Exception { executeCommand("flexAddSelectMatchingOnField", target, args); } - public void flexAddSelectMatchingOnField(String target) throws Exception { executeCommand("flexAddSelectMatchingOnField", target, ""); } - public void flexAddSelectIndex(String target, String args) throws Exception { executeCommand("flexAddSelectIndex", target, args); } - public void flexAddSelectIndex(String target) throws Exception { executeCommand("flexAddSelectIndex", target, ""); } + public String getFlexSelectedItemAtIndex(String target, String args) throws Exception { return executeCommand("getFlexSelectedItemAtIndex", target, args).replace("OK,", ""); } + public String getFlexSelectedItemAtIndex(String target) throws Exception { return executeCommand("getFlexSelectedItemAtIndex", target, "").replace("OK,", ""); } + public String getFlexNumSelectedItems(String target, String args) throws Exception { return executeCommand("getFlexNumSelectedItems", target, args).replace("OK,", ""); } + public String getFlexNumSelectedItems(String target) throws Exception { return executeCommand("getFlexNumSelectedItems", target, "").replace("OK,", ""); } + public String getFlexVisible(String target, String args) throws Exception { return executeCommand("getFlexVisible", target, args).replace("OK,", ""); } + public String getFlexVisible(String target) throws Exception { return executeCommand("getFlexVisible", target, "").replace("OK,", ""); } + public String getFlexTextPresent(String target, String args) throws Exception { return executeCommand("getFlexTextPresent", target, args).replace("OK,", ""); } + public String getFlexTextPresent(String target) throws Exception { return executeCommand("getFlexTextPresent", target, "").replace("OK,", ""); } + public String getFlexText(String target, String args) throws Exception { return executeCommand("getFlexText", target, args).replace("OK,", ""); } + public String getFlexText(String target) throws Exception { return executeCommand("getFlexText", target, "").replace("OK,", ""); } + public String getFlexStepper(String target, String args) throws Exception { return executeCommand("getFlexStepper", target, args).replace("OK,", ""); } + public String getFlexStepper(String target) throws Exception { return executeCommand("getFlexStepper", target, "").replace("OK,", ""); } + public String getFlexSelectionIndex(String target, String args) throws Exception { return executeCommand("getFlexSelectionIndex", target, args).replace("OK,", ""); } + public String getFlexSelectionIndex(String target) throws Exception { return executeCommand("getFlexSelectionIndex", target, "").replace("OK,", ""); } + public String getFlexSelection(String target, String args) throws Exception { return executeCommand("getFlexSelection", target, args).replace("OK,", ""); } + public String getFlexSelection(String target) throws Exception { return executeCommand("getFlexSelection", target, "").replace("OK,", ""); } + public String getFlexRadioButton(String target, String args) throws Exception { return executeCommand("getFlexRadioButton", target, args).replace("OK,", ""); } + public String getFlexRadioButton(String target) throws Exception { return executeCommand("getFlexRadioButton", target, "").replace("OK,", ""); } + public String getFlexProperty(String target, String args) throws Exception { return executeCommand("getFlexProperty", target, args).replace("OK,", ""); } + public String getFlexProperty(String target) throws Exception { return executeCommand("getFlexProperty", target, "").replace("OK,", ""); } + public String getFlexParseInt(String target, String args) throws Exception { return executeCommand("getFlexParseInt", target, args).replace("OK,", ""); } + public String getFlexParseInt(String target) throws Exception { return executeCommand("getFlexParseInt", target, "").replace("OK,", ""); } + public String getFlexNumeric(String target, String args) throws Exception { return executeCommand("getFlexNumeric", target, args).replace("OK,", ""); } + public String getFlexNumeric(String target) throws Exception { return executeCommand("getFlexNumeric", target, "").replace("OK,", ""); } + public String getFlexGlobalPosition(String target, String args) throws Exception { return executeCommand("getFlexGlobalPosition", target, args).replace("OK,", ""); } + public String getFlexGlobalPosition(String target) throws Exception { return executeCommand("getFlexGlobalPosition", target, "").replace("OK,", ""); } + public String getFlexExists(String target, String args) throws Exception { return executeCommand("getFlexExists", target, args).replace("OK,", ""); } + public String getFlexExists(String target) throws Exception { return this.commandProcessor.doCommand("getFlexExists", new String[] { target, }); } + public String getFlexErrorString(String target, String args) throws Exception { return executeCommand("getFlexErrorString", target, args).replace("OK,", ""); } + public String getFlexErrorString(String target) throws Exception { return executeCommand("getFlexErrorString", target, "").replace("OK,", ""); } + public String getFlexEnabled(String target, String args) throws Exception { return executeCommand("getFlexEnabled", target, args).replace("OK,", ""); } + public String getFlexEnabled(String target) throws Exception { return executeCommand("getFlexEnabled", target, "").replace("OK,", ""); } + public String getFlexDate(String target, String args) throws Exception { return executeCommand("getFlexDate", target, args).replace("OK,", ""); } + public String getFlexDate(String target) throws Exception { return executeCommand("getFlexDate", target, "").replace("OK,", ""); } + public String getFlexDataGridUIComponentLabel(String target, String args) throws Exception { return executeCommand("getFlexDataGridUIComponentLabel", target, args).replace("OK,", ""); } + public String getFlexDataGridUIComponentLabel(String target) throws Exception { return executeCommand("getFlexDataGridUIComponentLabel", target, "").replace("OK,", ""); } + public String getFlexDataGridRowIndexForFieldValue(String target, String args) throws Exception { return executeCommand("getFlexDataGridRowIndexForFieldValue", target, args).replace("OK,", ""); } + public String getFlexDataGridRowIndexForFieldValue(String target) throws Exception { return executeCommand("getFlexDataGridRowIndexForFieldValue", target, "").replace("OK,", ""); } + public String getFlexDataGridRowCount(String target, String args) throws Exception { return executeCommand("getFlexDataGridRowCount", target, args).replace("OK,", ""); } + public String getFlexDataGridRowCount(String target) throws Exception { return executeCommand("getFlexDataGridRowCount", target, "").replace("OK,", ""); } + public String getFlexDataGridFieldValueForGridRow(String target, String args) throws Exception { return executeCommand("getFlexDataGridFieldValueForGridRow", target, args).replace("OK,", ""); } + public String getFlexDataGridFieldValueForGridRow(String target) throws Exception { return executeCommand("getFlexDataGridFieldValueForGridRow", target, "").replace("OK,", ""); } + public String getFlexDataGridCellText(String target, String args) throws Exception { return executeCommand("getFlexDataGridCellText", target, args).replace("OK,", ""); } + public String getFlexDataGridCellText(String target) throws Exception { return executeCommand("getFlexDataGridCellText", target, "").replace("OK,", ""); } + public String getFlexDataGridCell(String target, String args) throws Exception { return executeCommand("getFlexDataGridCell", target, args).replace("OK,", ""); } + public String getFlexDataGridCell(String target) throws Exception { return executeCommand("getFlexDataGridCell", target, "").replace("OK,", ""); } + public String getFlexComponentInfo(String target, String args) throws Exception { return executeCommand("getFlexComponentInfo", target, args).replace("OK,", ""); } + public String getFlexComponentInfo(String target) throws Exception { return executeCommand("getFlexComponentInfo", target, "").replace("OK,", ""); } + public String getFlexComboContainsLabel(String target, String args) throws Exception { return executeCommand("getFlexComboContainsLabel", target, args).replace("OK,", ""); } + public String getFlexComboContainsLabel(String target) throws Exception { return executeCommand("getFlexComboContainsLabel", target, "").replace("OK,", ""); } + public String getFlexCheckBoxChecked(String target, String args) throws Exception { return executeCommand("getFlexCheckBoxChecked", target, args).replace("OK,", ""); } + public String getFlexCheckBoxChecked(String target) throws Exception { return executeCommand("getFlexCheckBoxChecked", target, "").replace("OK,", ""); } + public String getFlexAlertTextPresent(String target, String args) throws Exception { return executeCommand("getFlexAlertTextPresent", target, args).replace("OK,", ""); } + public String getFlexAlertTextPresent(String target) throws Exception { return executeCommand("getFlexAlertTextPresent", target, "").replace("OK,", ""); } + public String getFlexAlertText(String target, String args) throws Exception { return executeCommand("getFlexAlertText", target, args).replace("OK,", ""); } + public String getFlexAlertText(String target) throws Exception { return executeCommand("getFlexAlertText", target, "").replace("OK,", ""); } + public String getFlexAlertPresent(String target, String args) throws Exception { return executeCommand("getFlexAlertPresent", target, args).replace("OK,", ""); } + public String getFlexAlertPresent(String target) throws Exception { return executeCommand("getFlexAlertPresent", target, "").replace("OK,", ""); } + public String getFlexASProperty(String target, String args) throws Exception { return executeCommand("getFlexASProperty", target, args).replace("OK,", ""); } + public String getFlexASProperty(String target) throws Exception { return executeCommand("getFlexASProperty", target, "").replace("OK,", ""); } + public String getDataGridUIComponentLabel(String target, String args) throws Exception { return executeCommand("getDataGridUIComponentLabel", target, args).replace("OK,", ""); } + public String getDataGridUIComponentLabel(String target) throws Exception { return executeCommand("getDataGridUIComponentLabel", target, "").replace("OK,", ""); } + public String getDataGridCellText(String target, String args) throws Exception { return executeCommand("getDataGridCellText", target, args).replace("OK,", ""); } + public String getDataGridCellText(String target) throws Exception { return executeCommand("getDataGridCellText", target, "").replace("OK,", ""); } + public void doRefreshIDToolTips(String target, String args) throws Exception { executeCommand("doRefreshIDToolTips", target, args); } + public void doRefreshIDToolTips(String target) throws Exception { executeCommand("doRefreshIDToolTips", target, ""); } + public void flexWaitForElementVisible(String target, String args) throws Exception { executeCommand("flexWaitForElementVisible", target, args); } + public void flexWaitForElementVisible(String target) throws Exception { executeCommand("flexWaitForElementVisible", target, ""); } + public void flexWaitForElement(String target, String args) throws Exception { executeCommand("flexWaitForElement", target, args); } + public void flexWaitForElement(String target) throws Exception { executeCommand("flexWaitForElement", target, ""); } + public void flexTypeAppend(String target, String args) throws Exception { executeCommand("flexTypeAppend", target, args); } + public void flexTypeAppend(String target) throws Exception { executeCommand("flexTypeAppend", target, ""); } + public void flexType(String target, String args) throws Exception { executeCommand("flexType", target, args); } + public void flexType(String target) throws Exception { executeCommand("flexType", target, ""); } + public void flexStepper(String target, String args) throws Exception { executeCommand("flexStepper", target, args); } + public void flexStepper(String target) throws Exception { executeCommand("flexStepper", target, ""); } + public void flexSetFocus(String target, String args) throws Exception { executeCommand("flexSetFocus", target, args); } + public void flexSetFocus(String target) throws Exception { executeCommand("flexSetFocus", target, ""); } + public void flexSetDataGridCell(String target, String args) throws Exception { executeCommand("flexSetDataGridCell", target, args); } + public void flexSetDataGridCell(String target) throws Exception { executeCommand("flexSetDataGridCell", target, ""); } + public void flexSelectMatchingOnField(String target, String args) throws Exception { executeCommand("flexSelectMatchingOnField", target, args); } + public void flexSelectMatchingOnField(String target) throws Exception { executeCommand("flexSelectMatchingOnField", target, ""); } + public void flexSelectIndex(String target, String args) throws Exception { executeCommand("flexSelectIndex", target, args); } + public void flexSelectIndex(String target) throws Exception { executeCommand("flexSelectIndex", target, ""); } + public void flexSelectComboByLabel(String target, String args) throws Exception { executeCommand("flexSelectComboByLabel", target, args); } + public void flexSelectComboByLabel(String target) throws Exception { executeCommand("flexSelectComboByLabel", target, ""); } + public void flexSelect(String target, String args) throws Exception { executeCommand("flexSelect", target, args); } + public void flexSelect(String target) throws Exception { executeCommand("flexSelect", target, ""); } + public void flexRefreshIDToolTips(String target, String args) throws Exception { executeCommand("flexRefreshIDToolTips", target, args); } + public void flexRefreshIDToolTips(String target) throws Exception { executeCommand("flexRefreshIDToolTips", target, ""); } + public void flexRadioButton(String target, String args) throws Exception { executeCommand("flexRadioButton", target, args); } + public void flexRadioButton(String target) throws Exception { executeCommand("flexRadioButton", target, ""); } + public void flexProperty(String target, String args) throws Exception { executeCommand("flexProperty", target, args); } + public void flexProperty(String target) throws Exception { executeCommand("flexProperty", target, ""); } + public void flexMouseUp(String target, String args) throws Exception { executeCommand("flexMouseUp", target, args); } + public void flexMouseUp(String target) throws Exception { executeCommand("flexMouseUp", target, ""); } + public void flexMouseRollOver(String target, String args) throws Exception { executeCommand("flexMouseRollOver", target, args); } + public void flexMouseRollOver(String target) throws Exception { executeCommand("flexMouseRollOver", target, ""); } + public void flexMouseRollOut(String target, String args) throws Exception { executeCommand("flexMouseRollOut", target, args); } + public void flexMouseRollOut(String target) throws Exception { executeCommand("flexMouseRollOut", target, ""); } + public void flexMouseOver(String target, String args) throws Exception { executeCommand("flexMouseOver", target, args); } + public void flexMouseOver(String target) throws Exception { executeCommand("flexMouseOver", target, ""); } + public void flexMouseMove(String target, String args) throws Exception { executeCommand("flexMouseMove", target, args); } + public void flexMouseMove(String target) throws Exception { executeCommand("flexMouseMove", target, ""); } + public void flexMouseDown(String target, String args) throws Exception { executeCommand("flexMouseDown", target, args); } + public void flexMouseDown(String target) throws Exception { executeCommand("flexMouseDown", target, ""); } + public void flexDragTo(String target, String args) throws Exception { executeCommand("flexDragTo", target, args); } + public void flexDragTo(String target) throws Exception { executeCommand("flexDragTo", target, ""); } + public void flexDoubleClick(String target, String args) throws Exception { executeCommand("flexDoubleClick", target, args); } + public void flexDoubleClick(String target) throws Exception { executeCommand("flexDoubleClick", target, ""); } + public void flexDate(String target, String args) throws Exception { executeCommand("flexDate", target, args); } + public void flexDate(String target) throws Exception { executeCommand("flexDate", target, ""); } + public void flexClickMenuBarUIComponent(String target, String args) throws Exception { executeCommand("flexClickMenuBarUIComponent", target, args); } + public void flexClickMenuBarUIComponent(String target) throws Exception { executeCommand("flexClickMenuBarUIComponent", target, ""); } + public void flexClickDataGridUIComponent(String target, String args) throws Exception { executeCommand("flexClickDataGridUIComponent", target, args); } + public void flexClickDataGridUIComponent(String target) throws Exception { executeCommand("flexClickDataGridUIComponent", target, ""); } + public void flexClickDataGridItem(String target, String args) throws Exception { executeCommand("flexClickDataGridItem", target, args); } + public void flexClickDataGridItem(String target) throws Exception { executeCommand("flexClickDataGridItem", target, ""); } + public void flexClick(String target, String args) throws Exception { executeCommand("flexClick", target, args); } + public void flexClick(String target) throws Exception { executeCommand("flexClick", target, ""); } + public void flexCheckBox(String target, String args) throws Exception { executeCommand("flexCheckBox", target, args); } + public void flexCheckBox(String target) throws Exception { executeCommand("flexCheckBox", target, ""); } + public void flexAlertResponse(String target, String args) throws Exception { executeCommand("flexAlertResponse", target, args); } + public void flexAlertResponse(String target) throws Exception { executeCommand("flexAlertResponse", target, ""); } + public void flexAddSelectMatchingOnField(String target, String args) throws Exception { executeCommand("flexAddSelectMatchingOnField", target, args); } + public void flexAddSelectMatchingOnField(String target) throws Exception { executeCommand("flexAddSelectMatchingOnField", target, ""); } + public void flexAddSelectIndex(String target, String args) throws Exception { executeCommand("flexAddSelectIndex", target, args); } + public void flexAddSelectIndex(String target) throws Exception { executeCommand("flexAddSelectIndex", target, ""); } } \ No newline at end of file Index: lams_common/src/java/org/lamsfoundation/lams/selenium/SeleniumConstants.java =================================================================== RCS file: /usr/local/cvsroot/lams_common/src/java/org/lamsfoundation/lams/selenium/Attic/SeleniumConstants.java,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lams_common/src/java/org/lamsfoundation/lams/selenium/SeleniumConstants.java 4 Aug 2009 12:12:24 -0000 1.1 @@ -0,0 +1,53 @@ +/**************************************************************** + * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org) + * ============================================================= + * License Information: http://lamsfoundation.org/licensing/lams/2.0/ + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2.0 + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 * USA + * + * http://www.gnu.org/licenses/gpl.txt + * **************************************************************** + */ + +/* $Id: SeleniumConstants.java,v 1.1 2009/08/04 12:12:24 andreyb Exp $ */ +package org.lamsfoundation.lams.selenium; + +public class SeleniumConstants { + + /** the host name on which the Selenium Server resides */ + public static final String SERVER_HOST = "localhost"; + /** the port on which the Selenium Server is listening */ + public static final int SERVER_PORT = 5555; + + public static final String BROWSER_INTERNET_EXPLORER = "*iexplore"; + public static final String BROWSER_FIREFOX = "*firefox"; + /** + * the command string used to launch the browser, e.g. "*firefox", "*iexplore" or + * "c:\\program files\\internet explorer\\iexplore.exe" + */ + public static final String BROWSER = BROWSER_INTERNET_EXPLORER; + public static final String WEB_APP_HOST = "http://127.0.0.1:8080"; + /** + * The starting URL including just a domain name. + * We'll start the browser pointing at the Selenium resources on this URL. + */ + public static final String WEB_APP_DIR = "/lams/"; + + //User details + public static final String USER_LOGIN = "mmm"; + public static final String USER_PASSWORD = "mmm"; + + //Selenium constants + public static final String LAMS_MAIN_WINDOW_NAME = "selenium_main_app_window"; +} Index: lams_common/src/java/org/lamsfoundation/lams/selenium/SeleniumException.java =================================================================== RCS file: /usr/local/cvsroot/lams_common/src/java/org/lamsfoundation/lams/selenium/Attic/SeleniumException.java,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lams_common/src/java/org/lamsfoundation/lams/selenium/SeleniumException.java 4 Aug 2009 12:12:25 -0000 1.1 @@ -0,0 +1,68 @@ +/**************************************************************** + * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org) + * ============================================================= + * License Information: http://lamsfoundation.org/licensing/lams/2.0/ + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2.0 + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 * USA + * + * http://www.gnu.org/licenses/gpl.txt + * **************************************************************** + */ + +/* $Id: SeleniumException.java,v 1.1 2009/08/04 12:12:25 andreyb Exp $ */ +package org.lamsfoundation.lams.selenium; + +/** + * + * + * @author Andrey Balan + */ +public class SeleniumException extends RuntimeException { + + + private static final long serialVersionUID = -5273169461546526467L; + + /** + * Constructor for TestFrameworkException. + */ + public SeleniumException() { + super(); + } + + /** + * Constructor for TestFrameworkException. + * @param message + */ + public SeleniumException(String message) { + super(message); + } + + /** + * Constructor for TestFrameworkException. + * @param message + * @param cause + */ + public SeleniumException(String message, Throwable cause) { + super(message, cause); + } + + /** + * Constructor for TestFrameworkException. + * @param cause + */ + public SeleniumException(Throwable cause) { + super(cause); + } + +} Fisheye: Tag 1.2 refers to a dead (removed) revision in file `lams_common/src/java/org/lamsfoundation/lams/selenium/TestFrameworkConstants.java'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.2 refers to a dead (removed) revision in file `lams_common/src/java/org/lamsfoundation/lams/selenium/TestFrameworkException.java'. Fisheye: No comparison available. Pass `N' to diff?