Copy and paste data from Excel to application under test (javascript)
My application under test is a desktop app for finance
I need to copy a range of data from an xlsx file to the clipboard and then paste this into my app, i.e. I do not need to read the data into TestComplete e.g. in sheet2 of test.xlsx select and copy a2:j30
I can do this by opening Excel, selecting the data and then copying this into my app
This is fine my dev setup, but in my Test environment the servers do not have Excel installed
All the Excel examples I have seen seem to be for individual cells rather than a range of cells.
The link below suggest using COM, but the sample is only for reading the data.
Is what I am trying to do possible, and if so can anyone give some pointers?
you would need to scrip that portion, and create a helper function to "copy" the values from the selected cell ranges.
something like a for loop restricted by the length set by the user dictating the rows to iterate over, appending each cell value to a list or dictionary? I think would be the simplest way to reuse the values again later in another application as your end use would.