This commit is contained in:
dadgam3er 2024-09-22 16:48:44 -04:00
parent 1b5be610af
commit 5e08f69e84
6 changed files with 117 additions and 80 deletions

View File

@ -0,0 +1,14 @@
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="groupsTestNG" enabled="true" level="WARNING" enabled_by_default="true">
<option name="groups">
<value>
<list size="1">
<item index="0" class="java.lang.String" itemvalue="Smoke" />
</list>
</value>
</option>
</inspection_tool>
</profile>
</component>

View File

@ -5,7 +5,7 @@ import org.testng.annotations.Test;
public class TestHomePage {
@Test
@Test(groups = { "Smoke" })
public static void testCaseSixteen() {
System.out.println("Debug the sixteenth case");
}

View File

@ -8,7 +8,7 @@ public class TestLoginPage {
System.out.println("Debug the eleventh case");
}
@Test
@Test(groups = { "Smoke" })
public static void testCaseTwelve() {
System.out.println("Debug the twelfth case");
}

View File

@ -5,14 +5,15 @@ import org.testng.annotations.Test;
public class TestNGClass {
@AfterTest
public static void testCaseOne(){
public static void testCaseOne() {
System.out.println("Debug the firtst case ### AFTER TEST ###");
}
@Test
public void testCaseTwo(){
@Test(groups = { "Smoke" })
public void testCaseTwo() {
System.out.println("Debugging the second case");
}
@Test
public static void testCaseThree() {
System.out.println("Debug the third case");

View File

@ -4,9 +4,10 @@ import org.testng.annotations.Test;
public class TestNGDiffClass {
@Test
public void testCaseSix(){
public void testCaseSix() {
System.out.println("Debug the sixteenth case");
}
@Test
public static void testCaseSeven() {
System.out.println("Debug the seventh case");
@ -22,7 +23,7 @@ public class TestNGDiffClass {
System.out.println("Debug the ninth case");
}
@Test
@Test(groups = { "Smoke" })
public static void testCaseTen() {
System.out.println("Debug the tenth case");
}

21
testngGroups.xml Normal file
View File

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="All Test Suite">
<test name="RegressionTest">
<groups>
<run>
<include name="Smoke"/>
</run>
</groups>
<classes>
<class name="zacksolutions.TestNGDiffClass">
</class>
<class name="zacksolutions.TestHomePage">
</class>
<class name="zacksolutions.TestNGClass">
</class>
<class name="zacksolutions.TestLoginPage">
</class>
</classes>
</test>
</suite>