how to work in selenium with testNG in Netbeans IDE?

孤街醉人 提交于 2019-12-14 03:58:31

问题


I am new in automation testing. I know that how to configure testNG with eclipse IDE but I did not get that how to configure testNG with netbeans IDE.

I have already included selenium webdriver library files in netbeans.

can anyone help me?

Thanks Rohit Joshi


回答1:


  1. Download latest version of NetBeans

  2. Download the TestNG plugin for NetBeans

  3. If you are going to use Maven then get the TestNG Maven plugin for NetBeans

  4. Start NetBeans IDE and go to Tools -> Plugins

NetBeans IDE

  1. Go to Downloaded tab and select Add Plugins

  2. Navigate to the location on your hard disk where you have saved the .nbm file and select it and click Open

  3. The plugin is made visible in the Downloaded window

  4. Select it and Install

There it is!! You are now privileged to use TestNG with your NetBeans.

To use TestNG, right click anywhere in the editor window and you can see TestNG. Mouse over it and create Test using TestNG.

You can also visit the following link https://netbeans.org/kb/docs/java/testng-screencast.html



来源:https://stackoverflow.com/questions/27921368/how-to-work-in-selenium-with-testng-in-netbeans-ide

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!