How to create 'testng.xml' using Eclipse

后端 未结 4 1457
挽巷
挽巷 2021-01-02 17:27

I am new to TestNG and Selenium Webdriver and trying to create a testng.xml using eclipse.

Done some research in www and understand that this file can be created by

4条回答
  •  旧时难觅i
    2021-01-02 17:52

    Created testng suite file manually as below:

    1. Run once your project from Eclipse
    2. Refresh your project
    3. Now, “test-output” folder will be created under your project –> unfold the folder
    4. Double click the ‘index.html’ file -> It will be opened in the Eclipse Browser window or any other external browser (e.g. IE, Google Chrome, FF, MS Edge etc.)
    5. Click on the ‘.xml’ link given on the left panel
    6. The test suite XML will get opened on the right-side panel
    7. Take a copy of the XML content
    8. Right click your project >> New >> File
    9. Give name of your test suite file (with .xml extension e.g. testng.xml) and click Finish
    10. Paste the content that you copied from the ‘index.html’ and amend your suite file as per your needs

提交回复
热议问题