DELPHI I Files and directories

The Tosca Setup meets the following preconditions automatically:

The Tosca Delphi Engine consists of the following directories and files, depending on the Delphi version:

Delphi 2007

%TRICENTIS_HOME%\dll\

DelphiEngine.ocx

%TRICENTIS_HOME%\dll\DelphiEngine\

<mehrere Delphi-Run-Time-Packages> (e.g.: rtl100.bpl)

DelphiHook.dll

TOSCA_DelphiClient.dll

TOSCA_DelphiClient.tlb

TOSCADelphiDriver110_110.dll

TricentisLibs110_110.bpl

TricentisWindowsControls110_110.bpl

%TRICENTIS_HOME%\dll\DelphiEngine\dcp110\

TricentisLibs110_.dcp

TricentisWindowsControls110_.dcp

%TRICENTIS_HOME%\dll\DelphiEngine\dcu110\

<mehrere Delphi compiled Units> (e.g.: uOperatorButton.dcu)

Delphi 2009

%TRICENTIS_HOME%\dll\

DelphiEngine.ocx

%TRICENTIS_HOME%\dll\DelphiEngine\

<mehrere Delphi-Run-Time-Packages> (e.g.: rtl100.bpl)

DelphiHook.dll

TOSCA_DelphiClient.dll

TOSCA_DelphiClient.tlb

TOSCADelphiDriver120_120.dll

TricentisLibs120_120.bpl

TricentisWindowsControls120_120.bpl

%TRICENTIS_HOME%\dll\DelphiEngine\dcp120\

TricentisLibs120_.dcp

TricentisWindowsControls120_.dcp

%TRICENTIS_HOME%\dll\DelphiEngine\dcu120\

<mehrere Delphi compiled Units> (e.g.: uOperatorButton.dcu)

Delphi 2010

%TRICENTIS_HOME%\dll\

DelphiEngine.ocx

%TRICENTIS_HOME%\dll\DelphiEngine\

<mehrere Delphi-Run-Time-Packages> (e.g.: rtl100.bpl)

DelphiHook.dll

TOSCA_DelphiClient.dll

TOSCA_DelphiClient.tlb

TOSCADelphiDriver140_140.dll

TricentisLibs140_140.bpl

TricentisWindowsControls140_140.bpl

%TRICENTIS_HOME%\dll\DelphiEngine\dcp140\

TricentisLibs140_.dcp

TricentisWindowsControls140_.dcp

%TRICENTIS_HOME%\dll\DelphiEngine\dcu140\

<mehrere Delphi compiled Units> (e.g.: uOperatorButton.dcu)

ObjectMappings.dat

The file %TRICENTIS_HOME%\dll\Dat\ObjectMappings.dat must include the following entries:

[Delphi]

taRepresentationClassName=DelphiEngine.clsDelphiTA

controlDefClassName=DelphiEngine.clsDelphiControlDef

handlerClassName=DelphiEngine.clsDelphiKWDHandler

objectMapClassName=DelphiEngine.clsDelphiObjectMap

wizardItemClassName=DelphiEngine.clsDelphiWizardItem

 

[Table]

paRepresentationClassName=DelphiEngine.clsExternTable

omTranslationName=Table

 

[EditBox]

paRepresentationClassName=DelphiEngine.clsDelphiGenericControl

omTranslationName=EditBox

 

[PushButton]

paRepresentationClassName=DelphiEngine.clsDelphiGenericControl

omTranslationName=PushButton

 

[TabControl]

paRepresentationClassName=DelphiEngine.clsDelphiGenericControl

omTranslationName=TabControl

 

[PageControl]

paRepresentationClassName=DelphiEngine.clsDelphiGenericControl

omTranslationName=PageControl

 

[ComboBox]

paRepresentationClassName=DelphiEngine.clsDelphiGenericControl

omTranslationName=ComboBox

 

[RadioButton]

paRepresentationClassName=DelphiEngine.clsDelphiGenericControl

omTranslationName=RadioButton

 

[CheckBox]

paRepresentationClassName=DelphiEngine.clsDelphiGenericControl

omTranslationName=CheckBox

 

[ListBox]

paRepresentationClassName=DelphiEngine.clsDelphiGenericControl

omTranslationName=ListBox

 

[TreeView]

paRepresentationClassName=DelphiEngine.clsDelphiGeneric

Control

omTranslationName=Tree

[ListView]

paRepresentationClassName=DelphiEngine.clsExternTable

omTranslationName=ListView

 

[Toolbar]

paRepresentationClassName=DelphiEngine.clsDelphiGenericControl

omTranslationName=Toolbar

 

[Label]

paRepresentationClassName=DelphiEngine.clsDelphiGenericControl

omTranslationName=Label

 

[Memo]

paRepresentationClassName=DelphiEngine.clsDelphiGenericControl

omTranslationName=Memo

 

[Panel]

paRepresentationClassName=DelphiEngine.clsDelphiGenericControl

omTranslationName=Panel

 

[Unknown]

paRepresentationClassName=DelphiEngine.clsDelphiGenericControl omTranslationName=Unknown

 

[MainMenu]

paRepresentationClassName=DelphiEngine.clsDelphiMainMenu omTranslationName=MainMenu

WizardMappings.dat

In the WizardMappings.dat file, the test object can be manually added by using the .exe file name of the application and according to the schema shown below. If no assigned engine is found in the WizardMappings.dat file for the test object upon scanning with Tosca Wizard, a pop up window will open, prompting to select the appropriate engine for scanning the application (see chapter "Selecting the engine").

[<The .exe file name of the application to be tested (without path with file extension)>]

EnginePrefix=Delphi

EngineName=DelphiEngine

UserControlRepresentationClassName=DelphiEngine.DelphiDetailsPage

Example

[MyApplication.exe]

EnginePrefix=Delphi

EngineName=DelphiEngine

UserControlRepresentationClassName=DelphiEngine.DelphiDetailsPage

WinClassMappings.dat

In the file %TRICENTIS_HOME%\dll\Dat\WinClassMappings.dat, entries must be added in the section [Window] for all application windows to be scanned. The class name to be entered or the entry with the special character * at the end, which corresponds to the class name, can be read from the application using Tosca Wizard (see Illustration "Class names in Tosca Wizard").

Example

Tfrm*

TForm*

TMainForm*

Class names in Tosca Wizard