Forum Discussion
Hi Chris,
It seems that the class you want to access uses other classes that are located in specific directories, and you did not specify them in TestComplete's Java Bridge options. So, TestComplete cannot access the needed Java class. Since the class is unavailable, it is not displayed in the Code Completion window.
To check whether your class can be accessed only with class paths you specified, you can do this:
- Create a simple Java application.
- From the main() method, call that particular class function that you want to call from your TestComplete test .
- Run the application and specify the paths which you specified in the Class Path list of the Java Bridge options as the classpath parameters (you must specify the class paths in the same order as they are specified in TestComplete).
If the application works correctly, this means you specified correct class paths. Otherwise, you need to determine which class paths you need to specify in order to access the desired Java class. Until all the needed classes are specified, the application cannot call the desired function. Once your faked application works correctly, add the same class paths you specify as the classpath parameters into TestComplete's Java Bridge settings.
I hope this will help. If it does not, contact me please.