Everyone knows that Rational Robot uses Delphi Enabler to support the identification of Delphi third-party controls and custom controls, but identify third-party controls encountered in the C program? I will introduce the way to identify his way, I hope to help everyone.
SQA Object Testing Control
If your test software is written by VB, use SQA Object Testing Control: (Sqaote32.ocx) to get control information is very familiar with you, and you can get the control information and methods when the software is running. Robot can establish a strong script based on the information provided, verify that those methods or functions are correct, that is, the final verification point.
If your C or a C program contains a custom or third-party ActiveX (OCX) control, you can put this control on each of the forms containing third-party controls or to custom controls.
Install Rational TeamTest or Robot, Object Testing Control (sqaote32.ocx) will be installed by default to System Directory System32: C: /Winnt/System32/sqaote32.ocx ..
Add Rational ActiveX Test Control
If you want ActiveX Test Control work, you need to set ActiveX available in the VC. Examples of this following MFC
the first. Establish an engineering, set the ActiveX control available
second. Add Rational ActiveX Test Control in Places with Third Party Controls
There is a form that contains MStreeView, running Rational Robot using Object Properties to capture the MStreeView property, Rational Robot unrecognizes the object (the object is unknow). Add SQA Object Testing Control (right-click an ActiveX control, the following chart form is displayed).
Add Rational ActiveX Test Control After a Robot icon appears on the form, you can use him without any processing in your code. SQA Object Testing Control is an invisible control, he will not appear on the form after running the software.
When you don't add SQA Object Testing Control, Robot can only identify the general properties of this control, and then the Robot can identify most of the properties of the custom control or plugin.
note
If you use a custom control to inherit from the MFC or use APIS implementation, even if you add SQA Object Testing Control control Robot, you cannot work. Then define the category of the object inheritance.
Method 1: When running, use the Object Properties to identify the object to unknow, define that the control cannot be identified to a similar base class in the dialog box.
Method 2: Open Robot, Tools-> General Options, switch to the Object Mapping page. Select the base class, then add that you cannot be other controls to this class.
Doing so can identify the general category properties of the control.
Summary: Adding Rational ActiveX Test Control for unrecognizable custom and third-party controls, to help Robot build strong scripts by bringing most of the object's properties of the Robot identifying the object.
Remarks: The above is used in Rational 2003, VC Studio.net 2003.