Specify an variable Excel file to check
Hi There,
I've made an keywordtest in which I export data and save this data in an excelfile.
With parameters the Keywordtest is to be executed in different situations in my desktop program.
eg:
when I start the test in TAB "ServiceAmounts"
Then I go to this TAB with an Variable OCR Parametervalue "ServiceAmounts"
Then I export the DATA in this TAB to a file with the (variable) name "ServiceAmountsAfter.xlsx" which to compare with "ServiceAmountBefore.xlsx", so far so good.
But now I want to use this keywordtest with a parameter "Service Agreements" in which I go to TAB "ServiceAgreements" and export the data to the file "ServiceAgreementsAfter.xlsx" which to compare with "ServiceAgreementsBefore.xlslx." but the excelcheckpoint has the operationname "ServiceAmountsBefore"and not "ServiceAgreementsBefore" and I don't now how to make this a variable value.
I use some easy Pythonscripts, but I'm not an expert; maybey it's possibel to use a script to make this name variable or are there any other solutions ?
Greetings,
Sjef
The Excel checkpoint instructions say you can use a variable parameter
https://support.smartbear.com/testcomplete/docs/keyword-testing/reference/excel/excel-checkpoint.htm
like this
See if that works for you.
Just curious - why are you exporting data every time instead of just starting with the data in the Excel file?