This is an automated email from the ASF dual-hosted git repository.

solomax pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openmeetings.git


The following commit(s) were added to refs/heads/master by this push:
     new 3dba84d  [OPENMEETINGS-816] selenium is dropped
3dba84d is described below

commit 3dba84db3eba1235c2385996c8137f0a21f54472
Author: Maxim Solodovnik <[email protected]>
AuthorDate: Fri Feb 28 15:05:28 2020 +0700

    [OPENMEETINGS-816] selenium is dropped
---
 openmeetings-web/pom.xml                           |   8 +-
 .../apache/openmeetings/h2/PrepareSystemFiles.java |  65 ------
 .../test/selenium/AbstractTestDefaults.java        | 229 ---------------------
 .../openmeetings/test/selenium/SeleniumUtils.java  | 227 --------------------
 .../openmeetings/test/selenium/TestSignUp.java     | 128 ------------
 pom.xml                                            |  21 --
 6 files changed, 2 insertions(+), 676 deletions(-)

diff --git a/openmeetings-web/pom.xml b/openmeetings-web/pom.xml
index 709e72a..15648e0 100644
--- a/openmeetings-web/pom.xml
+++ b/openmeetings-web/pom.xml
@@ -67,7 +67,7 @@
                                                
<artifactId>maven-surefire-plugin</artifactId>
                                                <inherited>true</inherited>
                                                <configuration>
-                                                       
<excludedGroups>org.apache.openmeetings.test.selenium.SeleniumTests,org.apache.openmeetings.test.HeavyTests,org.apache.openmeetings.test.NonJenkinsTests</excludedGroups>
+                                                       
<excludedGroups>org.apache.openmeetings.test.HeavyTests,org.apache.openmeetings.test.NonJenkinsTests</excludedGroups>
                                                </configuration>
                                        </plugin>
                                </plugins>
@@ -515,7 +515,7 @@
                                <inherited>true</inherited>
                                <configuration>
                                        
<workingDirectory>${project.build.directory}</workingDirectory>
-                                       
<excludedGroups>org.apache.openmeetings.test.selenium.SeleniumTests,org.apache.openmeetings.test.HeavyTests</excludedGroups>
+                                       
<excludedGroups>org.apache.openmeetings.test.HeavyTests</excludedGroups>
                                        <systemPropertyVariables>
                                                
<om.home>${project.build.directory}/test-root</om.home>
                                                
<languages.home>${project.build.directory}/test-root/languages</languages.home>
@@ -681,10 +681,6 @@
                </dependency>
                <!-- Test dependencies -->
                <dependency>
-                       <groupId>org.seleniumhq.selenium</groupId>
-                       <artifactId>selenium-java</artifactId>
-               </dependency>
-               <dependency>
                        <groupId>org.apache.openmeetings</groupId>
                        <artifactId>openmeetings-util</artifactId>
                        <version>${project.version}</version>
diff --git 
a/openmeetings-web/src/test/java/org/apache/openmeetings/h2/PrepareSystemFiles.java
 
b/openmeetings-web/src/test/java/org/apache/openmeetings/h2/PrepareSystemFiles.java
deleted file mode 100644
index 0664508..0000000
--- 
a/openmeetings-web/src/test/java/org/apache/openmeetings/h2/PrepareSystemFiles.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License") +  you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.openmeetings.h2;
-
-import java.io.File;
-
-import org.apache.openmeetings.cli.ConnectionPropertiesPatcher;
-import org.apache.openmeetings.util.ConnectionProperties.DbType;
-import org.apache.openmeetings.util.OmFileHelper;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-/**
- * This file is called from command line to patch the h2 configuration
- * during the automated run of Selenium
- *
- * @author swagner
- *
- */
-public class PrepareSystemFiles {
-       private static final Logger log = 
LoggerFactory.getLogger(PrepareSystemFiles.class);
-
-       public static void main(String... args) {
-               try {
-                       OmFileHelper.setOmHome(args[0]);
-
-                       String databaseHomeDirectory = args[1];
-
-                       String persistanceFileToPatch = args[2];
-
-                       File conf = new File(persistanceFileToPatch);
-
-                       if (conf.exists()) {
-                               conf.delete();
-                       }
-
-                       ConnectionPropertiesPatcher.patch(DbType.h2.name()
-                                       , "localhost"
-                                       , "1527"
-                                       , databaseHomeDirectory + "openmeetings"
-                                       , "user"
-                                       , "secret"
-                                       );
-               } catch (Exception err) {
-                       log.error("Error", err);
-               }
-       }
-
-}
diff --git 
a/openmeetings-web/src/test/java/org/apache/openmeetings/test/selenium/AbstractTestDefaults.java
 
