Using Java Bridge to Include Java classes to Scripts
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Using Java Bridge to Include Java classes to Scripts
Hello,
I am creating some test code to carry out a feasibility check to see whether TestComplete can incorporate Java classes to current JS code. I have been following this guide: https://support.smartbear.com/testcomplete/docs/testing-with/advanced/using-external-functions/calli... and have seen many people have success with this. However, I have created some dummy data, a simple Java calculator program to call in TestComplete with no success. I am not sure why I am having issues with making the auto-completion window appear when I type JavaClasses. Also, when running the code I get an error reading, 'Cannot read property of undefined'. I have provided some screenshots of how I am using the Java Bridge to call the jar and adding the classes as well as the error message I get. Any help or guidance on this would be greatly appreciated.
- Labels:
-
Scripting
-
Test Results
-
Unit Testing
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
All of this is in the link you mentioned in your first post:
Did you do Part 1 noted here?
Have you done this section of Part 2?
Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for getting back to me Marsha. I have carried out both sections, 1 and 2. I am not sure why the Code Completion window is not appearing.
