selenium webdriver - Not able to see TestNG in eclipse neon after installing -


i installed testng eclipse marketplace not able see testng in windows- preferences.i have eclipse neon , latest jdk version java se 8u121. body know?

  1. install testng in eclipse either navigating "help -> install new software" or "eclipse market place"
  2. check whether testng got installed or not: -in eclipse browse to: "window -> show view -> other -> java" -testng must listed.
  3. add testng library "project -> properties -> java build path -> add library -> select testng -> apply -> ok"
  4. create simple test script follows;

package gmail;

import org.testng.annotations.test;

public class gmaillogintestng {

@test public void test1() {     system.out.println("within test 1"); }  @test public void test2() {     system.out.println("within test 2"); }  @test public void test3() {     system.out.println("within test 3"); } 

}

  1. right click & run "testng test"

let me know if helps you.


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -