Contributions
Cannot use remote repository using git
I am trying to integrate git with TestComplete, but I cannot use remote repository. The article below says that "TestComplete cannot work with bare Git repositories." https://support.smartbear.com/testcomplete/docs/working-with/integration/scc/git/index.html Does that mean I can't use remote repository. Thanks, Hina124Views0likes1CommentRe: How to Execute command line utilities within a testcomplete script
Hi Alex, Thank you for the reply. So I want to execute the following commands in Command line in the following sequence: cd\ cd Elink\Deployment AXISComponents.exe 1 On command line it successfully launch the .exe file. I created equivalent powershell script, as below: Set-Location -Path C:\ELink\Deployment & "AXISComponents.exe" 1 And saved it into the fileC:\ELink\Silent Install\DeploymentFolder.ps1 Now I wrote TestComplete script to execute this powershell script, as below: function test6() { WshShell.Run("powershell -file C:\\ELink\\Silent Install\\DeploymentFolder.ps1"); } but the above script is not launching the .exe file. The problem is that it's hard to trace what's the cause because TestComplete is not even reporting any errors. Can you please let me know what I am doing wrong. Thanks, Hina476Views0likes1CommentHow to Execute command line utilities within a testcomplete script
I found the script below from TestComplete forums to execute the command line utilities from TestComplete script: function test() { Sys.OleObject("WScript.Shell").Run("C:\\Windows\\system32\\cmd.exe"); var ProcessCmd = Sys.Process("cmd"); var WdwCmd = ProcessCmd.Window("ConsoleWindowClass","*"); WdwCmd.Keys("dir [Enter]"); aqUtils.Delay(5000); WdwCmd.Close(3000); } But when I execute this script I get an error: "The window 'C:\Windows\system32\cmd.exe' is invisible and thus cannot be activated". I am not sure what's wrong with the code. I am trying to execute command line utilities within TestComplete script. Any help would be appreciated. Thanks, Hina542Views1like3CommentsRe: OCR and image based testing
Hi Marsha, Thanks for the reply. That's not what the problem is. Let me rephrase, so the above code works when I run it without the script extension. But when I copy and paste the same code as it is in script extension, it gives the error:'spNearestToCenter' is undefined. I don't know how to use OCR in script extension. Can you guide me how would I use OCR in script extension or how would I passspNearestToCenter as parameter so that script extension recognize it. Thanks, Hina352Views0likes0CommentsRe: OCR and image based testing
Hi, Thanks for the quick reply Marsha. I have another question regarding OCR. So I have a code that works absolutely fine. Below is the code that works. function Test1() { OCR["Recognize"](Sys["Process"]("AXISEL")["WinFormsObject"]("MainForm")["WinFormsObject"]("splitContainer1")["WinFormsObject"]("SplitterPanel", "", 1)["WinFormsObject"]("NavigationBar"))["BlockByText"]("Work Areas", spNearestToCenter)["Click"](); } When I copy and paste this code in script extension, I get the error message: 'spNearestToCenter' is undefined. My question is how can I use this code in script extension. Thanks, Hina363Views0likes2Comments- 865Views0likes2Comments