LDSTechForumProjects

Testing Stack Apps

testng

To use the stack-qa listener you currently must point to a testng.xml file that defines the listener.

This can be done within eclipse by opening Window -> Preferences then the testng tab. Use the template xml file dialog to select.

By default projects generated by stack starter have example xml files that contain the listener. By default these are under /src/test/suite named full.xml and smoke.xml. Pointing to either of these files will enable the listener.

If you would like to add the listener section to your own custom testng.xml file cut and paste the snippet from below.

<listeners>
	<listener class-name="org.lds.stack.qa.harness.StackQAListener" />
</listeners>
This page was last modified on 17 March 2011, at 09:22.

Note: Content found in this wiki may not always reflect official Church information. See Terms of Use.