Test Data Manager

Expand all | Collapse all

CA TDM Portal activities through cURL commands

Jump to Best Answer
  • 1.  CA TDM Portal activities through cURL commands

    Posted 01-12-2018 12:04 AM

    Hi,

     

    Is it possible to do CA TDM Portal activities like creating a connection profiles and projects are possible with cURL commands. If this is possible, can I automate this with any CI tools such as Jenkins?

     


    Thank you,

    Swathy



  • 2.  Re: CA TDM Portal activities through cURL commands
    Best Answer

    Posted 01-17-2018 09:43 PM

    Hi Swathy, I do not think you can use Curl commands to create connection profiles, but you can use it with the Swagger UI and TDM Portal.

     

    There was a known issue for this noted here: Known Issues - CA Test Data Manager - 4.4 - CA Technologies Documentation 

    Occurrence of &quot Getting Converted into " in Swagger

    While forming the Curl request URL, the Swagger interface converts the occurrence of &quot (if any) in the query parameter name to " (double quote). As a workaround, you can use any other REST client for such requests.

    This issue is not observed while forming the HTTP request URL.

    Example: You are sending a POST request using the Swagger interface. The POST request includes two parameters quoteFieldNames and quoteNonNumerics. In this case, the Swagger interface creates the HTTP and Curl request URLs as follows:

    • HTTP Request URL
      "http://localhost:8080/SomeService/?param1=false&quoteFieldNames=true&quoteNonNumerics=true"
      Note that the occurrence of &quot is not replaced with a double quote (") in this case, which is correct.
    • Curl Request URL
      curl -X POST --header "Content-Type: application/json" --header "Accept: /" --header "Authorization: Bearer NiJ9.eyJzdWIiOiJBZG" "http://localhost:8080/SomeService/?param1=false"eFieldNames=true"eNonNumerics=true"
      Note that the occurrence of &quot is converted into a double quote (") in this case, which is incorrect.

     

    You can use Jenkins with Javelin to automate Portal activities. More about Javelin can be read here: Javelin - CA Test Data Manager - 4.4 - CA Technologies Documentation 



  • 3.  Re: CA TDM Portal activities through cURL commands

    Posted 01-22-2018 03:30 AM

    Hi Swathy_Sukumar

     

    It is actually possible to create a connection profile with curl. There is an example curl in this document: API NOTES and examples .

     

    Best regards,

    Peter