Working with the C# bundle harness

How to implement customized TestArchitect actions using the C# programming language.

Supported OS environments

  • Windows

Since TestArchitect version 8.3, TestArchitect offers a new architecture, C# bundle harness, to implement C# user-scripted actions. This new architecture provides the following advantages:

  • Easy deployment: The ability to reuse user-scripted actions among different projects by simply sharing DLLs of the actions
  • Usability: To ease the C# function declaration and implementation
  • Low coupling: not having to merge source code and rebuild the entire harness solution, even though a single user-scripted action is added. In other words, adding one new user-scripted action does not affect the existing user-scripted actions.

Notes: 
For legacy C# user-scripted actions, created in TestArchitect versions prior to 8.3, you are not required to migrate them to C# bundle harness. Specifically, your legacy C# user-scripted actions continue to work normally in TestArchitect 8.3, and you are able to develop additional user-scripted actions that conform to legacy C# harness architecture.

This lesson contains two exercises that demonstrate how to create C#-scripted actions and how to make such actions accessible in your TestArchitect ABT tests.

Developing your own user-scripted C# bundle harness action
TestArchitect provides sample C# bundle harness code files for you to learn to develop, build, and execute C#-scripted actions.

Scripting “hello” C# harness action
In this topic, we will write C# code which implements the simple hello user-scripted action.

Creating test case and stub action for “hello” action
Create a stub action in TestArchitect as a placeholder for theC#-coded hello actionyou defined previously, then write a test to invoke the action.

Running the C#-scripted test
Execute the test that calls the hello action you implemented in the C# bundle harness.
User-scripted C# bundle harness action that interacts with GUI
In this exercise, we will create a user-scripted action that interacts with an application’s user interface.

Migrating C# user-scripted actions created in earlier versions to TestArchitect 8.3


C# bundle harness API reference
How to access the API specifications of the C# bundle harness library.


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