Catch CLR Bridge exceptions in JScript
Hello, is there a chance to catch .NET exceptions via the CLR bridge and handle them in JScript? Currently, when an exception occurs in my .NET assembly, I can nothandle this exception gracefully. The test just fails. Any ideas? Thanks Bernd679Views0likes0CommentsImprove TestComplete performance
Hi, We want to improve the performance of TestComplete. By switching from TC11 to TC12, we improved by 25% the overall time of execution ofour test suite (from nearly 10h to 7h15). But since mid December, we have lost 1h. Does anyone already had a such issue with TestComplete 12 ? Losing performance without any change ? In our way to improve perfomance, we want to switch from JScript to Javascript. All of our script are in JScript, does switching to Javascript will increasethe performance ? Most of our tests are Keywords Tests. Is it possible that converting these Keywords Tests to Scripts will improve performance too ? Thanks for your help.1.3KViews0likes1CommentError trying to verify array value from another script unit [//USEUNIT] in current script unit.
I am using TestComplete v11,31,242 and Jscript. I have been using TC and Jscript about three months now. So my understanding is limited. I am creating modular script units for functions that are going to be called repeatedly. Currently scripting search (regression) for patient search (our product is EMR for Hospitals/Clinics). To perform various searches based on patient name, source, account #, MRN, DOB, admission date, department, group etc. So I am collecting all the patient information by searching for the patient, selecting the patient and going to "View Detail Information". Collecting the above information and placing them in an array "pStat". The array function unit is called from the "Search" script unit. Then proceeding to perform searches. Once the patient is found, some of the information collected earlier is used to verify accuracy (property checkpoint). At the checkpoint I am getting an error. If I copy/paste the entire array script into the search script, it runs without any error! Can not figure out how to fix this. Please help. The "array" script: function getPatientStat() { . . . //select patient Aliases.browser.pifHome.aspnetForm.firstPatient.Click(); //view information Aliases.browser.swce.aspnetForm.menuViewInfo.Click(); //get patient info var pStat = []; var pStat = [Aliases.browser.swce.aspnetForm.panelPatientInfo.Name.contentText, Aliases.browser.swce.aspnetForm.panelPatientInfo.ptSource.contentText, Aliases.browser.swce.aspnetForm.panelPatientInfo.acNum.contentText, Aliases.browser.swce.aspnetForm.panelPatientInfo.MRN.contentText, Aliases.browser.swce.aspnetForm.panelPatientInfo.DOB.contentText, Aliases.browser.swce.aspnetForm.panelPatientInfo.aDate.contentText, Aliases.browser.swce.aspnetForm.panelPatientInfo.Dept.contentText, Aliases.browser.swce.aspnetForm.panelPatientInfo.Group.contentText]; The script collecting all the intended information. But failing in property checkpoint in "search" Unit. Property checkpoint: //USEUNIT Patient_Info //gather patient info Patient_Info.getPatientStat(); //select patient Aliases.browser.pifHome.aspnetForm.firstPatient.Click(); //view information Aliases.browser.swce.aspnetForm.menuViewInfo.Click(); //check MRN aqObject.CheckProperty(Aliases.browser.swce.aspnetForm.panelPatientInfo.MRN, "contentText", cmpEqual, pStat[3]); If the array function is included in search script, it runs with no problem. Thanks in advance! DaveSolved3.9KViews0likes8CommentsHow to slow down the execution of the test in a specific part of the script?
Hello, I was wondering...Is there any possible way to slow down Testcomplete for a while during a script execution? I've tried slowing down the execution using the Project\Playback\Delay Between Events property, but what I really need is something that slows down the execution only when I want, for as long as I want (sometimes I need to slow down the execution during a whole window test because it works slower than the rest of the system, so Delay() is not an option either) then go back to the original speed. It would be something like this: //"Normal" speed field.SetText("Text"); field.SetText("Text"); //Enters "slow" speed field.SetText("Text"); btnOK.Click(); wnd.Close(); ... //Back to normal speed field.SetText("Text"); So, is there any way to get this done? Thanks in advance!Solved4.7KViews1like6CommentsTestComplete returns NULL from Excel in Property Checkpoint, but returns Correct value in Jscript
I am using the PropertyCheckpoint to verifya value from UI with a value from an Excel. Thecheckpoint returns a NULL value from the Excel, but when i use a script to do the same, i get the correct value. Pleaselet me knowwhat the issue is. P.S: This is just one of themany "irregularities" i have found in TestComplete. Willbring them upwhen i get time.Solved4.6KViews0likes9Comments