Running a Java harness test

Execute the test that calls the hello action you implemented in the Java harness.

You have created a test case that calls the action hello, passing it an argument (Earth, in this example). Prior to that you implemented the action inJava , and created the necessary harness code to direct execution of action hello to your implemented definition of it.

  1. With your test module displayed in the TestArchitect editor, click Execute on the toolbar.

    The Execute Test dialog box appears.

  2. Before clicking Execute, click Automation Tools.

    The Automation Tools dialog box appears.

  3. Select TestArchitect Java Harness from Playback Tool option.

  4. Click next to the Script(s) field to browse to the filejava_harness.jar which, if you followed the instructions to create it (that is, used Eclipse), should be in your Eclipse workspace directory.

  5. Click OK to return to the Execute Test dialog box.

  6. Click Execute to run the test.

Upon completion of execution, the Result Details tab of the test results displays the text hello, followed by the value you entered as an argument to the action:

So far, you have created your own user-scripted action along with a test that runs it, but they have no interaction with the outside world. In the next exercise, you will create a user-scripted action that communicates with a target application.


Copyright © 2024 LogiGear Corporation. All rights reserved. LogiGear is a registered trademark, and Action Based Testing and TestArchitect are trademarks of LogiGear Corporation. All other trademarks contained herein are the property of their respective owners.

LogiGear Corporation

1730 S. Amphlett Blvd. Suite 200, San Mateo, CA 94402

Tel: +1 (650) 572-1400