Service Virtualization

 View Only
  • 1.  Generate MAR file automatically DevTest 10.4

    Posted Mar 26, 2020 03:11 PM
    Hi Team

    Is there any way to generate the MAR file automatically in DevTest 10.4 for use within the pipeline to eliminate the manual effort of generating the mar file?

    Thanks

    ------------------------------
    Amanpreet Aulakh
    ------------------------------


  • 2.  RE: Generate MAR file automatically DevTest 10.4
    Best Answer

    Broadcom Employee
    Posted Mar 27, 2020 12:14 AM
    Hello Amanpreet,

         If you are looking for a way to generate MAR file for deployed virtual service, Starting from Devtest 10.5 version, there are few API calls exists to manage services. Among those, a API call " GET /vses/{vseName}/services/{virtualServiceName} " you can use it in pipeline to generate mar file.
     
    For more information about this API, please go through documentation link given below:

    https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-enterprise-software/continuous-testing/devtest-solutions/10-5/using/using-the-apis/service-virtualization-api-v3.html

    Note:  This API is available in 10.4 version.

    Thanks,
    Srikanth


  • 3.  RE: Generate MAR file automatically DevTest 10.4

    Posted Mar 27, 2020 12:15 PM
    Edited by Amanpreet Aulakh Mar 27, 2020 12:17 PM
    Thanks for your answer.

    To deploy a Test suite, we should first create MAR file manually and then deploy it in jenkins:
    stage('CA Service Virtualization Start TestSuite') {
            svDeployTest testType: 'suites', marFilePath: 'folder/testsuite.mar'
        }
    Is there any way that I select TestSuite only, then in pipeline script MAR file should be created automatically and deployed?

    Regards
    Amanpreet Aulakh




  • 4.  RE: Generate MAR file automatically DevTest 10.4

    Posted Mar 28, 2020 04:04 AM

    Hi,

     

    Probably I don't understand exactly the functional ins and outs of the pipeline you are building but just wanted to make you aware that for "... we should first create MAR file manually ..." there is the commandline MakeMar utility that you might be able to use?

     

    Cheers,

    Danny

     

    ::DISCLAIMER::

    The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects.






  • 5.  RE: Generate MAR file automatically DevTest 10.4

    Posted Mar 27, 2020 02:04 AM
    Hi Amanpreet,

    If you have a marInfo file created for a virtual service/test suite etc., you can create the mar file using MakeMar utility (This could be incorporated within Jenkins).

    Thanks

    ------------------------------
    Regards,
    Vaibhav Jain
    Capgemini
    ------------------------------