SAPGUI Script for Password Change

532 views
Skip to first unread message

Chinnadurai

unread,
Jul 5, 2010, 12:08:40 AM7/5/10
to LoadRunner
Hi,

I have created 1000 users through SAPGUI Script, but I need to change
the initial password for the 1000 users.

SAPGUI Recording not adding event for the password change screen/
field.

How can I achieve the password change functionality (SAP System)?

Regards,
Chinnadurai R

Krishnakanth PPS

unread,
Jul 6, 2010, 9:24:57 AM7/6/10
to lr-loa...@googlegroups.com
If you wanna do it from backend, check with the DB/BASIS guys depending on what is the SAP Backend the app is built on. This is the wrong forum to be in.

Also, while trying to change password from LoadRunner, did you try using only KeyStrokes in SAP GUI protocol. Look into your control.h file, and see if you can change anything there.


--
You received this message because you are subscribed to the Google "LoadRunner" group.
To post to this group, send email to LR-Loa...@googlegroups.com
To unsubscribe from this group, send email to
LR-LoadRunne...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/LR-LoadRunner?hl=en

Ltester

unread,
Jul 6, 2010, 3:10:57 PM7/6/10
to LoadRunner
make sure that scripting is enabled from the backend system, there is
a parameter that you need to set as "True", once you enter the
password in SAP GUI, loadrunner will change it to *****, then you
would have to substitute that with the actual password and save it as
a parameter if you want to.

On Jul 6, 6:24 am, Krishnakanth PPS <krishnakanth....@gmail.com>
wrote:
> If you wanna do it from backend, check with the DB/BASIS guys depending on
> what is the SAP Backend the app is built on. This is the wrong forum to be
> in.
>
> Also, while trying to change password from LoadRunner, did you try using
> only KeyStrokes in SAP GUI protocol. Look into your control.h file, and see
> if you can change anything there.
>
> On Mon, Jul 5, 2010 at 9:38 AM, Chinnadurai <chinnadurai1...@gmail.com>wrote:
>
>
>
> > Hi,
>
> > I have created 1000 users through SAPGUI Script, but I need to change
> > the initial password for the 1000 users.
>
> > SAPGUI Recording not adding event for the password change screen/
> > field.
>
> > How can I achieve the password change functionality (SAP System)?
>
> > Regards,
> > Chinnadurai R
>
> > --
> > You received this message because you are subscribed to the Google
> > "LoadRunner" group.
> > To post to this group, send email to LR-Loa...@googlegroups.com
> > To unsubscribe from this group, send email to
> > LR-LoadRunne...@googlegroups.com<LR-LoadRunner%2Bunsubscribe@goog­legroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/LR-LoadRunner?hl=en- Hide quoted text -
>
> - Show quoted text -

Gerrie Holtzhausen

unread,
Jul 10, 2013, 2:11:05 AM7/10/13
to LR-Loa...@googlegroups.com
I have set the config to allow script on SAP GUI.

Loadrunner does not record the new password to be set.
Do you perhaps have source code available that I can insert for the new password?

Can you please confirm how I would be able to record SAP GUI 7.30 with Loadrunner 11.51.
I am currently experiencing difficulty in recording the change password steps as it is not recording all the steps.
I do get the username and initial password but the recording for the new password details are not available and I need to change the password for 1000 users.

    /*Before running script, enter password in place of asterisks in logon function*/

    lr_think_time(41);

    sapgui_logon("ASAPTEST006", //username
        "*****",  //initial password
        "584",
        "EN",
        BEGIN_OPTIONAL,
            "AdditionalInfo=sapgui1023",
        END_OPTIONAL);


Regards
Gerrie Holtzhausen
mailto: gholtz...@gmail.com

Pradhyumna Gupta

unread,
Jul 10, 2013, 12:42:16 PM7/10/13
to LR-Loa...@googlegroups.com

Well if you don't find a solution, ask your basis guys to create users as service users with access to whatever tcodes needed. Service users do not need a password reset upon first login.

You received this message because you are subscribed to the Google Groups "LoadRunner" group.
To unsubscribe from this group and stop receiving emails from it, send an email to LR-LoadRunne...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Perf.Raja

unread,
Jul 11, 2013, 6:00:49 AM7/11/13
to LR-Loa...@googlegroups.com

Hi,

I have came across the same situation and found a way to reset the password. LR wont record password reset window.Get the object ID for the new password and confirm password field by recording it using Script recording and playback... menu that would be available in rightmost top of SAPGUI screen itself. Then add Sapgui_setText function in LR script to set the values for the object id's.Attached image for reference..

Gerrie Holtzhausen

unread,
Jul 11, 2013, 8:32:33 AM7/11/13
to LR-Loa...@googlegroups.com
Thanks, I will give it a try.


--
You received this message because you are subscribed to the Google Groups "LoadRunner" group.
To unsubscribe from this group and stop receiving emails from it, send an email to LR-LoadRunne...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Regards
Gerrie Holtzhausen
Cell 078 0463 075

Guilherme Ramalho

unread,
Sep 5, 2014, 7:47:00 AM9/5/14
to lr-loadrunner
Hey Gerrie

You need to change the record options, in the CODE GENERATION session , deselect the option Generate logon operation as a single step, should work.

Regards.

Breski


--
You received this message because you are subscribed to the Google Groups "LoadRunner" group.
To unsubscribe from this group and stop receiving emails from it, send an email to LR-LoadRunne...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Guilherme B. Ramalho

Bhavin Patel

unread,
Sep 6, 2014, 11:38:36 AM9/6/14
to LR-Loa...@googlegroups.com
Hi Chinnadurai,
Your requirement is change initial password for 1000 user! This is functional requirement and performance. Experts had given good option but I would suggest to use any functional testing tool (UFT has SAP add-in) to perform this task or any other task which are functional testing related. 
You can also make password update though backed script. (read data from text and update ) 
I hope this helps! 
Reply all
Reply to author
Forward
0 new messages