Highlighted
Absent Member.
Absent Member.
2740 views

SAP GUI client crashes frequently when automating with UFT 12.0

WE are automating SAP GUI test cases using UFT 12.0 . However we have seen SAP crashing frequently after running 1-2 scripts. Has anyone else faced the issue and if there is a solution to prevenet SAP crash?

 

OS: Win 7 Service Pack 1:32-bit, UFT 12.0 and SAP GUI Client 720

Tags (1)
0 Likes
4 Replies
Highlighted
Absent Member.. Absent Member..
Absent Member..

 We are noticing the same happening here.  I have been trying to figure out as to why.  Have you found a resolution to this issue as of yet?

Tags (3)
0 Likes
Highlighted
Absent Member.
Absent Member.

Hi I am Using UFT 12.02, if u resolved this error plz let me know how to do it

Tags (2)
0 Likes
Highlighted
Absent Member.
Absent Member.

We had the Problem before the SAP GUI was on Patch 3. So with Version 7200.1.3.1054 Patch Level 3 the Problem did not occur anymore.

0 Likes
Highlighted
Absent Member.
Absent Member.

Try increasing the wait time when opening GUIXT.  This works when using UFT 12.02.  When running it from HP ALM 11..52 we still see an issue with GUIXT locking up both UFT and SAP.  

Support Function

    Function ackSAPExistLogin(myUser,myPassword,myLanguage)
        ' Object Wrapper
        Set aSAPGui = SAPGuiSession("name:=ses\[0\]""guicomponenttype:=12")

        On Error Resume Next
    ' ===============================================================================================================================================================================================================================================
    ' License information for Muliple Logon modal

        ' Check if Multiple Logon modal exist
        If aSAPGui.SAPGuiWindow("name:=wnd\[1\]""guicomponenttype:=22").Exist(5) Then
        
            wait 10
            ' Select a radio button based on the input selection
            aSAPGui.SAPGuiWindow("name:=wnd\[1\]""guicomponenttype:=22""text:=License Information for Multiple Logon").SAPGuiRadioButton("guicomponenttype:=41""text:=Continue with this logon, without ending any other logons in system").Set "ON"
            aSAPGui.SAPGuiWindow("name:=wnd\[1\]""guicomponenttype:=22""text:=License Information for Multiple Logon").SAPGuiRadioButton("guicomponenttype:=41""text:=Continue with this logon, without ending any other logons in system").SetFocus
            
            ' Click on the button
            aSAPGui.SAPGuiWindow("name:=wnd\[1\]""guicomponenttype:=22""text:=License Information for Multiple Logon").SAPGuiButton("name:=btn\[0\]""guicomponenttype:=40").Click
    
            ' Wait
            wait 15

            ' Report Task
            If aSAPGui.SAPGuiWindow("transaction:=ZCSR""program:=ZVSD_CSR_COCKPIT""guicomponenttype:=21""name:=wnd\[0\]").Page("title:=Interaction Center - \[Identify Account\]").SAPFrame("title:=Interaction Center - \[Identify Account\]","visble:=True").Exist(2) Then
                Reporter.ReportEvent micPass,"SAP Netweaver Multiple Login Modal Prompt","The user was found to be logged into another system but continued to logged in without terminating the existing logins."
            Else
                Reporter.ReportEvent micDone,"SAP Netweaver Multiple Login Modal Prompt","The user did not logged in successfully. Check Netweaver portal prompt script triggered."
            End If
    
        End If

"Login_GUIXT Script Below

     'Call login function for SAP ECC
               Call SAPGuiLaunchAndLogon(myServer, myClient, myUser, myPassword, myLanguage)         
                wait 20

                ackSAPExistLogin myUser, myPassword, myLanguage
                   SapGuiSession(SapMainSession).SAPGuiWindow(SapMainWin).SendKey ENTER

                   loginSuccessful = SapGuiSession(SapMainSession).SAPGuiWindow(SapMainWin).Page("title:=Interaction Center - \[Identify Account\]").Exist(5)
                If Not loginSuccessful Then
                    SapGuiSession(SapMainSession).SAPGuiWindow(SapMainWin).Activate
                    ackSAPExistLogin myUser, myPassword, myLanguage
                        SapGuiSession(SapMainSession).SAPGuiWindow(SapMainWin).SendKey ENTER
                End If

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.