diff --git a/.gitea/workflows/mvnCICD.yaml b/.gitea/workflows/mvnCICD.yaml
new file mode 100644
index 0000000..c537cc6
--- /dev/null
+++ b/.gitea/workflows/mvnCICD.yaml
@@ -0,0 +1,19 @@
+name: Gitea Actions Demo
+run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
+on: [push]
+
+jobs:
+ Explore-Gitea-Actions:
+ runs-on: ubuntu-latest
+ steps:
+ - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
+ - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
+ - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
+ - name: Check out repository code
+ uses: actions/checkout@v4
+ - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
+ - run: echo "🖥️ The workflow is now ready to test your code on the runner."
+ - name: List files in the repository
+ run: |
+ ls ${{ gitea.workspace }}
+ - run: echo "🍏 This job's status is ${{ job.status }}."
diff --git a/pom.xml b/pom.xml
index 284f4ef..2519598 100644
--- a/pom.xml
+++ b/pom.xml
@@ -13,6 +13,46 @@
UTF-8
+
+
+ Regression
+
+
+
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+ 3.5.0
+
+
+ testng.xml
+
+
+
+
+
+
+
+
+ Smoke
+
+
+
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+ 3.5.0
+
+
+ testngGroups.xml
+
+
+
+
+
+
+
+
@@ -28,11 +68,6 @@
selenium-java
4.25.0
-
- org.apache.maven.plugins
- maven-surefire-plugin
- 3.5.0
-
org.testng
testng
diff --git a/src/data.properties b/src/data.properties
new file mode 100644
index 0000000..6aec7b6
--- /dev/null
+++ b/src/data.properties
@@ -0,0 +1,2 @@
+browser="firefox"
+url="https://zenful.cloud/"
\ No newline at end of file
diff --git a/src/test/java/zacksolutions/GlobalValues.java b/src/test/java/zacksolutions/GlobalValues.java
new file mode 100644
index 0000000..6fa37f1
--- /dev/null
+++ b/src/test/java/zacksolutions/GlobalValues.java
@@ -0,0 +1,14 @@
+package zacksolutions;
+
+import java.io.FileInputStream;
+import java.io.IOException;
+import java.util.Properties;
+
+public class GlobalValues {
+ public static void main(String[] args) throws IOException {
+ Properties pro = new Properties();
+ FileInputStream fis = new FileInputStream("/home/ilyes/SeleniumPractice/testNG_FrameWork/src/data.properties");
+ pro.load(fis);
+ System.out.println(pro.getProperty("url"));
+ }
+}
diff --git a/src/test/java/zacksolutions/TestHomePage.java b/src/test/java/zacksolutions/HomePageTest.java
similarity index 96%
rename from src/test/java/zacksolutions/TestHomePage.java
rename to src/test/java/zacksolutions/HomePageTest.java
index 64af45a..e6e1671 100644
--- a/src/test/java/zacksolutions/TestHomePage.java
+++ b/src/test/java/zacksolutions/HomePageTest.java
@@ -4,7 +4,7 @@ import org.testng.annotations.BeforeTest;
import org.testng.annotations.Parameters;
import org.testng.annotations.Test;
-public class TestHomePage {
+public class HomePageTest {
@Parameters({ "URL" })
@Test(groups = { "Smoke" })
diff --git a/src/test/java/zacksolutions/TestLoginPage.java b/src/test/java/zacksolutions/LoginPageTest.java
similarity index 95%
rename from src/test/java/zacksolutions/TestLoginPage.java
rename to src/test/java/zacksolutions/LoginPageTest.java
index 12271d3..07c969b 100644
--- a/src/test/java/zacksolutions/TestLoginPage.java
+++ b/src/test/java/zacksolutions/LoginPageTest.java
@@ -2,7 +2,7 @@ package zacksolutions;
import org.testng.annotations.Test;
-public class TestLoginPage {
+public class LoginPageTest {
@Test
public static void testCaseEleven() {
System.out.println("Debug the eleventh case");
diff --git a/src/test/java/zacksolutions/TestNGClass.java b/src/test/java/zacksolutions/NGClassTest.java
similarity index 95%
rename from src/test/java/zacksolutions/TestNGClass.java
rename to src/test/java/zacksolutions/NGClassTest.java
index b1d0aa8..cc06604 100644
--- a/src/test/java/zacksolutions/TestNGClass.java
+++ b/src/test/java/zacksolutions/NGClassTest.java
@@ -3,7 +3,7 @@ package zacksolutions;
import org.testng.annotations.AfterTest;
import org.testng.annotations.Test;
-public class TestNGClass {
+public class NGClassTest {
@AfterTest
public static void testCaseOne() {
System.out.println("Debug the firtst case ### AFTER TEST ###");
diff --git a/src/test/java/zacksolutions/TestNGDiffClass.java b/src/test/java/zacksolutions/NGDiffClassTest.java
similarity index 86%
rename from src/test/java/zacksolutions/TestNGDiffClass.java
rename to src/test/java/zacksolutions/NGDiffClassTest.java
index f987927..5f0f793 100644
--- a/src/test/java/zacksolutions/TestNGDiffClass.java
+++ b/src/test/java/zacksolutions/NGDiffClassTest.java
@@ -1,9 +1,8 @@
package zacksolutions;
-import org.testng.Assert;
import org.testng.annotations.Test;
-public class TestNGDiffClass {
+public class NGDiffClassTest {
@Test
public void testCaseSix() {
System.out.println("Debug the sixteenth case");
@@ -27,6 +26,5 @@ public class TestNGDiffClass {
@Test(groups = { "Smoke" })
public static void testCaseTen() {
System.out.println("Debug the tenth case");
- Assert.assertTrue(false);
}
}
diff --git a/testng.xml b/testng.xml
index 563bd9b..e6a03e9 100644
--- a/testng.xml
+++ b/testng.xml
@@ -3,17 +3,20 @@
-
+
-
+
+
+
+
-
+
-
+
diff --git a/testngGroups.xml b/testngGroups.xml
index ef44eef..403c80d 100644
--- a/testngGroups.xml
+++ b/testngGroups.xml
@@ -4,7 +4,7 @@
-
+
@@ -12,13 +12,13 @@
-
+
-
+
-
+
-
+