Unified Functional Testing Practitioners Forum
Showing results for 
Search instead for 
Do you mean 

SAP GUI client crashes frequently when automating with UFT 12.0

Occasional Contributor

SAP GUI client crashes frequently when automating with UFT 12.0

[ Edited ]

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

4 REPLIES
Occasional Advisor

Re: SAP GUI client crashes frequently when automating with UFT 12.0

 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?

Occasional Collector

Re: SAP GUI client crashes frequently when automating with UFT 12.0

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

Visitor

Re: SAP GUI client crashes frequently when automating with UFT 12.0

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.

Senior Member

Re: SAP GUI client crashes frequently when automating with UFT 12.0

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