NOTICE: Significant community changes coming soon
The header menu and the home page on our community will be changing soon. Get more information HERE.
Highlighted
Absent Member.
Absent Member.
2533 views

AJAX Behaviour and capturing data in chrome

Jump to solution

Hi all,

Please find my requirement below and kindly provide suggestions

1.On logging in,initially the home page is displayed(with headers and footers).The body contains a webservice which dynamically brings data (like notifications today) which keeps changing.

on recording using http protocol level,the login function makes a JSON `call which i am able to customize..

But i am not able to see the notification details in the home page page source since it is an webservice call without JSON` object.

2.I need those data to correlate and randomize.On recording i am getting

webcustomrequest("options","url) //ajax identified

webpagepost("url"/rest/etc)

which one to use to call that service and verify and get those notification data in page source as well

3.Tried using ajax web driven as well,but tha`t doesnt help..

Could anyone kindly elaborate on this..Thanks in advance

0 Likes
1 Solution

Accepted Solutions
Highlighted
Absent Member.
Absent Member.

You should be able to see the server response in the replay Truelog "In Body / Data" section, and add a verification.

With AJAX at protocol level you should check  the Out-Header; compare the Record / Replay Truelog Out headers and you may see a custom HTTP header that the server expects (you can use the WebHeaderAdd function to add this).

You should log a support case and let them see the project

View solution in original post

0 Likes
3 Replies
Highlighted
Absent Member.
Absent Member.

You should be able to see the server response in the replay Truelog "In Body / Data" section, and add a verification.

With AJAX at protocol level you should check  the Out-Header; compare the Record / Replay Truelog Out headers and you may see a custom HTTP header that the server expects (you can use the WebHeaderAdd function to add this).

You should log a support case and let them see the project

View solution in original post

0 Likes
Highlighted
Absent Member.
Absent Member.

Thank you.the solution worked for few minutes..but got the below issue.Pls help

I added Webheaderadd("y-yyy-yyyy","dfiughw8e57gvbgib57nrtgnuein5y7") before the ajax call. where y-yyy-yyyy is the security token and "dfiughw8e57gvbgib57nrtgnuein5y7" is the token i got during recording..

I was able to replay the script for three times.Later the token got expired.this token resides in one of the cookieset as well.How to parse this token.i tried with webresponseparsehdr as well.But not sure on how to use the syntax..tried with different syntax.Kindly provide a solution in an uderstandable way pls

0 Likes
Highlighted
Absent Member.
Absent Member.

Thank you.the solution worked for few minutes..but got the below issue.Pls help

I added Webheaderadd("y-yyy-yyyy","dfiughw8e57gvbgib57nrtgnuein5y7") before the ajax call. where y-yyy-yyyy is the security token and "dfiughw8e57gvbgib57nrtgnuein5y7" is the token i got during recording..

I was able to replay the script for three times.Later the token got expired.this token resides in one of the cookieset as well.How to parse this token.i tried with webresponseparsehdr as well.But not sure on how to use the syntax..tried with different syntax.Kindly provide a solution in an uderstandable way

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.