Test Data Manager

Expand all | Collapse all

TDM export API execution through Javelin

  • 1.  TDM export API execution through Javelin

    Posted 15 days ago

    Hi,

    I want to execute TDM EXPORT [TDMModelService] Api through Javelin.

    This Is how I'm executing the API after creating a authentication token, that is being passed into headers.

    baseUrl: https://localhost:8443/TDMModelService/api/ca/v1/objects/33960

    resource: "/actions/export?projectId=5106&versionId=5107"

    While executing this API through Javelin, I'm getting this error. As per my understanding it is because of resource in that '&' symbol is creating error while parsing.

    Can you please suggest something for this, and how to export the JSON files successfully using Javelin?



  • 2.  RE: TDM export API execution through Javelin

    Broadcom Employee
    Posted 15 days ago

    What version of TDM are you using and what version of Javelin?

    I would suggest you try the latest 64-bit version of Javelin and see if it helps.

    You can download it at the below link
    https://support.broadcom.com/external/content/release-announcements/Test-Data-Manager-TDM-Patches/16649



    ------------------------------
    Gene Howard
    Principal Support Engineer
    Broadcom
    ------------------------------



  • 3.  RE: TDM export API execution through Javelin

    Posted 15 days ago
    For Javelin I'm  using Javelin v4.9.100 and TDM 4.9.1, I believe they are latest one you are talking about as per the url.


  • 4.  RE: TDM export API execution through Javelin

    Broadcom Employee
    Posted 15 days ago
    No, the latest Javelin version is 4.9.155
    https://ftp.broadcom.com/user/downloads/priv/cbtmaint/zahab01/TDM/Javelin/Javelin-4.9.155.0.zip

    ------------------------------
    Gene Howard
    Principal Support Engineer
    Broadcom
    ------------------------------



  • 5.  RE: TDM export API execution through Javelin

    Posted 11 days ago
    Hi Gene,

    I tried upgrading to the specified Javelin version 4.9.155.0, but still same error. Please can you suggest.




  • 6.  RE: TDM export API execution through Javelin

    Broadcom Employee
    Posted 11 days ago
    Hello all. I believe the problem is that javelin has not been set up with the correct parameters to deal with the returning data type, eg a zip file.  When tracing the TDM backend, the rest api appears to be working.  The final part back to javelin is not.   I dont have a solution to offer as I dont know what parameters/values need to be specified.  Still investigating



  • 7.  RE: TDM export API execution through Javelin

    Broadcom Employee
    Posted 10 days ago
    Mahesh I recommend that you open a support ticket for this problem.



  • 8.  RE: TDM export API execution through Javelin

    Broadcom Employee
    Posted 10 days ago
    Kran and Mahesh.  The problem is that the REST API is not handling the zip file that is being returned.  It is expecting json or an array.  A colleague found an optional value that you can add to the API, async=true

    http://localhost:8080/TDMModelService/api/ca/v1/objects/793/actions/exportprojectId=2347&versionId=2348&async=true

    Please give it a try


    image.png



  • 9.  RE: TDM export API execution through Javelin

    Posted 8 days ago
    Edited by Kran 8 days ago


  • 10.  RE: TDM export API execution through Javelin

    Broadcom Employee
    Posted 9 days ago
    Test



  • 11.  RE: TDM export API execution through Javelin

    Broadcom Employee
    Posted 2 days ago
    Hi Mahesh,

    As Billy said, Rest API works fine but Javelin's RestPutActivity function does not have ability to download files which are returned in response body. It requires enhancement on that.

    However, I would suggest you to use "async" option when calling that API which will help you to export and download the files asynchronously.

    Give a try with adding "asycn=true" in the end.

    i.e.

    /TDMModelService/api/ca/v1/objects/33960/actions/export?projectId=5106&versionId=5107&async=true

    That should save the files under

    C:\ProgramData\CA\CA Test Data Manager Portal\objects\projects_5106\versions_5107\****

    Hope this helps

    Cihan



  • 12.  RE: TDM export API execution through Javelin

    Posted 2 days ago
    Hi Billy, Cihan,

    Thanks for the feedback. I could see the file exported to the specified server path with the suggested approach.

    Thanks