Running the C#-scripted test

Execute the test that calls the hello action you implemented in the C# bundle harness.

You have created a test case that calls the action hello, passing it an argument (TestArchitect). You have also implemented the user-scripted action in C# to handle the execution of the hello action.

  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 CSharp_Harness from the Playback Tool options.

  4. In the Executable(s) text box, browse to () the TestArchitect.Harness.Executor.exe file.

    By default, this file is located at <INSTALL_DIR>\harness samples\csharp\executables, once TestArchitect is installed.

  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