Skip to content

Commit 54587ed

Browse files
committed
πŸš€ Add TestNG XML πŸš€ Remote Execution πŸš€
1 parent c8d9011 commit 54587ed

File tree

3 files changed

+46
-1
lines changed

3 files changed

+46
-1
lines changed

β€Žsrc/main/resources/properties/ExecutionPlatform.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
###################################################
22
##### SHAFT_Engine: ExecutionPlatform.properties
33
###################################################
4-
executionAddress=local
4+
executionAddress=localhost:4444
55
targetOperatingSystem=Linux-64
66
targetBrowserName=GoogleChrome
77
headlessExecution=false

β€Žsrc/test/resources/selenium4.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# https://github.com/SeleniumHQ/docker-selenium
2+
# To execute this docker-compose yml file use `docker-compose -f selenium4.yml up --scale chrome=4 --scale edge=0 --scale firefox=0 -d`
3+
# Add the `-d` flag at the end for detached execution
4+
# http://localhost:4444/grid/console
5+
# To stop the execution, hit Ctrl+C, and then `docker-compose -f selenium4.yml down --remove-orphans`
6+
version: "3"
7+
services:
8+
chrome:
9+
image: selenium/node-chrome:4.1.2
10+
shm_size: 2gb
11+
depends_on:
12+
- selenium-hub
13+
environment:
14+
- SE_EVENT_BUS_HOST=selenium-hub
15+
- SE_EVENT_BUS_PUBLISH_PORT=4442
16+
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
17+
18+
selenium-hub:
19+
image: selenium/hub:4.1.2
20+
container_name: selenium-hub
21+
ports:
22+
- "4442:4442"
23+
- "4443:4443"
24+
- "4444:4444"

β€Žtestng.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
3+
<suite name="All Test Suite">
4+
<test verbose="2" preserve-order="true" name="E:/programming/Testing/ParaBank_TestAutomation">
5+
<classes>
6+
<class name="GUI_Account_Tests.Gui_Account_Test">
7+
<methods>
8+
<include name="OpenNewAccount"/>
9+
<include name="OpenNewAccountButton"/>
10+
<include name="AccountOverView"/>
11+
</methods>
12+
</class>
13+
<class name="GUI_ParaBank_Tests.Gui_Register_Test">
14+
<methods>
15+
<include name="Register"/>
16+
<include name="UserLogin"/>
17+
</methods>
18+
</class>
19+
</classes>
20+
</test>
21+
</suite>

0 commit comments

Comments
Β (0)