Previous Topic: Install TestNG Eclipse Plug-inNext Topic: How You Implement a Custom Connector


Configure Project Launch Settings

You configure the project launch settings to specify where the Sample connector should start.

Follow these steps:

  1. Open Eclipse.
  2. Select Run, Debug Configurations.

    The Debug Configurations dialog opens.

  3. Right-click TestNG and select New.

    The right pane is populated with the TestNG configuration information.

  4. Enter a meaningful name in the Name field and click Browse in the Project field.

    The Project Selection dialog opens.

  5. Select SampleConnector and click OK.

    SampleConnector displays in the Project field.

  6. Select Class in the Run pane and click Browse next to the field.

    The TestNG dialog opens.

  7. Select SampleConnectorUTest and click OK.

    The class displays in the Class field.

  8. Click Apply.

    The project launch settings are configured. Complete Steps 9-11 to run a unit test.

  9. Click Debug.

    The unit test runs.

  10. Select the TestNG tab.

    The unit test results display.

  11. Click the icon labeled Open TestNG Report.

    The execution results report displays in HTML format. All tests pass if the environment is configured correctly.