Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to access multiple SAP sessions by script?
#1
Solved: 11 Years, 3 Months, 4 Weeks ago Exclamation 

Hi,

I'm building a script in QTP that performs changes in a SAP web dynpro based solution, and this triggers updates in 4 different SAP systems. Next step in the script is to log onto these 4 SAP systems and check if the changes have been performed locally. But I'm having trouble accessing the SAP systems; the GUI is started, but QTP does not catch the system called, so the logon screen does not appear, and the script halts.

I've worked with the Record & run settings, and currently I have them set to 'Record and run test on any open [application]'.

I have tried two approaches: splitting the test up in bits (as per system) and trying to tie these into a sequence, but I cannot make it work.
The other solution is to have the entire test in one script, I kinda prefer this solution. But it does not work yet...

Any ideas? How would you do this?


Thanks in advance,
/Osprey
Reply
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
I found the solution myself, simply by adding an auto logon:

Code:
SAPGuiUtil.AutoLogon "[SAP system description]", SAP client, "user", "[password]", "[language]"
Using this function launches an SAP logon Smile

/Osprey
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Can we access a table element in Script at runtime without a corr. test object? sepgs2004 1 3,043 10-14-2013, 07:05 PM
Last Post: anil2u
  SAP QTP issue-SAP screen disappear Jyobtech 2 3,363 02-27-2013, 10:01 AM
Last Post: Jyobtech
  Creating multiple lines under a header - SAP Fredodo 7 5,835 01-02-2013, 04:54 PM
Last Post: Saleel Prabhu
  QTP Real-time Test Script for sap application kamal262007 1 3,439 10-03-2012, 10:35 AM
Last Post: Ankesh
  How to use same script for multiple URLs mansis 29 21,688 09-01-2012, 05:12 PM
Last Post: mansis

Forum Jump:


Users browsing this thread: 1 Guest(s)