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.

In the previous exercise, you created a simple action which wrote out the value of its argument to the results. While it served as a good introduction to writing user-scripted actions, it didn’t demonstrate the true utility of the harness. In this exercise, you will create a much more practical user-scripted action.

The function of action get list view row value, as you will define it, is to interface with a specified list-view in a given application window, get the values from a row item which is selected based on a given row index number, and assign the returned values, separated with vertical bars ( | ), to a given variable.



Creating a new C# bundle harness class
We will now create a C# class to direct program flow to a function which handles the get list view row value action.

Implementing the C# GUI-interfacing action
We now implement the C# method getListViewRowValue() which will handle execution of the get list view row value action in TestArchitect.

Creating the GUI-interfacing test case for the user-scripted C# bundle harness action
Create a TestArchitect test case to invoke the custom scripted C# action that handles the GUI-interfacing action.

Viewing the test results
Run a test using yourC#-coded action, and ensure that it properly interacts with the target application.


Copyright © 2024 LogiGear Corporation. All rights reserved. LogiGearはLogiGear Corporationの登録商標であり、Action Based TestingおよびTestArchitectはLogiGear Corporationの商標です。ここに記載されているその他の商標は、各所有者の財産です。

LogiGear Corporation

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

Tel: +1 (650) 572-1400