Highlighted
Anonymous_User Absent Member.
Absent Member.
1139 views

Re: Expirience Manager: Get Dynamic value from Cookie


I asked internally and here was a response: Both scenarios must be in
the same test. In the scenario where you want to capture the cookie
value, add a capture parameter where name = {someName} (include the
curly braces) left boundary = Set-Cookie:.... and right boundary = ;.
In a subsequent scenario, insert {someName} where you want the captured
value to be used and it will be replaced at run-time.

Please let us know if this works for you or if you have any additional
questions.


--
tisenberg
------------------------------------------------------------------------
tisenberg's Profile: https://forums.netiq.com/member.php?userid=1851
View this thread: https://forums.netiq.com/showthread.php?t=48028

Labels (1)
0 Likes
7 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Expirience Manager: Get Dynamic value from Cookie


Hi:

Thanks for the Tip, I make some test, but it steel not working. If there
any way to check what data is captured and verify if the data is right
or I need to correct the left and right boundary?

Thanks


--
jcarrera
------------------------------------------------------------------------
jcarrera's Profile: https://forums.netiq.com/member.php?userid=5193
View this thread: https://forums.netiq.com/showthread.php?t=48028

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Expirience Manager: Get Dynamic value from Cookie


I think we are reaching the point that you may need to work with Support
or more accurately, consulting to work through some of these
requirements. I asked someone internally for some more ideas and here
is the response. This is a bit out of my area of expertise so I'm not
really able to decipher it towards your requirements. Read the details
below, if you need more assistance, I think Consulting/Services is your
best option:

Debug logging will report what is collected by capture data, but it can
be tough to find. Another approach would be to create a "Content
Matcher" on the validation tab. Content Matcher data is included in the
resulting alarm properties. If you use the "regex" option, you should
be able to create a matcher that would collect the same information as
your capture data and give you some visibility.


--
tisenberg
------------------------------------------------------------------------
tisenberg's Profile: https://forums.netiq.com/member.php?userid=1851
View this thread: https://forums.netiq.com/showthread.php?t=48028

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Expirience Manager: Get Dynamic value from Cookie


Thanks for the help.

I look in the Debug logging and I found the lines where the data supost
to be captured. But unfortunately it seems this don't work. I made a
simple "Capture data" of another part of the page and it works, but the
scenario that I'm putting to capture the "Set-Cookie" don`t return the
data of the cookie, it remains in blank.

Any other suggestion?

Thanks


--
jcarrera
------------------------------------------------------------------------
jcarrera's Profile: https://forums.netiq.com/member.php?userid=5193
View this thread: https://forums.netiq.com/showthread.php?t=48028

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Expirience Manager: Get Dynamic value from Cookie


more copy/paste details: most likely the boundaries defined in your
cookie capture are incorrect. get a better look at the data you are
loading by turning on wire logging:
"log4j.category.httpclient.wire=DEBUG, A1". then compare what is being
received with your capture rule.


--
tisenberg
------------------------------------------------------------------------
tisenberg's Profile: https://forums.netiq.com/member.php?userid=1851
View this thread: https://forums.netiq.com/showthread.php?t=48028

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Expirience Manager: Get Dynamic value from Cookie


Thanks:

I turn in the wire logging and I figure that there's no "Set-Cookie"
line in the execution of the scenario. It is probably that the
Experience Manager can't execute or recognize the "Set-Cookie" of the
web page?


--
jcarrera
------------------------------------------------------------------------
jcarrera's Profile: https://forums.netiq.com/member.php?userid=5193
View this thread: https://forums.netiq.com/showthread.php?t=48028

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Expirience Manager: Get Dynamic value from Cookie


Thanks for all the help, we notice that the problem was not the cookie,
the Experience manager can't complet the authentication process, we
suposed that there is some script in the web page that experience
manager can't handel and this si the reazon why the test fails.

Thanks for all the help, it was very helpfully


--
jcarrera
------------------------------------------------------------------------
jcarrera's Profile: https://forums.netiq.com/member.php?userid=5193
View this thread: https://forums.netiq.com/showthread.php?t=48028

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Expirience Manager: Get Dynamic value from Cookie


tisenberg;230838 Wrote:
> more copy/paste details: most likely the boundaries defined in your
> cookie capture are incorrect. get a better look at the data you are
> loading by turning on wire logging:
> "log4j.category.httpclient.wire=DEBUG, A1". then compare what is being
> received with your capture rule.


Thanks tisenberg for help now i got you point. i have same problem now
i got the point. and thanks jcarrera for share such a excellent post.


--
alandavid
------------------------------------------------------------------------
alandavid's Profile: https://forums.netiq.com/member.php?userid=5794
View this thread: https://forums.netiq.com/showthread.php?t=48028

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.