Skip to content

Commit

Permalink
CLDR-17248 Change cldr-apps-webdriver system for simulated users (#31)
Browse files Browse the repository at this point in the history
-New SurveyDriverCredentials.java

-Simulated users have pseudo email addresses like [email protected]

-See related PR 3424 for cldr

-Remove cldr-add-webdrivers.sql, no longer needed

-Store new CLDR_WEBDRIVER_PASSWORD in new file surveydriver.properties, not in git, see .gitignore

-Avoid dependency on old survey?email... api, simulate click on Log In button instead

-New methods loginWithButton, clickButtonByXpath, inputTextByXpath, getClickableElementByXpath

-Update selenium-java from 4.3.0 to 4.16.1

-Simplify selenium-grid-start.sh; only one call is needed with current selenium; add --selenium-manager true

-Update apache.logging.log4j from 2.17.2 to 2.20.0

-Remove gson dependency, no longer needed

-Minor refactoring

-Comments
  • Loading branch information
btangmu authored Dec 27, 2023
1 parent 2e6f1de commit 37efbde
Show file tree
Hide file tree
Showing 6 changed files with 216 additions and 179 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.DS_Store
/target
surveydriver.properties
11 changes: 3 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,7 @@
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>4.3.0</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.10.1</version>
<version>4.16.1</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
Expand All @@ -40,12 +35,12 @@
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.17.2</version>
<version>2.20.0</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>2.17.2</version>
<version>2.20.0</version>
</dependency>
</dependencies>
<build>
Expand Down
11 changes: 0 additions & 11 deletions scripts/cldr-add-webdrivers.sql

This file was deleted.

8 changes: 1 addition & 7 deletions scripts/selenium-grid-start.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,2 @@
#!/bin/bash

HUB_URL=http://localhost:4444/grid/register java -jar selenium-server-4.16.1.jar standalone &

for ((PORT = 5555; PORT <= 5563; PORT++))
do
HUB_URL=http://localhost:4444/grid/register java -jar selenium-server-4.16.1.jar standalone --port $PORT &
done
java -jar selenium-server-4.16.1.jar standalone --selenium-manager true &
Loading

0 comments on commit 37efbde

Please sign in to comment.