Contributions
Re: “An exception occurred while the element specified in the test item was being executed"
Thank you for your suggestions. Looking at the code more carefully. I noticed that the connections are being closed after each test runs. I forgot that we also have connection to Excel and the code is closing both CSV and Excel connection after each test run through: 1. excelObj.Quit(); // Excel Object 2.Project.Variables.testCycleDetailsFile.Disconnect(); // this is the CSV file which has been declared as a project variables of DB table type. Looks like im back to square one. The issue is still intermittent where I ran 10 tests today. The same issue happened on scenario 6. I ran the same 10 again and all tests have passed successfully.1.1KViews0likes1CommentRe: “An exception occurred while the element specified in the test item was being executed"
What do you mean by 65 connections? Are you saying that the testcomplete cannot handle reading from 65 CSV files for example? If so, we are ok as I am only reading from one CSV. The issue is that the tool is not failing at specific scenarios. It is just failing at some random point. When testexecute failed, e.g. scenario 1. I will run it again on test complete, add a breakpoint and test over. The error will not happen again.2.4KViews0likes5CommentsRe: “An exception occurred while the element specified in the test item was being executed"
Hi, Thank you all for your suggestions. The Test Execute test item is the full regression pack which takes 2 hour to run, mostly because the scenarios are data driven but it will be impossible for me to put the code on the forum. I tried to add breakpoints and ran the full regression pack but this did not turn out well. The error happened on Scenario 22 but when I run scenario 22 on its own, the test passed. I ran the remaining tests where i got the error on scenario 34. I ran 34 and 35 and as expected the tests passed again. I checked the logs which does not show anything. I can see only the actions that test complete performed and the logs just stopped there without any error/details. Any other suggestion I should be considering?2.4KViews0likes7CommentsRe: “An exception occurred while the element specified in the test item was being executed"
Hi Robert, It will be difficult to share the code and this is why it is the issue as well. That 'Execute Test' test item is the main script which calls functions from another 10 test items. Any other options?2.4KViews0likes2Comments“An exception occurred while the element specified in the test item was being executed"
Hi, I am currently lost as Testcomplete is not showing me where the error is happening. The error (Please see attached) is happening intermittently. The 'Execute Tests' test item is where all my code is. There are a bunch of reusable codes which are driven depending on the data being picked up. Can someone please point me in the right direction? Thanks, Stephane2.8KViews0likes13CommentsRe: Chrome 69 extension for Test Complete 12.6.5545 available?
Hi, I am in exactly the same boat as you where I was on TC 12.50 and Chrome 68. I did the upgrade to TC 12.60 and Chrome 69 (along with the Chrome patches) and it all went wrong from there. I raise a support ticket where I was told to re install the chrome extension but this has not helped. I am waiting for their next response now. I have also uninstalled and reinstalled TC 12.60 but this has not made any difference either. I am currently out of options. Any other suggestions will be welcomed.2.1KViews0likes0Comments