b/openmeetings-web/src/test/java/org/apache/openmeetings/test/selenium/AbstractTestDefaults.java
deleted file mode 100644
index 826485a..0000000
--- 
a/openmeetings-web/src/test/java/org/apache/openmeetings/test/selenium/AbstractTestDefaults.java
+++ /dev/null
@@ -1,229 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License") +  you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.openmeetings.test.selenium;
-
-import org.apache.openmeetings.AbstractSpringTest;
-import org.apache.openmeetings.db.dao.label.LabelDao;
-import org.junit.jupiter.api.AfterEach;
-import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.Tag;
-import org.openqa.selenium.Keys;
-import org.openqa.selenium.WebDriver;
-import org.openqa.selenium.WebElement;
-import org.openqa.selenium.firefox.FirefoxDriver;
-import org.openqa.selenium.firefox.FirefoxOptions;
-import org.openqa.selenium.firefox.FirefoxProfile;
-
-import java.util.List;
-
-@Tag("org.apache.openmeetings.test.selenium.SeleniumTests")
-public abstract class AbstractTestDefaults extends AbstractSpringTest {
-       public WebDriver driver = null;
-
-       private String BASE_URL = "http://localhost:5080/openmeetings";;
-       private String username = "swagner";
-       private String userpass = "qweqwe";
-       private String groupName = "seleniumtest";
-       private String email = "[email protected]";
-       private String locale = "en-us";
-
-
-       public String getBASE_URL() {
-               return BASE_URL;
-       }
-
-       public String getUsername() {
-               return username;
-       }
-
-       public String getUserpass() {
-               return userpass;
-       }
-
-       public String getGroupName() {
-               return groupName;
-       }
-
-       public String getEmail() {
-               return email;
-       }
-
-       public Long getLanguageId() {
-               return 1L;
-       }
-
-       public String getLocale() {
-               return locale;
-       }
-
-       // setting this to false can be handy if you run the test from inside
-       // Eclipse, the browser will not shut down after the test so you can 
start
-       // to diagnose the test issue
-       public boolean doTearDownAfterTest = false;
-
-       public String getString(String key) {
-               return LabelDao.getString(key, getLanguageId());
-       }
-
-       /**
-        * Make method overwrite possible to have custom behavior in tests
-        *
-        * @return false if you need not to shut down browser will after the 
test
-        */
-       public boolean getDoTearDownAfterTest() {
-               return doTearDownAfterTest;
-       }
-
-       @BeforeEach
-       public void setUp() {
-               FirefoxProfile profile = new FirefoxProfile();
-               profile.setPreference("intl.accept_languages", getLocale());
-               driver = new FirefoxDriver(new 
FirefoxOptions().setProfile(profile));
-       }
-
-       /**
-        * This test is a basic test to verify the default loader mechanism 
works
-        * it is not intend to be a part of any sub test
-        *
-        * @throws Exception if any error occurs
-        */
-       //@Test
-       public void smokeTest() throws Exception {
-               try {
-                       driver.get(getBASE_URL());
-
-                       testIsInstalledAndDoInstallation();
-
-                       SeleniumUtils.inputText(driver, "login", getUsername());
-                       SeleniumUtils.inputText(driver, "pass", getUserpass());
-
-                       WebElement signInButton = 
SeleniumUtils.findElement(driver,
-                                       "//button[span[contains(text(), 'Sign 
in')]]", true, true);
-                       signInButton.click();
-
-                       SeleniumUtils.elementExists(driver,
-                                       "//h3[contains(text(), 'Help and 
support')]", true);
-               } catch (Exception e) {
-                       
SeleniumUtils.makeScreenShot(this.getClass().getSimpleName(), e,
-                                       driver);
-                       throw e;
-               }
-       }
-
-       /**
-        * Throws exception in case that test fails, so it is important to not 
catch
-        * that exception but really let the test fail!
-        *
-        * @throws Exception if any error occurs
-        */
-       protected void testIsInstalledAndDoInstallation() throws Exception {
-
-               WebElement wicketExtensionsWizardHeaderTitle = SeleniumUtils
-                               .findElement(driver, 
"wicketExtensionsWizardHeaderTitle", false, true);
-               if (wicketExtensionsWizardHeaderTitle == null) {
-                       return;
-               }
-               if (wicketExtensionsWizardHeaderTitle.getText()
-                               .contains("Installation")) {
-                       System.out.println("Do Installation");
-                       doInstallation();
-               }
-
-       }
-
-       private void doInstallation() throws Exception {
-               Thread.sleep(3000L);
-
-               List<WebElement> buttons_next = 
SeleniumUtils.findElements(driver,
-                               "buttons:next", true);
-
-               buttons_next.get(1).sendKeys(Keys.RETURN);
-
-               Thread.sleep(1000L);
-
-               SeleniumUtils.inputText(driver, "view:cfg.username", 
getUsername());
-               SeleniumUtils.inputText(driver, "view:cfg.password", 
getUserpass());
-               SeleniumUtils.inputText(driver, "view:cfg.email", getEmail());
-               SeleniumUtils.inputText(driver, "view:cfg.group", 
getGroupName());
-
-               buttons_next = SeleniumUtils.findElements(driver, 
"buttons:next", true);
-
-               buttons_next.get(1).sendKeys(Keys.RETURN);
-
-               Thread.sleep(1000L);
-
-               buttons_next = SeleniumUtils.findElements(driver, 
"buttons:next", true);
-
-               buttons_next.get(1).sendKeys(Keys.RETURN);
-
-               Thread.sleep(1000L);
-
-               buttons_next = SeleniumUtils.findElements(driver, 
"buttons:next", true);
-
-               buttons_next.get(1).sendKeys(Keys.RETURN);
-
-               Thread.sleep(1000L);
-
-               buttons_next = SeleniumUtils.findElements(driver, 
"buttons:next", true);
-
-               buttons_next.get(1).sendKeys(Keys.RETURN);
-
-               Thread.sleep(2000L);
-
-               List<WebElement> elements = SeleniumUtils.findElements(driver,
-                               "buttons:finish", true);
-
-               elements.get(1).sendKeys(Keys.RETURN);
-
-               long maxMilliSecondsWait = 120000;
-
-               while (maxMilliSecondsWait > 0) {
-
-                       // check if installation is complete by searching for 
the link on
-                       // the success page
-                       WebElement enterApplicationLink = 
SeleniumUtils.findElement(driver,
-                                       "//a[contains(@href,'install')]", 
false, true);
-
-                       if (enterApplicationLink == null) {
-                               System.out
-                                               .println("Installation running 
- wait 3 more seconds and check again");
-
-                               Thread.sleep(3000L);
-                               maxMilliSecondsWait -= 3000;
-                       } else {
-                               maxMilliSecondsWait = 0;
-
-                               enterApplicationLink.click();
-
-                               return;
-                       }
-               }
-
-               throw new Exception("Timeout during installation");
-       }
-
-       @AfterEach
-       public void tearDown() {
-               if (getDoTearDownAfterTest()) {
-                       driver.close();
-                       driver.quit();
-               }
-       }
-
-}
diff --git 
a/openmeetings-web/src/test/java/org/apache/openmeetings/test/selenium/SeleniumUtils.java
 
b/openmeetings-web/src/test/java/org/apache/openmeetings/test/selenium/SeleniumUtils.java
deleted file mode 100644
index 0bc2490..0000000
--- 
a/openmeetings-web/src/test/java/org/apache/openmeetings/test/selenium/SeleniumUtils.java
+++ /dev/null
@@ -1,227 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License") +  you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.openmeetings.test.selenium;
-
-import java.io.File;
-import java.text.DateFormat;
-import java.text.SimpleDateFormat;
-import java.util.Date;
-import java.util.List;
-
-import org.apache.commons.io.FileUtils;
-import org.openqa.selenium.By;
-import org.openqa.selenium.OutputType;
-import org.openqa.selenium.TakesScreenshot;
-import org.openqa.selenium.WebDriver;
-import org.openqa.selenium.WebElement;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-public class SeleniumUtils {
-       private static final Logger log = 
LoggerFactory.getLogger(SeleniumUtils.class);
-       // we need to retry some actions because our web site is dynamic
-       static int numberOfRetries = 10;
-
-       // we need to sleep to make sure Ajax could complete whatever it does
-       static long defaultSleepInterval = 1000;
-
-       public static void inputText(WebDriver driver, String search,
-                       String inputText) throws Exception {
-               WebElement element = SeleniumUtils.findElement(driver, search, 
true, true);
-
-               //clear text before adding input
-               element.clear();
-
-               // Would make send to check if this element is really an input 
text
-               element.sendKeys(inputText);
-       }
-
-       public static void click(WebDriver driver, String search) throws 
Exception {
-               WebElement element = SeleniumUtils.findElement(driver, search, 
true, true);
-               element.click();
-       }
-
-       /**
-        *
-        * @param driver
-        * @param search
-        * @param throwException
-        *            under some circumstance you do't want to exit the test 
here
-        * @return
-        * @throws Exception
-        */
-       public static List<WebElement> findElements(WebDriver driver, String 
search,
-                       boolean throwException) throws Exception {
-               for (int i = 0; i < numberOfRetries; i++) {
-                       List<WebElement> elements = _findElement(driver, 
search);
-                       if (elements != null) {
-                               return elements;
-                       }
-
-                       Thread.sleep(defaultSleepInterval);
-               }
-
-               if (throwException) {
-                       throw new Exception("Could not find element with 
specified path "
-                                       + search);
-               }
-
-               return null;
-       }
-
-       /**
-        *
-        * @param driver
-        * @param search
-        * @param throwException
-        *            under some circumstance you do't want to exit the test 
here
-        * @param onlyReturnVisisbleElement TODO
-        * @return
-        * @throws Exception
-        */
-       public static WebElement findElement(WebDriver driver, String search,
-                       boolean throwException, boolean 
onlyReturnVisisbleElement) throws Exception {
-               for (int i = 0; i < numberOfRetries; i++) {
-                       List<WebElement> elements = _findElement(driver, 
search);
-                       if (elements != null) {
-
-                               if (!onlyReturnVisisbleElement) {
-                                       return elements.get(0);
-                               }
-
-                               for (WebElement element : elements) {
-                                       if (element.isDisplayed()) {
-                                               return element;
-                                       }
-                               }
-
-                       }
-
-                       Thread.sleep(defaultSleepInterval);
-               }
-
-               if (throwException) {
-                       throw new Exception("Could not find element with 
specified path "
-                                       + search);
-               }
-
-               return null;
-       }
-
-       private static By[] _getSearchArray(String search) {
-               //If xpath we have to use it, if xpath is used with 
By.className(...) there will be an exception
-               if (search.startsWith("//")) {
-                       return new By[] { By.xpath(search) };
-               } else {
-                       return new By[] { By.id(search), By.name(search), 
By.className(search),
-                                       By.tagName(search), By.xpath(search) };
-               }
-       }
-
-       private static List<WebElement> _findElement(WebDriver driver, String 
search) {
-               for (By by : _getSearchArray(search)) {
-                       try {
-                               List<WebElement> elements = 
driver.findElements(by);
-                               if (elements != null && elements.size() > 0) {
-                                       return elements;
-                               }
-                       } catch (Exception e) {
-                               // Do not show any warnings
-                       }
-               }
-               return null;
-       }
-
-       public static void elementExists(WebDriver driver, String search,
-                       boolean shouldExist) throws Exception {
-               Thread.sleep(defaultSleepInterval);
-
-               boolean doesExist = !shouldExist;
-
-               for (int i = 0; i < numberOfRetries; i++) {
-                       doesExist = checkExists(driver, search);
-                       if (doesExist == shouldExist) {
-                               break;
-                       }
-
-                       Thread.sleep(defaultSleepInterval);
-               }
-
-               if (doesExist != shouldExist) {
-                       if (shouldExist) {
-                               throw new Exception("Element could not be 
found: " + search);
-                       } else {
-                               throw new Exception("Unexpected Element was 
found: " + search);
-                       }
-               }
-       }
-
-       private static boolean checkExists(WebDriver driver, String search) {
-               for (By by : _getSearchArray(search)) {
-                       try {
-                               List<WebElement> element = 
driver.findElements(by);
-                               if (element.size() > 0) {
-                                       return true;
-                               }
-                       } catch (Exception e) {
-                               // Do not show any warnings
-                       }
-               }
-               return false;
-       }
-
-       public static void makeScreenShot(String testName, Exception e,
-                       WebDriver driver) {
-               try {
-                       DateFormat df = new 
SimpleDateFormat("MM-dd-yyyy_HH-mm-ss");
-                       String fileName = e.getMessage().replace(" ", "_");
-                       fileName = fileName.replaceAll("(\r\n|\n)", "");
-                       fileName = fileName.replaceAll("/", "");
-
-                       if (fileName.length() > 100) {
-                               fileName = fileName.substring(0, 100);
-                       }
-
-                       fileName = fileName + "_" + df.format(new Date()) + 
".png";
-                       File screenShotFile = ((TakesScreenshot) driver)
-                                       .getScreenshotAs(OutputType.FILE);
-
-                       String path = "." + File.separatorChar + "build"
-                                       + File.separatorChar + "screenshots" + 
File.separatorChar
-                                       + testName;
-
-                       File screenshotFolder = new File(path);
-                       if (!screenshotFolder.exists()) {
-                               screenshotFolder.mkdirs();
-                       }
-
-                       System.out.println("screenshot copy from: "
-                                       + screenShotFile.getAbsolutePath());
-                       System.out.println("Length Filename: " + 
fileName.length()
-                                       + " - Writing screenshot to: " + path + 
File.separatorChar
-                                       + fileName);
-
-                       FileUtils.moveFile(screenShotFile, new File(path
-                                       + File.separatorChar + fileName));
-               } catch (Exception err) {
-                       log.error("Error", err);
-               }
-
-       }
-}
\ No newline at end of file
diff --git 
a/openmeetings-web/src/test/java/org/apache/openmeetings/test/selenium/TestSignUp.java
 
b/openmeetings-web/src/test/java/org/apache/openmeetings/test/selenium/TestSignUp.java
deleted file mode 100644
index cd7d2e0..0000000
--- 
a/openmeetings-web/src/test/java/org/apache/openmeetings/test/selenium/TestSignUp.java
+++ /dev/null
@@ -1,128 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License") +  you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.openmeetings.test.selenium;
-
-import java.util.Date;
-
-import org.junit.jupiter.api.Test;
-import org.openqa.selenium.Alert;
-import org.openqa.selenium.WebElement;
-
-import com.googlecode.wicket.jquery.ui.widget.dialog.DialogButtons;
-
-public class TestSignUp extends AbstractTestDefaults {
-       String pass = "pass";
-
-       @Override
-       public boolean getDoTearDownAfterTest() {
-               return false;
-       }
-
-       @Test
-       public void testSignUp() throws Exception {
-               try {
-                       driver.get(getBASE_URL());
-
-                       String currentRandomCounter = "" + ((new 
Date().getTime())/1000);
-                       String userName = "seba" + currentRandomCounter;
-                       String email = "hans." + currentRandomCounter + 
"@openmeetings.apache.org";
-
-                       super.testIsInstalledAndDoInstallation();
-
-                       WebElement signUpButton = 
SeleniumUtils.findElement(driver,
-                                       "//button[span[contains(text(), '" + 
getString("123") + "')]]", true, true);
-                       signUpButton.click();
-
-                       // ##################################
-                       // Test validation message for passwords to be identical
-                       // ##################################
-                       doSignUp("Hans","Muster", userName, "pw", "pw2", email);
-
-                       //Find Error label-id 232 "Please enter two identical 
passwords"
-                       SeleniumUtils.findElement(driver, 
"//span[@class='feedbackPanelERROR'][contains(text(), '" + getString("232") + 
"')]", true, true);
-
-                       // ##################################
-                       // Sign up with user and sign in
-                       // ##################################
-                       doSignUp("Hans","Muster", userName, pass, pass, email);
-
-                       //Check for popup with success message and email to 
check
-                       SeleniumUtils.findElement(driver, 
"//span[contains(text(), '" + getString("warn.notverified") + "')]", true, 
true);
-
-                       //click button to close popup
-                       WebElement signUpSucessPopUpOkButton = 
SeleniumUtils.findElement(driver,
-                                       "//button[span[contains(text(), '" + 
DialogButtons.OK.toString() + "')]]", true, true);
-                       signUpSucessPopUpOkButton.click();
-
-                       //Login with user
-                       SeleniumUtils.inputText(driver, "login", userName);
-                       SeleniumUtils.inputText(driver, "pass", pass);
-
-                       //click labelid 112 "Sign In"
-                       WebElement signInButton = 
SeleniumUtils.findElement(driver,
-                                       "//button[span[contains(text(), '" + 
getString("112") + "')]]", true, true);
-                       signInButton.click();
-
-                       // check for some text in dashbaord, labelid 281, "Help 
and support"
-                       SeleniumUtils.elementExists(driver,
-                                       "//h3[contains(text(), '" + 
getString("281") + "')]", true);
-
-                       //sign out
-                       WebElement signOutLink = 
SeleniumUtils.findElement(driver,
-                                       "//a[contains(text(), '" + 
getString("310") + "')]", true, true);
-                       signOutLink.click();
-
-                       Alert alert = driver.switchTo().alert();
-                       alert.accept();
-
-                       // ##################################
-                       // Sign up with same user and email and check duplicate 
messages
-                       // ##################################
-
-                       signUpButton = SeleniumUtils.findElement(driver,
-                                       "//button[span[contains(text(), '" + 
getString("123") + "')]]", true, true);
-                       signUpButton.click();
-
-                       doSignUp("Hans","Muster", userName, pass, pass, email);
-
-                       SeleniumUtils.findElement(driver, 
"//span[@class='feedbackPanelERROR'][contains(text(), '" + 
getString("error.login.inuse") + "')]", true, true);
-
-                       SeleniumUtils.findElement(driver, 
"//span[@class='feedbackPanelERROR'][contains(text(), '" + 
getString("error.email.inuse") + "')]", true, true);
-               } catch (Exception e) {
-                       
SeleniumUtils.makeScreenShot(this.getClass().getSimpleName(), e,
-                                       driver);
-                       throw e;
-               }
-       }
-
-       private void doSignUp(String firstName, String lastName, String login, 
String password,
-                                       String confirmPassword, String email) 
throws Exception {
-
-               SeleniumUtils.inputText(driver, "firstName", firstName);
-               SeleniumUtils.inputText(driver, "lastName", lastName);
-               SeleniumUtils.inputText(driver, "//input[@name='login']", 
login);
-               SeleniumUtils.inputText(driver, "password", password);
-               SeleniumUtils.inputText(driver, "confirmPassword", 
confirmPassword);
-               SeleniumUtils.inputText(driver, "email", email);
-
-               WebElement submitButton = SeleniumUtils.findElement(driver,
-                               "//button[span[contains(text(), 'Register')]]", 
true, true);
-               submitButton.click();
-       }
-}
diff --git a/pom.xml b/pom.xml
index 3a9f40d..618798c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -85,7 +85,6 @@
                <tomcat.version>9.0.31</tomcat.version>
                <ical4j.version>3.0.14</ical4j.version>
                <cxf.version>3.3.5</cxf.version>
-               <selenium.version>3.141.59</selenium.version>
                <simple-xml.version>2.7.1</simple-xml.version>
                <jettison.version>1.4.0</jettison.version>
                <site.basedir>${project.basedir}</site.basedir>
@@ -543,26 +542,6 @@
                                <version>${cxf.version}</version>
                        </dependency>
                        <dependency>
-                               <groupId>org.seleniumhq.selenium</groupId>
-                               <artifactId>selenium-java</artifactId>
-                               <version>${selenium.version}</version>
-                               <scope>test</scope>
-                               <exclusions>
-                                       <exclusion>
-                                               
<groupId>commons-logging</groupId>
-                                               
<artifactId>commons-logging</artifactId>
-                                       </exclusion>
-                                       <exclusion>
-                                               
<groupId>org.apache.httpcomponents</groupId>
-                                               
<artifactId>httpclient</artifactId>
-                                       </exclusion>
-                                       <exclusion>
-                                               <groupId>net.bytebuddy</groupId>
-                                               
<artifactId>byte-buddy</artifactId>
-                                       </exclusion>
-                               </exclusions>
-                       </dependency>
-                       <dependency>
                                <groupId>org.simpleframework</groupId>
                                <artifactId>simple-xml</artifactId>
                                <version>${simple-xml.version}</version>

Reply via email to