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?
- install testng in eclipse either navigating "help -> install new software" or "eclipse market place"
- check whether testng got installed or not: -in eclipse browse to: "window -> show view -> other -> java" -testng must listed.
- add testng library "project -> properties -> java build path -> add library -> select testng -> apply -> ok"
- 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"); } }
- right click & run "testng test"
let me know if helps you.
Comments
Post a Comment