Service Virtualization

 View Only
  • 1.  FTP Virtualization

    Posted Aug 06, 2019 10:38 AM
    Hi Team,

    We are doing FTP virtualization. We need to listen to a server Path A. Once incoming file is reached in Server Path A, Take the Request file and process the request file and then using FTP test step move that file to Server Path B. While we are trying to connect to server and download files, facing "Read time out issue". Please help to resolve the issue.
    Kindly do the needful.

    Thanks.
    Suman.


  • 2.  RE: FTP Virtualization
    Best Answer

    Posted Aug 08, 2019 04:25 AM
    Hi Suman,

    What is the value of parameter "If environment error". 

    You can change the value of above parameter to end the test and deploy it to run on regular intervals to process the ftp files into a local location. From this location you can pick the files for further processing in another test case (you can include this test case in a test suite or deploy it as a separate monitor in CVS).

    Kind  Regards,
    Vaibhav J


  • 3.  RE: FTP Virtualization

    Posted Aug 12, 2019 06:03 AM
    Hi Vaibhav,

    Thanks for the information.

    As suggested, I have tried with value of "End The Test" and "Fail the Test" for "If environment error" property. But still getting the same error "read timed out issue".
    Using below following properties for executing FTP:
    Host : Server name 
    Port: 22
    User : User name
    Password : Password
    Direction : Download
    Mode : Passive
    Transfer type : ASCII
    Host path : Server folder path
    Local path : Local folder path

    Note - We want to know the below points:
    1. The error "read timed out issue" is coming while connecting to the server or after connected to the server [during downloading file].
    2. Is there any separate steps are available to check the server connectivity.

    Kindly, help to resolve the issue.

    Thanks,
    Suman.


  • 4.  RE: FTP Virtualization

    Posted Aug 12, 2019 06:40 AM
    Hi Suman,

    Are there any files residing at the Source Location - if no then try by putting a file

    If above scenario is negative then the issue is because of the connectivity - try using the similar configuration from some other FTP access tool like winscp etc from the workstation machine.

    Kind Regards,
    Vaibhav J


  • 5.  RE: FTP Virtualization

    Posted Aug 12, 2019 12:13 PM
    Hi Vaibhav,

    We tried to establish connection to server using FTP, with the "Host Path that as files" and "Host Path that does not have any files". But, in both cases we faced the same "Read time out issue".

    And we tried to do the same scenario, using Tectia tool and using Java code [using Jsch.jars - in eclipse],  able to establish connection and perform download and upload files successfully. But using DevTest we not able to do the same.

    We are using FTP step available in "External/Sub Process" option. I am not able to see "SFTP" step in any options but able to see only "FTP" options.
    Do i need to add any Jar files and libraries to "hot-deploy" folder,
              1. To establish connection successfully using FTP and
               2. To view the SFTP options in "Add step option".

    Thanks,
    Suman.



  • 6.  RE: FTP Virtualization

    Posted Aug 12, 2019 02:02 PM
      |   view attached
    Hi Suman,

    SFTP step is not available as an out of box functionality/step in CA DevTest.

    However, there were some jars shared earlier which could be utilized for achieving the same. I am attaching the same for your references. You might have to consider rebuilding the jar as per your CA DevTest version. Give it a try and let us know if its workable solution for you.

    Thanks.
    Vaibhav J

    Attachment(s)

    zip
    ssh-utils (1).zip   947 KB 1 version


  • 7.  RE: FTP Virtualization

    Posted Aug 14, 2019 03:17 AM
    Hi Vaibhav,

    As per your instruction, we tried to rebuild the attached project using eclipse as per our CA devTest version. We changed the Libraries path [jars] to corresponding "CA\DevTest10.2\lib\shared". But while building the project using Ant build. Facing "Build Unsuccessful" error. Do we need to add any piece of code in "Ant build.xml" file. Can you please guide us to resolve the issue.

    Thanks,
    Suman.


  • 8.  RE: FTP Virtualization

    Posted Aug 14, 2019 05:16 AM
    Hi Suman,

    You can directly use the jars available in dist folder in hotdeploy and restart the setup.
    itkoext-ssh-utils-6.0.jar
    itkoext-ssh-utils-tests-6.0.jar

    Post restart, you should be able to see the custom step in workstations (i have used the same jars for my 9.x version).

    Thanks.
    Vaibhav J


  • 9.  RE: FTP Virtualization

    Posted Aug 14, 2019 12:06 PM
    Hi Vaibhav,

    As per instructed, we copied the jars available in dist folder into the "hotdeploy" folder and restarted the DevTest.
    itkoext-ssh-utils-6.0.jar
    itkoext-ssh-utils-tests-6.0.jar

    we are able to see the "SFTP" step in custom extensions in DevTest. we provided the below details:
    User name  :  user
    Password  : password
    Host name : server name
    Port : 22
    SSH Authentication scheme : Authenticate with keyboard interactive and Authenticate with password [we tried both option]
    And Tested Connection.
    But we are getting error message "Error executing SFTP: There was a problem while connecting to [server name]:22".

    Are we missed anything add to in setup or do we need to try in another way?
    Kindly, help us to resolve.

    Note : we cross-checked all the spelling, spaces and other things.. With same set of data as mentioned previous Message we are able to connect to server using Tectia and java code [Jsch].

    Thanks,
    Suman.