infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Read Only Archives
Cloverleaf
Cloverleaf
Distinguish between running in testing tool and in process?
RobertKersemakers
Hi guys,
I have the need to distinguish inside an Xlate, whether the Xlate is executed in the testing tool (where I don't want certain things to happen, like say write the processed transaction code to a file) or whether it runs in a process. I can't seem to find anything that tells me whether the Xlate is executed in the testing tool.
I am thinking of using the process name [file tail [pwd]] to check if the process name is correct. But maybe there is another option?
Thanks in advance!
Find more posts tagged with
Clovertech
Comments
Jim Kosloskey
Robert,
I think the thread name global contains something like "TEST" when the proc is run inside a tester.
I know it contains something when in test I just don't recall what the literal is - I can look it up but maybe you can find it faster.
I will check when I have a few minutes.
Jim Kosloskey
Robert,
If you reference the global HciConnName it will indeed have the value 'TEST' in it if you are running in the testing tool (at least that is true for the Xlate testing tool).
RobertKersemakers
Thanks Jim. Gonna try that Monday. 8)
RobertKersemakers
A bit later than expected (why can't they leave me alone at work?) but it works like a charm.
Thanks again!