Service Virtualization

Expand all | Collapse all

Generate MAR file automatically DevTest 10.4

Jump to Best Answer
  • 1.  Generate MAR file automatically DevTest 10.4

    Posted 10 days ago
    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

    Posted 10 days ago
    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 9 days ago
    Edited by Amanpreet Aulakh 9 days ago
    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 9 days ago

    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 10 days ago
    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
    ------------------------------