1
0
forked from Zakaria/testNG

Groups&parameter

This commit is contained in:
dadgam3er 2024-09-22 20:37:52 -04:00
parent 844f7ff6a3
commit d3b4d34d72
2 changed files with 5 additions and 1 deletions

View File

@ -1,13 +1,16 @@
package zacksolutions;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Parameters;
import org.testng.annotations.Test;
public class TestHomePage {
@Parameters({ "URL" })
@Test(groups = { "Smoke" })
public static void testCaseSixteen() {
public static void testCaseSixteen(String urllink) {
System.out.println("Debug the sixteenth case");
System.out.println(urllink);
}
@Test

View File

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="All Test Suite">
<parameter name="URL" value="zacksolutions.dev"/>
<test name="RegressionTest">
<groups>
<run>