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> 

folder structure, enter image description here

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.

enter image description here


right click suite file, click run -> run configurations. thing below,

enter image description here

right click testng , give new, choose suite , give run, per screenshot. enter image description here


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -