Forum Discussion

priyanka_2's avatar
12 years ago

JavaClasses codecomplete does not work

I am trying to call a java method from testComplete. The method is defined as -



public static String getCustomerTableValue()

   {

       return "dummyString";

   }



I am following the steps provided in -

http://support.smartbear.com/viewarticle/30680/#JavaRuntime





The code complete does not seem to be working and when I try to type it manually-


JavaClasses.com.myproj.helper.testCompleteHelper.getCustomerTableValue()

It errors out at runtime as -

Object doesn't support this property or method: 'JavaClasses.com'



How do I get around this issue?



Thanks!






  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Priyanka,


     


    According to your example, you are trying to call a function via the JavaClasses Object. Have you configured your TestComplete project based on the "Calling Functions From Java Classes" article? If you have, and the problem persists, please zip your entire project suite folder and send the archive to our Support team.