Forum Discussion

suvidhshetty's avatar
suvidhshetty
Contributor
9 years ago

Hiow to execute JAR files in test complete

Hi,

 

I need a way to execute Jar files in Test Complete To invok specific functions.

 

Please help me out on this.

 

 

Thanks!

3 Replies

  • HKosova's avatar
    HKosova
    SmartBear Alumni (Retired)

    You need to add the JAR files AND the class names you want to use to Tools > Current Project Properties > Java Bridge. Then you can access the specified classes and their methods like this:

     

    JavaClasses.package_name.class_name.method();

    Check out the docs for details:
    Calling Functions From Java Classes

     

    • suvidhshetty's avatar
      suvidhshetty
      Contributor

      We have only mobile module in TestComplete we are doing mobile test for Android application. We did not get the location "Tools > Current Project Properties > Java Bridge" in TC 10 Mobile module. let me know how do we work with external jars.

      • HKosova's avatar
        HKosova
        SmartBear Alumni (Retired)

        You need the Desktop module to call external JARs. Other modules don't include this feature.