Service Virtualization

  • 1.  To Run testcases or suite from Command prompt?

    Posted Apr 17, 2019 06:54 AM

    Hi,

     

    I need to know is there any possible way to run test scripts or test suite from a command prompt without installing the tool in everyone's machine.

     

    Do we need to configure something?

     

    If you give a solution it will be very useful for us. Kindly respond.

     

    Note:Everyone cannot install Devtest into their tool. Need an alternate way to run test script by any member in the team



  • 2.  Re: To Run testcases or suite from Command prompt?

    Broadcom Employee
    Posted Apr 17, 2019 07:36 AM

    I would explore using curl inside a batch file to call the DevTest REST API to launch tests.

     

    Cheers,

    Danny



  • 3.  Re: To Run testcases or suite from Command prompt?

    Broadcom Employee
    Posted Apr 26, 2019 03:05 AM

    You can use curl command with Test invoke API calls to run the test case or test suite from command prompt. Please find the example given below:

     

    curl -X POST -H "authorization: Basic {Encrypted Authorization}=" "{{LISA_TEST_INVOKE_HOST}}:{{LISA_TEST_INVOKE_PORT}}/lisa-test-invoke/api/v1/tests/run " -H "content-type: multipart/form-data" -F file=@{Mar file}

     

    For more information, please go through this documentation:

    https://docops.ca.com/devtest-solutions/10-4/en/using/using-the-apis/test-invoke-api

     

    Thanks & Regards,

    Srikanth Gajawada



  • 4.  RE: Re: To Run testcases or suite from Command prompt?

    Posted Nov 06, 2019 11:50 AM
    Srikanth. The documentation does not define @{Mar file}. Please define this.