WinForms command line tool

Convert a WinForms-based project’s interface mappings to mappings based on TA classes, and export to a text file.

Restriction:
  • The WinForms command-line tool is not available in the TestArchitect packages for the Linux and macOS operating systems.
  • This tool does not support the conversion of WinForms dynamic controls.

Synopsis

java -jar TAConvertWinFormsClassMapping.jar --ConvertWinFormsClassMapping 
[--server<value>] [--port<value>] 
--uid<value> --pwd<value> 
--repoName<value> --projectName<value> 
--source<value> --destination<value>
  • TAConvertWinFormsClassMapping

    An executable .jar file used to invoke the WinForms command-line tool

    The file can be found at TA_INSTALL_DIR\binclient.

  • ConvertWinFormsClassMapping

    Invoke the export WinForms user-defined class map function.

  • –server<value>

    (Optional; default = localhost) Full hostname or IP address of the repository server hosting the repository of the source TestArchitect project.

  • –port<value>

    (Optional, default = 53400) Dedicated port number used to connect to the repository server.

  • –uid <value>

    User name with which to log in to repository.

    Note:
    If the user namecontains any spaces, enclose it between a pair of double quotation marks.

  • –pwd <value>

    Password for the given user name.

  • –repoName <value>

    Name of the source repository.

    Note:
    If the repository namecontains any spaces, enclose it between a pair of double quotation marks.

  • –projectName <value>

    Name of the source TestArchitect project.

    Note:
    If the project namecontains any spaces, enclose it between a pair of double quotation marks.

  • –source<value>

    TA path of a given source interface, or interface entity.

    Value must start with a forward slash ( / ), and provide a full (non-case sensitive) TA path, starting with the Interfaces node as root.

    For example: /Interfaces/Car Rental

    Note:
    If the source pathcontains any spaces, enclose it between a pair of double quotation marks.

  • –destination<value>

    Host file system’s folder location into which the WinForms class mapping file is to be written.

    Note:
    • No file name is required. In its absence, the generated WinForm class mapping file is automatically named with the following format: [Interface Name]_Class_map_[yyyy-MM-dd HH:mm:ss.SS]. For example: Car Rental_Class_map_2016-04-19 16:57:59.921.txt
    • Network paths are also supported.
    • If the destination path contains any spaces, enclose it between a pair of double quotation marks.

Running the WinForms command line tool
This topic provides, by way of example, an introduction to the use of the WinForms command line tool. Here we’ll use the ConvertWinFormsClassMapping command to update the TA legacy mappings of a WinForms-based project.


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