1
0
forked from Zakaria/testNG

Groups&parameter

This commit is contained in:
2024-09-22 20:37:52 -04:00
parent 844f7ff6a3
commit d3b4d34d72
2 changed files with 5 additions and 1 deletions
@@ -1,13 +1,16 @@
package zacksolutions; package zacksolutions;
import org.testng.annotations.BeforeTest; import org.testng.annotations.BeforeTest;
import org.testng.annotations.Parameters;
import org.testng.annotations.Test; import org.testng.annotations.Test;
public class TestHomePage { public class TestHomePage {
@Parameters({ "URL" })
@Test(groups = { "Smoke" }) @Test(groups = { "Smoke" })
public static void testCaseSixteen() { public static void testCaseSixteen(String urllink) {
System.out.println("Debug the sixteenth case"); System.out.println("Debug the sixteenth case");
System.out.println(urllink);
} }
@Test @Test
+1
View File
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"> <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="All Test Suite"> <suite name="All Test Suite">
<parameter name="URL" value="zacksolutions.dev"/>
<test name="RegressionTest"> <test name="RegressionTest">
<groups> <groups>
<run> <run>