Run as TestNG Suite not working in eclipse -
i learning testng , working on parameterization. created new java class , created new testng.xml file. included class name in xml file. tried run testng.xml file testng suite nothing work.
please see java class,
public class test1 { @test public void test_firefox() { system.out.println("test_firefox method.."); } }
testng.xml file,
<!doctype suite system "http://testng.org/testng-1.0.dtd" > <suite name="suite1" verbose="1" > <test name="test" > <classes> <class name="com.multibrowser.test1" /> </classes> </test> </suite>
please me in this.
not sure why did created suite file under "referenced libraries"
create under "com.multibrowser" package. or under folder.
take @ screenshot below, testng-suite.xml.
right click suite file, click run -> run configurations. thing below,
right click testng , give new, choose suite , give run, per screenshot.
Comments
Post a Comment