commit 1b5be610af45a2b648c235ea20fdbfe2ba12d43b Author: dadgam3er Date: Sun Sep 22 01:00:36 2024 -0400 testNG diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5ff6309 --- /dev/null +++ b/.gitignore @@ -0,0 +1,38 @@ +target/ +!.mvn/wrapper/maven-wrapper.jar +!**/src/main/**/target/ +!**/src/test/**/target/ + +### IntelliJ IDEA ### +.idea/modules.xml +.idea/jarRepositories.xml +.idea/compiler.xml +.idea/libraries/ +*.iws +*.iml +*.ipr + +### Eclipse ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ +build/ +!**/src/main/**/build/ +!**/src/test/**/build/ + +### VS Code ### +.vscode/ + +### Mac OS ### +.DS_Store \ No newline at end of file diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..aa00ffa --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..890a206 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,14 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/uiDesigner.xml b/.idea/uiDesigner.xml new file mode 100644 index 0000000..2b63946 --- /dev/null +++ b/.idea/uiDesigner.xml @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..284f4ef --- /dev/null +++ b/pom.xml @@ -0,0 +1,43 @@ + + 4.0.0 + + zacksolutions + testNG_FrameWork + 1.0-SNAPSHOT + jar + + testNG_FrameWork + http://maven.apache.org + + + UTF-8 + + + + + + org.testng + testng + 7.10.2 + test + + + + org.seleniumhq.selenium + selenium-java + 4.25.0 + + + org.apache.maven.plugins + maven-surefire-plugin + 3.5.0 + + + org.testng + testng + 7.1.0 + test + + + diff --git a/src/main/java/zacksolutions/FrameNG.java b/src/main/java/zacksolutions/FrameNG.java new file mode 100644 index 0000000..90c9976 --- /dev/null +++ b/src/main/java/zacksolutions/FrameNG.java @@ -0,0 +1,7 @@ +package zacksolutions; + +public class FrameNG { + public static void main(String[] args) { + + } +} diff --git a/src/test/java/zacksolutions/TestHomePage.java b/src/test/java/zacksolutions/TestHomePage.java new file mode 100644 index 0000000..2dc5b16 --- /dev/null +++ b/src/test/java/zacksolutions/TestHomePage.java @@ -0,0 +1,32 @@ +package zacksolutions; + +import org.testng.annotations.BeforeTest; +import org.testng.annotations.Test; + +public class TestHomePage { + + @Test + public static void testCaseSixteen() { + System.out.println("Debug the sixteenth case"); + } + + @Test + public static void testCaseSeventeen() { + System.out.println("Debug the seventeenth case"); + } + + @Test + public static void testCaseEighteen() { + System.out.println("Debug the eighteenth case"); + } + + @Test + public static void testCaseNineteen() { + System.out.println("Debug the nineteenth case"); + } + + @BeforeTest + public static void testCaseTwenty() { + System.out.println("Debug the twentieth case ### BEFORE TEST"); + } +} diff --git a/src/test/java/zacksolutions/TestLoginPage.java b/src/test/java/zacksolutions/TestLoginPage.java new file mode 100644 index 0000000..b76a30b --- /dev/null +++ b/src/test/java/zacksolutions/TestLoginPage.java @@ -0,0 +1,30 @@ +package zacksolutions; + +import org.testng.annotations.Test; + +public class TestLoginPage { + @Test + public static void testCaseEleven() { + System.out.println("Debug the eleventh case"); + } + + @Test + public static void testCaseTwelve() { + System.out.println("Debug the twelfth case"); + } + + @Test + public static void testCaseThirteen() { + System.out.println("Debug the thirteenth case"); + } + + @Test + public static void testCaseFourteen() { + System.out.println("Debug the fourteenth case"); + } + + @Test + public static void testCaseFifteen() { + System.out.println("Debug the fifteenth case"); + } +} diff --git a/src/test/java/zacksolutions/TestNGClass.java b/src/test/java/zacksolutions/TestNGClass.java new file mode 100644 index 0000000..bc0a08a --- /dev/null +++ b/src/test/java/zacksolutions/TestNGClass.java @@ -0,0 +1,30 @@ +package zacksolutions; + +import org.testng.annotations.AfterTest; +import org.testng.annotations.Test; + +public class TestNGClass { + @AfterTest + public static void testCaseOne(){ + System.out.println("Debug the firtst case ### AFTER TEST ###"); + } + + @Test + public void testCaseTwo(){ + System.out.println("Debugging the second case"); + } + @Test + public static void testCaseThree() { + System.out.println("Debug the third case"); + } + + @Test + public static void testCaseFour() { + System.out.println("Debug the fourth case"); + } + + @Test + public static void testCaseFive() { + System.out.println("Debug the fifth case"); + } +} diff --git a/src/test/java/zacksolutions/TestNGDiffClass.java b/src/test/java/zacksolutions/TestNGDiffClass.java new file mode 100644 index 0000000..9cda989 --- /dev/null +++ b/src/test/java/zacksolutions/TestNGDiffClass.java @@ -0,0 +1,29 @@ +package zacksolutions; + +import org.testng.annotations.Test; + +public class TestNGDiffClass { + @Test + public void testCaseSix(){ + System.out.println("Debug the sixteenth case"); + } + @Test + public static void testCaseSeven() { + System.out.println("Debug the seventh case"); + } + + @Test + public static void testCaseEight() { + System.out.println("Debug the eighth case"); + } + + @Test + public static void testCaseNine() { + System.out.println("Debug the ninth case"); + } + + @Test + public static void testCaseTen() { + System.out.println("Debug the tenth case"); + } +} diff --git a/testng.xml b/testng.xml new file mode 100644 index 0000000..17c9f13 --- /dev/null +++ b/testng.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file