Forum Discussion
You can use Process.Terminate()
Ex: Sys.Process("EXCEL").Terminate()
By the way, why you are running Excel using TestedApps? If you are doing this to grab values from excel then I would suggest you use DDT.ExcelDriver() method
- Yusufm876 years agoContributor
Hi Shankar,
Thank you for you solution. But as I mentioned in my message that using ["Terminate"]() causes application to misbehave, I cannot use it under the circumstance.
In our test cases we are verifying various fields in Excel and checking if the formulas work. We are not retrieving any test data from excel.
Best Regards,
Yusuf
- shankar_r6 years agoCommunity Hero
In order to check the formula, you have to retrieve the value from excel validate whether the value is being calculated correctly.
If this statement is true in your case then you can very well use DDT.ExcelDriver() to retrieve the value and verify
- vthomeschoolmom6 years agoSuper Contributor
If not DDT then ADO might work better.
https://support.smartbear.com/testcomplete/docs/reference/program-objects/ado/index.html
Personally, I would not choose to open Excel just to read values from it. DDT has capacities that would allow that, and if sufficient, ADO works great.
Related Content
- 8 years ago
Recent Discussions
- 13 hours ago
- 13 hours ago