Undefined SerialPort
Hi, I am a beginner in both TestComplete and Scripting (Java). I am trying to send sequence and read the com port of a device using TestComplete. I found the code on this page:https://support.smartbear.com/testcomplete/docs/scripting/working-with/com-ports.html I copied the function Test() on the page and tried to run it. I received an error message saying 'Cannot read property 'SerialPort' of undefined. I am not sure whats going on, could anyone help me. I did the test on a VM, .NET already installed, "NET Classes Support' plug-in is installed and enabled". Thanks in advance.Solved1.8KViews0likes4CommentsHow can I use OpenCV 3.4.1 with Java-Bridge to load a pictures with imread()?
I allways get errors when using OpenCV 3.4.1 with Java-Bridge to load a pictures with imread(). Therefore I use the Java-Bridge C:\Program Files\Java\jre1.8.0_171\bin\server\jvm.dll (This Java-Bridge works fine with other *.jar-Files like ..\..\..\..\..\Java\pdfbox-app-2.0.9.jar) I use the following Java Classes in TestComplete: - org.opencv.imgcodecs.Imgcodecs - org.opencv.core.Core - org.opencv.core.CvType - org.opencv.core.Mat and Add Drectory ..\..\..\..\..\opencv\build\java\x64 and Add Jar-Files ..\..\..\..\..\opencv\build\java\opencv-331.jar There are two methodsin class org.opencv.imgcodecs.Imgcodecs "imread()" that are also shown in the object inspector of TestComplete - imread() with one Parameter for the PNG-Filename - imread_2() with two Parameters Example 1 leads to an error: function abc1() { aFullFileName = 'C:\\Testing\\TC.png'; aObj = JavaClasses.org_opencv_imgcodecs.Imgcodecs.newInstance(); aMat = aObj.imread(aFullFileName); } leads to java.lang.UnsatisfiedLinkError: org.opencv.imgcodecs.Imgcodecs.imread_1(LJava/lang/String; )J:smileyfrustrated: Example2 leads also to an error: function abc2() { aFullFileName = 'C:\\Testing\\TC.png'; aObj = JavaClasses.org_opencv_imgcodecs.Imgcodecs.newInstance(); aMat = aObj.imread_2(aFullFileName, 1); } leads to java.lang.UnsatisfiedLinkError: org.opencv.imgcodecs.Imgcodecs.imread_0(Ljava/lang/String;I)J:smileyfrustrated: If I look at these methods fromOpenCVdirectlywith Java in Eclipse it works fine but how can I fix this within TestComplete?1.5KViews0likes1CommentReading PDF /PDDocument.load_3 or load not found
Hi, I have tried to setup PDF reading accoring to instructions found here https://support.smartbear.com/articles/testcomplete/testing-pdf-files-with-testcomplete/#Extr_Data_pdf I have javavirtualmachineC:\Program Files (x86)\Java\jre1.8.0_131\bin\client\jvm.dll and I have added pdf-box 1.8.13.jar and classes to project https://www.dropbox.com/s/16ojffsuzzr53rc/javasettings.PNG?dl=0 In script I get error "Unknown name load_3". same for load and load_2. Code completion works only until JavaClasses.org_apache_pdfbox_pdmodel.PDDocumentafter PDDocument nothing is shown. But for example code completion in JavaClasses.org_apache_pdfbox_util.PDFTextStripper shows three instances of NewInstance? What is wrong here? My code is quite simple function LoadPdf( FileName ); var docObj; begin docObj := JavaClasses.org_apache_pdfbox_pdmodel.PDDocument.load_3( FileName ); result := docObj; end; I have TestComplete 12. thanks, mikaSolved2.9KViews0likes2Comments