Highlighted
Absent Member.
Absent Member.
313 views

UserID is not captured in the recorded script, then how to deal with the sessionID

I am working on an application where  the steps are

a) enter the login URL, but it lands to another URL

b) So UserId,pwd is given in the landed URL

C) But userID and password is not captured in the script.

d) There is a sessionID kind of dynamic value getting generated. How to make LR to capture the UserID,Pwd and sessionID.

 

Pls find the attachments for script idea as a sample.

Awaiting for the responses. Pls suggest.

 

 

0 Likes
1 Reply
Highlighted
Frequent Contributor.
Frequent Contributor.

Re: UserID is not captured in the recorded script, then how to deal with the sessionID

Hello, 

Do you mean there is a redirection (301,302, 303) from server? 

then you can use 

"IgnoreRedirections=Yes", and

"Scope=Headers",

In you web_reg_save_param... function to get the redirection URL from server response.

Refer to Help->Function Reference for more details about the API.

Regards,

Bingle(LoadRunner R&D) 

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.