How to replace Global Variable values for local tests with TIBCO ActiveMatrix® Adapter for Files for Unix/Win

How to replace Global Variable values for local tests with TIBCO ActiveMatrix® Adapter for Files for Unix/Win

book

Article ID: KB0076376

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for Files for Unix and Windows -
Not Applicable -

Description

Some times we want to use local values for Global Variables defined in project for testing purpose.

TIBCO Designer™ Tester has feature of "Test Engine User Args" with a local properties file to replace the Global Variable with local values. but Adapter Tester does not have such feature for local tests to set Global Variables with local values. In the Adapter Tester it will ask value only for undefined Global Variables, if Global Variables are defined in project then adapter tester will not ask/allow to set local values.

Issue/Introduction

How to replace Global Variable values for local tests with TIBCO ActiveMatrix® Adapter for Files for Unix/Win

Environment

Product: TIBCO ActiveMatrix® Adapter for Files for Unix/Win Version: 6.x.x, 7.0.x OS: All Supported Operating Systems --------------------

Resolution

To use local values for Global Variables add those properties/Global Variables in your adfilesagent.tra(located at TIBCO_HOME\adapter\adfiles\version\bin) using below format to set local values for testing.

# Custom adapter properties

tibco.clientVar.inputFile=inputfile.txt


In this case let's say we have Global Variable inputFile is defined in project with value content.txt but as  "tibco.clientVar.inputFile=inputfile.txt" is set in adfilesagent.tra . When testing  TIBCO ActiveMatrix® Adapter for Files for Unix/Win(FA) project from TIBCO Designer™ adapter tester it will consider value pankit.txt for Global Variables inputFile when project runs.


Please Note: Once you are done with testing comment the values/properties which were added in adfilesagen.tra for testing to avoid any replacement in other FA application using same Global Variables.