Export results from BAPI test to local excel sheet in UFT
I recently started to use SAP BAPI to test in UFT we have a combination of GUI and SAP BAPI's in our test. I want to know how do I read and write the values of what the BAPI returns to the local excel sheet. Is there a standard way of doing this? I could not find any or will it be custom code in C#
UFT has a data file and there are 'Global' sheet and other sheets corresponds to the name of Actions. So you may in your code import the data from the output of your BAPI Test into the Global sheet. In this way, the data will be dynamically loaded before running the UFT test.
For more detailed help, please refer to ADM online help.
The API test does not use a global sheet I know hoe to write to a global sheet in a gui test not sure what you are refering to I am importing an external sheet into my API test and want to write to that the method
does not work
yes, I was referring to GUI test. Sorry about that. For API test, you can either import the file in the Data pane or read content from a file with an Activity.
For customer code, it's also an option. You may add an Activity of Custom Code and put the desired data to an output value to be consumed by the other activities.