1
0
forked from Zakaria/testNG
This commit is contained in:
2024-09-22 01:00:36 -04:00
commit 1b5be610af
13 changed files with 383 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
package zacksolutions;
public class FrameNG {
public static void main(String[] args) {
}
}
@@ -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");
}
}
@@ -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");
}
}
@@ -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");
}
}
@@ -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");
}
}