DX Unified Infrastructure Management

  • 1.  E2E with SAP Logon

    Posted Dec 14, 2016 10:43 AM

    Hi everyone.

     

    Somebody already have configured E2E appmon to test SAP logon?

    Can you share your script with me?

     

    Thanks



  • 2.  Re: E2E with SAP Logon

    Posted Dec 16, 2016 01:35 PM

    This is the script which I am writing. But is not working as expected. 

     

    Anyone can help me to improve it?

     

    Shell("saplogon",1)
    UseWindow("SAPLOGON.EXE|#32770|SAP Logon 740",1)
     SendKeys("<Enter>")

    UseWindow("SAPLOGON.EXE|Afx:60960000:1008|SAP|1",1)
     ClickMouse(Left,Down,207,64)
     ClickMouse(Left,Up,207,64)
     SendKeys("e<Backspace>teste01<Tab>mudar123<Num Enter>")

    UseWindow("SAPLOGON.EXE|SAP_FRONTEND_SESSION|SAP",1)
     SendKeys("<Enter>")

    ssap=UseWindow("SAPLOGON.EXE|Edit|SAP Easy Access|1")
     SendKeys("S_ALR_87013611")
     pause 2
     SendKeys("<Enter>")

     pause 2

    UseWindow("SAPLOGON.EXE|Afx:69540000:1008|Centros custo: real/plano/desvio: Selecionar|1",1)
     ClickMouse(Left,Down,256,40)
     ClickMouse(Left,Up,256,40)
     SendKeys("<Down><Down><Down><Down><Down><Down><Down><Down><Down>")
     pause 2
     SendKeys("5113003002")
     pause 2
     SendKeys("<F8>")


     oet = UseOCREngine(2)
    UseWindow("SAPLOGON.EXE|Afx:69540000:1008|CeCst:real/plan/desv|1",1)
     ClickOnTextOCR("39.170,OO", left, double, InArea(263, 184, 100, 15))

     pause 2


    UseWindow("SAPLOGON.EXE|Afx:69540000:b|Selecionar relatório|1",1)
     ClickMouse(Left,Up,129,32)
     ClickMouse(Left,Double,129,32)

     pause 2

    UseWindow("SAPLOGON.EXE|Afx:69540000:0:00010003:00000010:00000000|Exibir part.indiv.de custos reais p/centros de custo|1",1)
     WriteCombo("1","/nex")
     SendKeys("<Enter>")



  • 3.  Re: E2E with SAP Logon

    Posted Dec 19, 2016 07:59 AM

    Hi,

     

    Anyone?

     

    Thanks



  • 4.  Re: E2E with SAP Logon

    Posted Dec 27, 2016 02:50 PM

    Hi,

    I have a problem with the script execution. Some times it inserts the username and password and some times doesn't.

    But finaly I figured out what was happaning. Actually each window inside SAP, opens with a diferent name each time that the session is started. That was the reason why the script wasn’t inserting the username and password. Because was impossible to find the correctly window. To solve this,, I just ignored the window's name and used pauses before inserting the username and password, this way using always the window in evidence.

     

    I hope help someone.

     

    Thanks