Guidelines for compiling a .Net library for TestShell Studio #376
Replies: 3 comments
-
do we have any example which shows that how can we get dropdown box for user input for specific values (Quali) - 12/26/2014 11:06 AM
|
Beta Was this translation helpful? Give feedback.
-
To get a dropdown, you need to define an enum and use it in the function header. You can add alias to each value of the enum as well.
For example, the enum definition would be (with alias on some of them) public enumPossibleValues and the function will use it this way: public void Function1( Yaniv Kalsky (Yaniv.K) - 01/07/2015 08:44 AM
|
Beta Was this translation helpful? Give feedback.
-
Thank you for providing the guidelines for .Net developers who wish to compile a .dll library that will work with TestShell Studio. It seems like a comprehensive document with detailed steps and guidelines. As you mentioned, some elements require more in-depth knowledge and support from QualiSystems. It's great to have such resources available for developers to help them create TestShell Libraries. |
Beta Was this translation helpful? Give feedback.
-
Attached is the basic guidelines for .Net developers who wish to compile a .dll library that will work with TestShell Studio.
Please note that certain elements are not explained thoroughly since they require more in-depth knowledge (Such as Error-handling and Canceling) if a user wishes to add those elements some support from QualiSystems will be required.
The purpose of this document is to provide the basic guidelines on how to write a TestShell Library (version 4.7 and above) from MS Visual Studio 2010 and above.
Steps
Specify the folder that will be displayed in TestShell Studio. The folder can be a hierarchy (e.g. "Folder1\Folder2\Folder3").
Optional. Provide the method description that will be displayed in TestShell Studio. When using the description, add this using line: using System.ComponentModel;
Optional. Provide the method alias that will be displayed in TestShell Studio. This string can have spaces in it as opposed to the .net method name.
Optional. Add the attribute to specify a method to be called when a Studio session is created. All the method parameters will appear in the session section. Common usage of for this method is for connection functions.
Optional. Add the attribute to specify a method to be called when a Studio session ends.
Optional. Add this attribute when you wouldn’t want the method to be exposed to the user.
Optional. Specify the method is cancelable. Add this attribute if you’ve implemented the ICancelable interface.
[Description("The parameter description"), Mandatory, Alias("A parameter description"), ParameterDefaultValue("True")]
Optional. Provide the variable description.
Optional. Add this attribute if the parameter is mandatory.
Optional. Provide the variable alias. This alias can contain spaces.
Optional. When required add a default value.
Attachments:
Dan Michlin (Dan.M) - 03/20/2014 10:41 AM
· 2698 ·
Beta Was this translation helpful? Give feedback.
All reactions