Service Virtualization

 View Only
  • 1.  Read File and Save content to Property

    Posted Apr 03, 2018 12:37 PM

    Hi,

    I am using DevTest Version 10.2.

    I have the below scenario to perform:

    I have a file in local and wanted to send the same to server location through LISA/DevTest.

     

    Thanks in advance!!!

    Regards,

    Bibhudutta Dash



  • 2.  Re: SSH command for FTP

    Posted Apr 04, 2018 09:06 AM

    DevTest Community

    Hi CA team,

     

    Please assist me with the approach to resolve the above issue.

     

    FYI** I am using Tectia tool for Secure File transfer.

     

    Any kind of suggestions are highly appreciated!!!

     

    Regards,

    Bibhu



  • 3.  Re: SSH command for FTP

    Posted Apr 05, 2018 07:46 AM

    J_NeSmith, please assist me with the scenario i am trying to accomplish.

    Hi Team,

     

    If you can suggest, how to read the file completely and save it as  a single property.

     

    I am trying it in the below way:

    1. Locate the file and read it each line.

             Suppose I have a file with values as A, B, C, D, E..... all in each line.

    2. After reading save, copy and save it to a single property.

             Ex. {{Response}} -- A, B, C, D, E..... all in each line.

     

    Any kind of suggestions is highly appreciated.

     

    Regards,

    Bibhudutta Dash



  • 4.  Re: SSH command for FTP
    Best Answer

    Posted Apr 05, 2018 08:33 AM

    Is the file in a location that you can map a drive?

    If so, you could try the Read File step.

     In this step, configure the file name/location and save the input into a property:

    Use another step to do something with the file.

    Notes:

    - The file path must be accessible from the machine (local or DT server) that is executing the step.

    - The file path can be parameterized using {{ }} notation if desired.

    - File size may or may not be an issue.  For example, if you are moving '000s of MB, I cannot say what the performance would be.

    - There is also a DT FTP step available. I am unfamiliar with Tectia FTP, but I assume you have a technique for passing the file (property) to the FTP client.

     

    There is a custom SSH/FTP step that you can search for in Communities. I do not know the status of this code.

     

    Let us know if this helps.  



  • 5.  Re: SSH command for FTP

    Posted Apr 05, 2018 08:46 AM

    Thanks Joel, for the approach suggested.

    Now the rest can be handled.