07-18-2012, 07:56 AM
Currently using QTP 9.2 with Sap Add in.
The following expert view code is used within QTP
It does not record the file selection for the attachment. Do you have any suggestion as to how I can learn about this. Can't find any examples?
The following expert view code is used within QTP
Code:
SAPGuiSession("Session").SAPGuiWindow("Change Material (Initial").Maximize
SAPGuiSession("Session").SAPGuiWindow("Change Material (Initial").SAPGuiEdit("Material").Set "10042"
SAPGuiSession("Session").SAPGuiWindow("Change Material (Initial").SendKey ENTER
SAPGuiSession("Session").SAPGuiWindow("Change Material 10042").SAPGuiToolbar("ToolBarControl").PressButton "%GOS_TOOLBOX"
SAPGuiSession("Session").SAPGuiWindow("Change Material 10042").SAPGuiToolbar("ToolBarControl_2").PressContextButton "CREATE_ATTA"
SAPGuiSession("Session").SAPGuiWindow("Change Material 10042").SAPGuiToolbar("ToolBarControl_2").SelectMenuItem "Create Attachment"
It does not record the file selection for the attachment. Do you have any suggestion as to how I can learn about this. Can't find any examples?