Skip to content

Commit

Permalink
Merge pull request #196 from eliasnogueira/general-updates
Browse files Browse the repository at this point in the history
General updates
  • Loading branch information
eliasnogueira authored Aug 21, 2023
2 parents ca756ab + fd26600 commit bd58cd0
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
13 changes: 11 additions & 2 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@ When the `target` is `testcontainers` the `TargetFactory` uses the `createTestCo
the container based on the browser set in the `browser` property. Currently, Testcontainers only supports Chrome and
Firefox.

Example
```shell
mvn test -Pweb-execution -Dtarget=testcontainers -Dbrowser=chrome
```

#### Remote execution

##### Selenium Grid
Expand Down Expand Up @@ -219,7 +224,7 @@ factory [BookingDataFactory](https://github.com/eliasnogueira/selenium-java-lean

The parallel test execution is based on
the [parallel tests](https://testng.org/doc/documentation-main.html#parallel-tests)
feature on TestNG. This is used by `parallel.xml` test suite file which has the `parallel="tests"` attribute and value,
feature on TestNG. This is used by `selenium-grid.xml` test suite file which has the `parallel="tests"` attribute and value,
whereas `test` item inside the test suite will execute in parallel.
The browser in use for each `test` should be defined by a parameter, like:

Expand Down Expand Up @@ -250,10 +255,14 @@ Please note that you need to do the following actions before running it in paral
* `docker pull selenium-standalog-firefox`
* `docker pull selenium/standalone-edge`
* If you are using a MacBook with either M1 or M2 chip you must check the following experimental feature in Docker Desktop: Settings -> Features in development -> Use Rosetta for x86/amd64 emulation on Apple Silicon

* Pay attention to the `grid/config.toml` file that has comments for each specific SO
* Start the Grid by running the following command inside the `grid` folder
* `docker-compose up`
* Run the project using the following command
```shell
mvn test -Pweb-execution -Dsuite=selenium-grid -Dtarget=selenium-grid -Dheadless=true
```
* Open the [Selenium Grid] page to see the node status

### Configuration files

Expand Down
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,25 @@
<maven-surefire-plugin.version>3.1.2</maven-surefire-plugin.version>
<maven-compiler-plugin.version>3.11.0</maven-compiler-plugin.version>

<aspectj.version>1.9.19</aspectj.version>
<selenium.version>4.10.0</selenium.version>
<aspectj.version>1.9.20</aspectj.version>
<selenium.version>4.11.0</selenium.version>
<testng.version>7.8.0</testng.version>
<assertj.version>3.24.2</assertj.version>
<datafaker.version>2.0.1</datafaker.version>
<log4j.version>2.20.0</log4j.version>
<webdrivermanager.version>5.4.0</webdrivermanager.version>
<webdrivermanager.version>5.4.1</webdrivermanager.version>
<owner.version>1.0.12</owner.version>
<allure.version>2.23.0</allure.version>
<allure-maven.version>2.12.0</allure-maven.version>
<allure-environment-writer.version>1.0.0</allure-environment-writer.version>
<allure.cmd.download.url>
https://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline
</allure.cmd.download.url>
<testcontainers.selenium.version>1.18.3</testcontainers.selenium.version>
<testcontainers.selenium.version>1.19.0</testcontainers.selenium.version>

<!-- security libraries override -->
<jquery.version>3.6.3</jquery.version>
<snakeyaml.version>2.0</snakeyaml.version>
<snakeyaml.version>2.1</snakeyaml.version>
<commons-io.version>2.11.0</commons-io.version>
<junit.version>4.13.2</junit.version>
<jackson-databind.version>2.15.2</jackson-databind.version>
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/suites/local.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >
<suite name="Multi browser test" verbose="1" parallel="tests" thread-count="99">
<suite name="Multi browser test" verbose="1">

<test name="Test">
<parameter name="browser" value="chrome"/>
Expand Down

0 comments on commit bd58cd0

Please sign in to comment.