Service Virtualization

 View Only
  • 1.  Virtual service environment for SFTP

    Posted Aug 28, 2019 02:20 AM
    Hi Team,

    We had done a service virtualization using SFTP step for below mentioned scenario. Please help us to what type of "Listeners" we need to choose in "Virtual service environment" step to listen to server path.

    Scenario : We need to listen to a server Path A for request file. Once file is reached in Server Path A, need to download and
    process the request files and then need to upload response files to Server Path B.

    For above scenario, we are able to perform download, process and upload files to server using SFTP step. But we are facing issue in choosing listener. Kindly help us on "How to keep listen to server path A".

    Thanks,
    Suman.


  • 2.  RE: Virtual service environment for SFTP

    Posted Aug 28, 2019 03:03 AM
    Hi,

    To my knowledge there is no (S)FTP Listen Step. As a protocol FTP is distinctly different from HTTP or messaging protocols as there it is not a real request-response communication.

    I would create a test case that: checks for existance of a new file that reached Server Path A, downloads it and process the request files and then need to upload response files to Server Path B.
    Then schedule that test case to run as a monitor in Continuous Validation Service. You can have a loop in your test case that processes all new files in one test run, and then schedulee the test to run every minute (as an example)


    ------------------------------
    Cheers,
    Danny
    ------------------------------



  • 3.  RE: Virtual service environment for SFTP
    Best Answer

    Posted Aug 29, 2019 01:37 AM
    No SFTP listener is available in virtual services.
    You should use a test case and deploy it in CVS with an execution frequency as per your requirement.

    Kind Regards,
    Vaibhav J