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.
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.