Forum Discussion

vshetty's avatar
vshetty
Occasional Contributor
2 years ago

How to use the External JAVA libraries with Test Engine hosted on Linux

We are using the Test Engine to run our Ready API test suites and this server is a Linux machine.

 

We are referring the java library (com.jcraft.jsch.*) within groovy script and this is used for file upload. this works fine while running the test in local with the Ready API application but while the same test with Test Engine, this suites fails as Test Engine is not able to find the the reference of java library(refere below error).

 

Can you help us with below questions
* Is there a default location which the Test Engine looks for external library reference?

* Is there a way to have our own custom path for external reference and let the Test Engine refer this path?

 

We looked into the official documentation, it has the details of path for Ready API but not for Test Engine

  • Yki's avatar
    Yki
    Contributor

    It is working out of the box for my script ( I am using ReadyAPI though)
    import org.apache.commons.net.ftp.FTPSClient
    import com.jcraft.jsch.*
    import java.io.File

     

    Can you provide more information about your script?

    • vshetty's avatar
      vshetty
      Occasional Contributor

       

      We are using the above script as a part of groovy script to transfer the file from local machine to remote. This works fine with ReadyApi but fails with Test engine