Creating user-scripted actions
Explains how to create a stub action for a user-scripted scripted action in TestArchitect.
In the TestArchitect explorer tree, right-click the Action node, and then select Create User-Scripted Actions.
The Create User-Scripted Actions dialog box appears.
Next to the Bundle location box, click the Browse button to specify a DLL.Important:Currently, only C# bundle harness is supported to create user-scripted actions.
User-scripted actions defined in DLL(s) are loaded into the Select actions list with the following information.
- Name: User-scripted action name
- Function: Function name
- Class: Class name
- Assembly: Path of the class library.
Select action(s), and then click Create.Note:
- You are not allowed to select more than one identical user-scripted actions.
- Also, the selected user-scripted actions cannot have the same name as an existing built-in action
If the creation is successful, a dialog box appears.
Click OK to dismiss the dialog box.
In the TestArchitect explorer tree, under the Action node, new stub actions of the user-scripted actions are created successfully.
Close the Create User-Scripted Actions dialog box.
In the TestArchitect explorer tree, under the Actions node, new stub actions of the user-scripted actions are created successfully.
Open a newly-created stub action.
From the test editor, we can see that argument names are populated based on the implementation code, and their argument types are assigned to String automatically. You are free to modify the argument type.