Using Same Excel file for dataDriven as well as to update Using Excel Write
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Using Same Excel file for dataDriven as well as to update Using Excel Write
In Data Driven loop , as the last statement , i am trying to update the last column as Status (looping via Rowindex maintained in Variable and incrementing ) , however when call excel.save , TestComplete throwing " Failed to delete the 'OrderData.xlsx' file. 12.28.38 Normal 0.13 0.13
How to use the same file for data driven loop and update the new column
excelSheet.Cell('H', excelRow).Value = message;
// Save the file to apply the changes
excelFile.Save();
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would ask Support about that directly. Here's the link:
https://support.smartbear.com/testcomplete/message
Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you, Marsha!
Hi @VeenaDevi ! Unfortunately, I wasn't able to locate your support ticket, could you let the Community know if you were able to solve the issue and provide details on that? Thank you!
Sonya Mihaljova
Community and Education Specialist
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Created ST for the same :
00486425
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am also getting the same error. I am writing the excel report at step level for each click, enter, select, etc. Before Excel.Save or Excel.Open step is completed, it is proceeding to the next line of code and eventually fails the test.
No proper integration of Excel.Save or Excel.Open is not concluded before it moves to the next line of code.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Support Ticket - 00489631
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Let me quote what support replied to Veena as this might be of help to others, as well:
>> The reason for this issue is that when you use data from the Excel file (read data) in the Data-Driven testing, it is not possible to write in this file. In this case, I would recommend creating a copy of this Excel file and write all changes there - thus it will help avoid this error.
Sonya Mihaljova
Community and Education Specialist
