Contributions
When using TestComplete 12.42, Keys() performs very slowly (up to 30 seconds between keystrokes)
We're evaluating moving from TestCompletre 12.1 to TestComplete 12.42 but we're running into a performance issue. When executingactiveWindow.Keys(), we're seeing a very long time (upwards of 30 seconds) per key stroke. Essentially, we launch a command line tool from cmd called loader.exe. We do this in Figure A below. You'll notice that we lose control of the window as it becomes a completely different application (from cmd to loader.exe) so we're using ActiveWindow to capture loader.exe then send it keys to sign in. You'll see how we launch CMD in Figure B. This works perfectly on TestComplete 12.1 We have performed our own testing to determine that ActiveWindow is not the issue and that writing directly to Command Prompt is not the issue. We also have loader.exe mapped and when I call the map loader.wndConsoleWindowClass.Keys() the issue occurs as well (See Figure C). I have validated that there is not an abnormal delay in the project for keystrokes or events. What are we doing incorrectly? FIGURE A function importFile(pathToTXTFile) { windowStyle = 1; //Not minimized. Visible. waitOnReturn = false; zCmd.cmd.SHELL.Run(ProjectSuite.Variables.INSTALLPATH+"\\loader.exe \""+pathToTXTFile+"\"", windowStyle, waitOnReturn); Delay(3000,"Assigning CMD as Active Window"); var activeWindow = Sys.Desktop.ActiveWindow(); activeWindow.Keys(ProjectSuite.Variables.USERNAME+"[Enter]"+ProjectSuite.Variables.PASSWORD+"[Enter]"+ProjectSuite.Variables.DATABASE+"[Enter]"); //login into the database Log.Message("FcLoader is processing: "+pathToTXTFile); } FIGURE B var cmd = { SHELL: Sys.OleObject("WScript.Shell"), command: null, //If you are executing a batch file, this should be the path to the batch file. run:function(command) { this.setDirectory(command); output = this.inputCommand(command); this.logResult(command,output); return output; } } FIGURE C var loader = Aliases.FcLoader; var frmloader = fcLoader.wndConsoleWindowClass;966Views0likes2CommentsHow do you package your DLLs for TestComplete to consume?
Our automation has a shared body of code between products it covers. I'm considering breaking off this shared code into a separate project. I can then use Jenkins to put that dependancy in place however I can't figure out what that dependancy looks like. Is it a DLL that projects load? Is it a project thank Jenkins checks out of version control and is then utilized by other scripts. (we use JScript currently) If it's a DLL, how do I build it?888Views0likes1Comment- 7KViews0likes0Comments
Re: checkpoint failing when actual values are equal to accepted values
I'll try that, however once this test failed it gave me the option to update the checkpoint. After updating the checkpoint it passes. But when I try to store that value in our Source Control (Git), it tells me there is no difference in the checkpoint, thus not allowing me to stre the updated checkpoint. If that is the case, then theoretically even truncation using SQL shouldn't produce a different result. But I'll try it.1.7KViews0likes1Commentcheckpoint failing when actual values are equal to accepted values
Suddenly I'm getting a failure from a Database Checkpoint thats alerting me of the following: The "SUM(P.ADJUSTED_TOTAL_STD_VOLUME)" field of row 0 contains a value (10928.6252034237) that differs from the stored one (10928.6252034237). It does this for all 100 rows of this checkpoint, continueally telling me that my actual value does not match my expected value even though they are the exact same. Not only that, it actually lists all 100 rows twice in the Additional Info tab. Meaning it tells me the same error occured twice. I'm using Windows Server 2008 and TestComplete 12.2 Has anyone seen this?1.7KViews0likes5Comments- 1.7KViews0likes0Comments