Service Virtualization

Expand all | Collapse all

Help required to implement Data masking using CA DevTest

Jump to Best Answer
  • 1.  Help required to implement Data masking using CA DevTest

    Posted 01-02-2017 05:55 AM

    Hi,

    I am in the process of showcasing Data Masking functionality using CA DevTest to our client. We do not have "CA Test Data Manager" integration available with us. Kindly guide me about any workaround to implement the functionality using inbuilt functionalities of Devtest. Comments and guidance are most welcome.



  • 2.  Re: Help required to implement Data masking using CA DevTest

    Posted 01-03-2017 10:29 AM

    DevTest has a de-identification feature, though it's specific to the CA Service Virtualization portion of the suite. Would that be help to you?

     

    https://docops.ca.com/devtest-solutions/10-0/en/using/using-ca-service-virtualization/using-devtest-workstation-with-ca-service-virtualization/de-identifying-data



  • 3.  Re: Help required to implement Data masking using CA DevTest
    Best Answer

    Posted 01-03-2017 02:45 PM
      |   view attached

    In the DevTest home directory is the de-identify.xml file used for data de-identification, made possible by the com.itko.lisa.vse.desensitize.LisaPropReplacer package. For example, using regular expression (regex) to replace a date of birth within the response message, you can name the filter name, and setup the replacement value '19010101' (Jan 1, 1901) using the CDATA element:

    <filter name="desensitize5" provider="com.itko.lisa.vse.desensitize.LisaPropReplacer">
            <regex><![CDATA[DMG\*D8\*\d{8}\*F~]]></regex>
            <replacement><![CDATA[DMG*D8*19010101*F~]]></replacement>
        </filter>

     

    Use regex101.com to help build and test your regex:

    [*D8\*\d{8}\*F~]
    /
    g
    Match a single character present in the list below
    [*D8\*\d{8}\*F~]
    *D8 matches a single character in the list *D8 (case sensitive)
    \* matches the character * literally (case sensitive)
    \d matches a digit (equal to [0-9])
    {8} matches a single character in the list {8} (case sensitive)
    \* matches the character * literally (case sensitive)
    F~ matches a single character in the list F~ (case sensitive)
    If you just want to showcase examples provided in de-identify.xml, just use the demoserver application (LISA Bank). Use the recorder wizard without de-identification  to build the virtual service, then use the recorder wizard by turning on de-idenitification to build the virtual service and see the data value substitutions in the response messages that are enabled by the de-identify.xml file.

    Attachment(s)

    zip
    de-identify.xml.zip   3K 1 version