Contributions
Re: Your project suite '...' is located on a network drive
Unfortunately, no. The window is a TestComplete window, that appears before the script executes. There would be no code yet executed that would be able to detect it as a unexpected window. And I couldn't get any actions recorded, because the object spy and record functions are unavailable until you click Yes or No. Ron10 months agoPlace TestComplete QuestionsTestComplete Questions293Views0likes1CommentYour project suite '...' is located on a network drive
TestComplete 15.44 Web application testing Moving our tests to the cloud. They are unattended, so there is no one there to watch them. Because all of the Document folders are on networked drives, starting a project pops up with the "Your project suite '...' is located on a network drive"dialog box. The tests stop until someone has to log in to the cloud account and answer the question. The problem is with 397 project suites, I don't want to have to run each one just to update the .pjs file. Nor do I want to edit all 397 .pjs files manually. Is there a way to globally answer the popup dialog box as No for all projects? Additionally, this is a TestComplete issue for *ANY* popup dialog, where it waits for an answer before proceeding. Yes, you can set a timeout for TestComplete, and it will eventually fail, but the next time it runs, it asks again. There needs to be a way to prevent/answer dialogs like this, because more and more tests are unattended (Think Continuous Improvement environments) Most tests are started as command line using scripts, so if there is a command line solution, that might work. Ron10 months agoPlace TestComplete QuestionsTestComplete Questions316Views0likes3CommentsRe: Chrome 107 and Alerts
Chiming in here to agree. Now that Chrome is at Version 110.0.5481.178, and IE11 was recently (last week) forcibly decommissioned, these alerts are causing a lot of our test cases to have to be reverted to manual steps. That's not a good look for an Automation platform.646Views0likes0CommentsTestComplete 15 handling CAC logins
Web interface testing TestComplete 15.44 Scripts (VBScript ) Chrome 108 Chrome plugin 14.0.0 We have to log in to our web application with a CAC/SmartCard. The certificate must be selected from the dialog pictured below, then click OK. It's not part of Sys.Browser.Page, as ObjectSpy can't resolve it or any of it's parts as objects or coordinates. I tried recording the process as a script, but the results click on the underlying web page coordinates, not the buttons. I've tried .Keys("[ENTER]"). That works from the keyboard, but not from the Keys statement I've exhausted my ideas, and ChatGPT was no help. Has anyone here successfully handled this dialog? Thanks in advance for any suggestions. Ron315Views0likes1CommentRunner.Halt generates "Execution is already completed" error
Test Complete 15.20 Web testing VBScript All my tests worked perfectly in Test Complete 12.60. Now, in 15.20 the Runner.Halt instructions generate an error "Execution is already complete". It's as if the .Halt procedure is trying to do something after the script has ended. The other 4 statements in the 'If" execute properly. Any ideas. If TCID_haltOK Then SignalHalt ScreenShot "WaitforENAFail" WriteEmail "WAITFORENA time out obj=" & obj & " name=" & name WriteSPREADSHEET "TCID-HALT-0000-0000", "", "FAILED" Runner.Halt "WAITFORENA time out obj=" & obj & " name=" & name End IfSolved1.1KViews0likes4CommentsRe: GeneralEvents_OnTimeout doesn't execute
Sorry, forgot to add this to the header. We have no Admin access to our DoD systems This version (12.6) is the only one on the install-able list. So sorry, we can't yet upgrade. Perhaps in a year or two. Regardless of the fact it's a few years old, this functionality should exist, and should work, correct?1.2KViews0likes1CommentGeneralEvents_OnTimeout doesn't execute
Test Complete 12.6 Web testing 100% VBScript My suites are ALL built as ONE project per suite We have no Admin access to our DoD systems This version (12.6) is the only one on the install-able list. I've started running all of our projects using command line parameters from scheduled Power Shell scripts. The .ps1 scripts start Test Complete as follows: $process = Start-Process -Wait -PassThru -filepath `"$global:tcpath`" -ArgumentList `"$global:projpath$global:app`", $global:timeout, $global:indexstart, $global:indexend, $global:indexstep, "/run", "/exit" The parameters look (in general) like this: $global:tcpath = "C:\Program Files (x86)\SmartBear\TestComplete 12\x64\Bin\TestComplete.exe" $global:app = "PXC_QUES\PXC_QUES.pjs" $global:timeout = "/timeout:900" #15 minutes $global:indexstart = "STARTHERE=1" $global:indexend = "ENDHERE=4" $global:indexstep = "STEPHERE=1" and when the project runs, it is compliant to the /timeout value, that is, if the test runs longer than 15 minutes, Test Complete will stop with a timeout error and return the appropriate return code of 4. The issue is that GeneralEvents_OnTimeout never executes when the test times out. Sub GeneralEvents_OnTimeout(Sender, Params) Call aqFile.WriteToTextFile(TCID_email, "----- GeneralEvent OnTimeout", aqFile.ctANSI, False) TerminateBrowsersIE11 End Sub This means I don't terminate the browser, and this causes the Power Shell script to hang because the -Wait parameter is waiting for the child process (browser) to complete. I have Stop on Error UNchecked (i've tries it both ways). I have all my GeneralEvents in their own Unit_LIB_GeneralEvents file, and that unit is included ('USEUNIT) in every other unit, so it should be reachable. I suspect I've missed something fundamental, but find no hints in previous posts, nor the "Handling Events TestComplete Documentation" Additionally I've tried the following, and none of these execute either. I would expect OnStartTest to run when the test starts, but I never get the message in the email file from any of these. Sub GeneralEvents_OnStartTest(Sender) Call aqFile.WriteToTextFile(TCID_email, "----- GeneralEvent OnStartTest", aqFile.ctANSI, False) End Sub Sub GeneralEvents_OnStopTest(Sender) Call aqFile.WriteToTextFile(TCID_email, "----- GeneralEvent OnStopTest", aqFile.ctANSI, False) End Sub Sub GeneralEvents_OnLogError(Sender) Call aqFile.WriteToTextFile(TCID_email, "----- GeneralEvent OnLogError", aqFile.ctANSI, False) End Sub Thanks in advance for any advice.Solved1.3KViews0likes6Comments