Step1 - Model Configuration

Decide your AutoTestBox deployment platform and set the local model configuration accordingly.

If you plan to have AutoTestBox database on the ISeries and your test functions ALSO access data on the ISeries then you should look at setting the local model configuration to "IBM Server SAME"
If you plan to have AutoTestBox database on the ISeries and your test functions accessing data NOT on the ISeries then you should look at setting the local model configuration to "IBM Server DIFFER"
We are all CA Plex developers here so please look in the model Function: _ShellAutoTestBoxStub.AutoTestBox [StellaTools] and Subject area: StellaTools0_Variants and see the ramification of these settings in terms of generation time and runtime.


Step2 - Register ActiveX


Step3 - Register Model API

PROBLEM DESCRIPTION:

'Package PlexAPILib30 (PlexAPI 3.0 Type Library), GUID {AB54000F-90A2-11d4-
A84A-0008C78C4894}, version 3.0 was not found on this machine.'

PROBLEM CAUSE:
PlexAPI 3.0 Type Library is not properly registered.

CIRCUMVENTION:
PlexAPI 3.0 Type Library needs to be manually registered with 'Plex.exe
/RegServer' command.

SEVERITY: MEDIUM
HYPER: NO

PRODUCTS AFFECTED: CA Plex r6.1 on Windows 7 and Windows Server 2008 R2. 

You won't get a confirmation message as you usually do if successful.  "You will not see any feedback from doing this (sorry!), but the interface should now be registered"   

Step4 - Edit OBCORE.H

Cue Banners and DisableProcessWindowsGhosting ( WINAPI Function) can not be compiled until CA Plex supplied C:\Program Files (x86)\CA\Plex\6.1\include\OBCORE.H file is edited from:



// LAYRO01 BEGIN .NET migration
// Stop "C4005: '_WIN32_WINNT' : macro redefinition" Warning

//#define _WIN32_WINNT 0x0400

#ifndef _WIN32_WINNT

#define _WIN32_WINNT 0x0400

#endif

// LAYRO01 END .NET migration

to

// LAYRO01 BEGIN .NET migration
// Stop "C4005: '_WIN32_WINNT' : macro redefinition" Warning

//#define _WIN32_WINNT 0x0400

#ifndef _WIN32_WINNT

//#define _WIN32_WINNT 0x0400

#define _WIN32_WINNT 0x0600

#endif

// LAYRO01 END .NET migration

If you don't edit the header file you will get the following Visual Studio 2005 compile errors:

------------------------------------------------------------------------------------------

Starting Build of StellaTools.AutoTestBox.UI.Wizard.Wizard - Release

COMPILE : error C3861: 'DisableProcessWindowsGhosting': identifier not found

c:\PlexLocal\STELLA\Gen\StellaWiz.CPP - Line 1059

COMPILE : error C2039: 'SetCueBanner' : is not a member of 'CEdit'

c:\PlexLocal\STELLA\Gen\StellaWiz.CPP - Line 5933

Finished Build of StellaTools.AutoTestBox.UI.Wizard.Wizard - Release with 2 error(s), 0 warning(s)

------------------------------------------------------------------------------------------

Step5 - Gen&Build Settings

"/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='X86' publicKeyToken='6595b64144ccf1df' language='*'"




Use Pre-built C++ libraries

C:\StellaTools V1.0\Objects\Lib\Plex6.1\ob600PlexExt.lib;C:\StellaTools V1.0\Objects\Lib\Plex6.1\PDate.lib;C:\StellaTools V1.0\Objects\Lib\Plex6.1\Version.rct

Use Pre-built C++ Header Directories
C:\StellaTools V1.0\Objects\Headers

Resource Directories
C:\StellaTools V1.0\Objects\Images\Tools

Step6 - Generate and Build subject areas

Subject area: StellaTools1_InternalsWinC
Subject area: StellaTools2_ExternalsWinC[Tool]
Subject area: StellaTools2_ExternalsWinC[ATB]
Subject area: StellaTools3_FncExeWinC
Subject area: StellaTools4a_ServerTable
Subject area: StellaTools4b_ServerView
Subject area: StellaTools4c_ServerFnc

If you get the following build error you have not registered the tssBalloonTip2.dll      'regsvr32 tssBalloonTip2.dll'
******************************************************************************************
START Build Summary for C:\Project\StellaTools\Gen\StellaTools.obl
Submitted by XXX on Thu Dec 05 15:03:53 2013
******************************************************************************************
------------------------------------------------------------------------------------------
Starting Build of _StellaTools Precompiled Header - Release
Finished build of _StellaTools Precompiled Header - Release successfully.
------------------------------------------------------------------------------------------
Starting Build of tssBalloonTip222tssBalloonTip222_pkg - Release
COMPILE : fatal error C1083: Cannot open type library file: '': No such file or directory
c:\project\stellatools\gen\tssBalloonTip222.h - Line 30
Finished Build of tssBalloonTip222tssBalloonTip222_pkg - Release with 1 error(s), 0 warning(s)
******************************************************************************************
END Build Summary 1 error(s), 0 warning(s)


Step7 - Create Exe and INI file settings

Subject area: StellaTools3_FncExeWinC

Refer tSource code: StellaTools.AutoTestBox.UI.AutoTextBox.INI settings
[StellaTools Options]
Configuration=


[StellaExeDspCase:NativeControls]
SingleLineEdit=0
[StellaExeDspSuite:NativeControls]
SingleLineEdit=0
[StellaExeDspTest:NativeControls]
SingleLineEdit=0
[StellaExeRunDialog:NativeControls]
SingleLineEdit=0
RadioButton=0
[StellaBackground:NativeControls]
SingleLineEdit=0

AND YOUR REMOTE settings to connect to AutoTestBox database
Refer tSource code: StellaTools.AutoTestBox.UI.Wizard.Wizard.INI settings
[StellaTools Options]
PromptDocLink=True
ShowAbout?=Y

AND YOUR REMOTE settings to connect to AutoTestBox database

Step8 - Runtime Objects (icons, avi)

Remember to copy the contents of StellaTools V1.0\Objects\Runtime to your release directory whether that be locally or on a server

Step9 - Add-Ins settings

[ADDINS]

NameX=AutoTestBox [StellaTools]
IconX=C:\MyStellaToolsInstallationDirectoryFullPath\StellaAutoTestBox.EXE
CommandX=C:\MyStellaToolsInstallationDirectoryFullPath\StellaAutoTestBox.EXE
ParametersX=


NameZ=AutoTestBox StubWiz [StellaTools]
IconZ=C:\MyStellaToolsInstallationDirectoryFullPath\AutoTextBoxPlexIDE.ico
CommandZ=C:\MyStellaToolsInstallationDirectoryFullPath\StellaWiz.EXE
ParametersZ=StellaWiz StellaWiz RS $ObjRef