The class XMLWrite can be used for customizing trees and tables. If the control is null or if the control does not support the event, the value will be false. If the transferred event is available for the control, it will be invoked and the value true is returned. The control, the name of the event to be fired and the EventArgs are transferred. Public static bool FireEvent (Control handledControl, string eventName, EventArgs arguments)įireEvent() allows to start events, but there is no guarantee that the entire event string is started as well. In the classes OperatorListView and OperatorTreeView, a special DotNet-Out.xml file is created to transfer the content of the ListView or the TreeView to the VB steering classes clsDotNetListView and clsDotNetTreeView. With this class, XML files can be created. The parameter bHeader specifies if the column header shall be considered. The function getContent() is particularly relevant for steering tables and controls with results returned in a complex XML structure (e.g. String getContent (string addInfo, ref bool bHeader) In the function getName(), the Name property of the control is returned. By specifying the optional parameter key, all subproperties can be returned as well. With the function getProperties(), all properties of the array are returned. The optional parameter key represents a subordinate property. The parameter name represents the name of the property (value, list, etc.). With the function getProperty(), all TestCase properties are processed for the respective control. String getProperty (string name, string key) The parameter param is an optional parameter that is passed on to the VB part of the DotNet Engine in the function operateOnCtrl() as addInfo. ![]() The parameter val is the business value of a TestCase Attribute and is passed on by the function VerificationView from the class ParamAction. In the function getValue(), generally all TestCases are processed that have the ActionMode set to Verify in Tosca Commander™. ![]() String getValue (string val, string param) The returned value contains a string that is required to generate the XML information that is passed on to the VB part. In case of most controls, this is an additional information that can be specified in Tosca Commander™ after the value specification in curly brackets ). The parameter steering is an optional parameter that is passed on to the VB part of the DotNet Engine ( see chapter "Visual Basic (VB) components") in the function operateOnCtrl() as addInfo. The parameter val is the business value of a TestCase Attribute and is passed on by the function InputView from the class ParamAction. In the function setValue(), all TestCases are processed that have the ActionMode set to Input in Tosca Commander™. String setValue (string val, string steering) The following control names can be returned as robot class:Ĭontrol (most general, if CustomCtrl cannot be attributed to a specified steering class) By specifying the robot class, access to all properties and control steerings of the respective standard control is provided and the desired steering class is applied in the VB part of the DotNet Engine. Each standard control in the library TricentisWindowFormCtrls.dll has a unique robot class. This component returns the robot class for the control to be steered. This property serves to transfer the controls of the target application as. The files TricentisLibs20.dll (for DotNet version 2.0 and 3.5) and TricentisLibs40.dll (for DotNet from version 4.0 on) provide the abstract class OperatorGenericCtrl for DotNet controls and contain the following interfaces: dll files are required to derive from the basic steering classes. ![]() TricentisWindowFormCtrls20.dll or TricentisWindowFormCtrls40.dll (standard controls) TricentisLibs20.dll or TricentisLibs40.dll (OperatorGenericCtrl)ĭotNet applications, version 2.0 or 3.5, must reference the TricentisLibs20.dll file, DotNet applications from DotNet version 4.0 on, must use the AdditionalCtrls40.dll file. To program a CustromControl, references must be created from the following.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |