How to mask XML file with repeated tags and call from Javelin tool
search cancel

How to mask XML file with repeated tags and call from Javelin tool

book

Article ID: 258954

calendar_today

Updated On:

Products

CA Test Data Manager (Data Finder / Grid Tools)

Issue/Introduction

We are putting 2 questions as below:

1) How to handle xml masking in FDM, If tags are repeating in multiple places under same type of parent tag.

Ex: as shown below participant block is repeating twice but still its child tags are same as participant1 and participant2. In case if my other input xml has participant3 and having same child tags same as other participant and am expecting FDM to handle participant3 as well

<Xml> <Participant1> <SSN>788789947</SSN> <Fname>fname</Fname> <Phone>9999999999</Phone> </Participant1> <Participant2> <SSN>788789948</SSN> <Fname>fname1</Fname> <Phone>8888888888</Phone> </Participant2> </Xml>

 

2) Please suggest steps to call FDM batch file to execute masking routing from javelin tool

 

Environment

Release :

Resolution

When you load xml file to FDM, it creates xpaths based on input xml file. For your given sample data, FDM creates xpaths like below screenshot:

https://api-broadcom-ca.wolkenservicedesk.com/attachment/get_attachment_content?uniqueFileId=hVWe/N0JKBXF1xuFK4QSYQ==

 

2)   Once you create masking job in FDM, it creates batch file in 

%appdata%\Grid-Tools\FastDataMasker location.  You can call this batch file from Javelin or You can use the command which is inside the batch file to call it from javelin.