Highlighted
Absent Member.
Absent Member.
794 views

Need to correlate below Json reuqest

Hi ,

I need to correlate below json request in script .

web_custom_request("plans", 
        "URL=https://.com/=PayItPlanIt", 
        "Method=PUT", 
        "Resource=0", 
        "RecContentType=application/json", 
        "Referer=https:///create/review", 
        "Snapshot=t30.inf", 
        "Mode=HTML", 
        "Body={\"id\":\"mTxZ4qEcDUhf2esrxCRlYvd5g0i4sfIHSarnUqcKiflQMPlxS8BeqVnQ9MC7y8oYFmhXnMY2nIBUodzvKJnGH8mXCNcOg0AkFPeawxmSEQFY2P+Lkk834BzVSfvXSBFysyfvcVTbROfk2RZrXaBt6x5Z0tjeIMtehq0cxLFRgakTuV4s26Uc79H+aBnscyCPPz7zZJGTT2ZSBtJw279V1Mx6aNd9+hBGmcA1n+Tx8Rz3fY2QvbC8nvacZ7YpD44vtorvaZLXryIadIkpcZjegotS8EY7H5jWDa7sA1DXD/VPgMWRCOBG4hmpwsz5boW8rYZ2TMuDtqKjc7+WlWDlLXGuVKTL1DLeQy0soSOoq2nCZgl6auU6yeC3cNnZXahBgIfNVKh5bOdI0PcgVWVwSsRSOqHZsTNacj6pRQtaCzcPDzzSBRuBBxbp33NGlDz9lD6Hh0MblZvZNeUPTmJzzqZOKQNuQTxHGO/7evaHlHptzWlYIKqjjskz7myxihOrMSivaXnJIrkzkPq6IQvqvoBzE2PpEFtS7seTLeJQdhDK3Y9MNKGN6Le82/GDmGL0TYj38K8/GJWRZza08OQYEdoYvXoDmwP2Ws3XyTCPOJJKSWerY6GMbhrnBFkp/kLY4vluRr3LEcuDiWv1DXAcOthgdpvuA0oG1smNvQXmqCeetn8bSjDYOza35SWm0LwBGXUrgkT4W7Iyr3BJDIgqQHxK2qLcfUVvMQ+SS52C+0AKaybLK9R8bfJtBZ7VkmhvaBQCFIrm9AYm7ArR0jyFCCTylPSwoWt1Kl3p7JsLxvgFS7x35XM0a+TOzgZo9Uys8aE+y7rDEjkuH3Zi8zRAm7ntbukDw1+ygg2KpGzMsQ6hz8sJLk3R7zSVUEgkUZUGQbx4paIYB5ZKSBNxddoLVUgGLDoK11bLEbt/jY1sntFbvxSPJuwzm06WTXM3MmR9xgoZ0XqkTKQ/HWCL8+wHGuy7cH/CqAMR70gHtEh9O+7aSjmCWTNe4mUK8mKULGh6t2Aszp+eFsfHD5uGoR18slJO3PMRHaVEaPZ7S12f0+X9OtKlPIk+NccbnNv8ZGXR1cLtEV9GxPkpt6pdcDesLFVeSV+Vv3/8RGRiG6FNuTfmFiqPqqFodApLK9VvoNWo289SIsQtNp4whUP//qTIPFWAjogKACL6ADK145Xh7ydO7M5B73UiNNEuAh8JOtVA+xW5WoOK9djQLUjpKqyAKGwoIE3CSvVd4jX2h/gV5PBPc39KXkSzGPT8h4N3ygwFjleOdVAa1qp4+Ayj0fIrYIIPcyQsbGOeH8xCR4nD30/NCHBwxk9IKtAnXaizq1L84l8c9LrzmGwCrGoyVGpicP4/4QKa3R7w+7XWnWh4sSQ6zXsND2vCzaD61FIib4shc1gbm4ri92Ye8D0kc8o5eg==\",\"description\":\"desc\"}", 
        LAST);

 

can some one please help how to corelate json request completely

Tags (1)
0 Likes
3 Replies
Highlighted
Super Contributor.. Super Contributor..
Super Contributor..

Re: Need to correlate below Json reuqest

Palani0607,

Not sure if this will work for you.  I created my own JSON files and did a manual coorelation. I put all my JSON files (over 5K) in one dat file, single row per JSON.

Larry

 

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Need to correlate below Json reuqest

HI ,

Actually i need to correlate below ID value which is body.

I tried to capture using

web_reg_save_param("desc_id",
        "LB={\"id\":\"",
        "RB=\"",
        "NotFound=ERROR",
        "ORD=ALL",
        "Convert=HTML_TO_URL",
        "Search=Body",
        LAST);

 

below is the complete request in script.

web_custom_request("plans", 
        "URL=https://?product_name=PayItPlanIt", 
        "Method=PUT", 
        "Resource=0", 
        "RecContentType=application/json", 
        "Referer=https/create/review", 
        "Snapshot=t30.inf", 
        "Mode=HTML", 
        "EncType=application/json", 
        "Body={\"id\":\"m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0+X9OtKlPIk+NccbnNv8ZGXR1cLtEV9GxPkpt6pdcDesLFVeSV+Vv3/8RGRiG6FNuTfmFiqPqqFodApLK9VvoNWo289SIsQtNp4whUP//qTIPFWAjogKACL6ADK145Xh7ydO7M5B73UiNNEuAh8JOtVA+xW5WoOK9djQLUjpKqyAKGwoIE3CSvVd4jX2h/gV5PBPc39KXkSzGPT8h4N3ygwFjleOdVAa1qp4+Ayj0fIrYIIPcyQsbGOeH8xCR4nD30/NCHBwxk9IKtAnXaizq1L84l8c9LrzmGwCrGoyVGpicP4/4QKa3R7w+7XWnWh4sSQ6zXsND2vCzaD61FIib4shc1gbm4ri92Ye8D0kc8o5eg==\",\"description\":\"desc\"}", 
                LAST);

 

can anyone explain how to capture this ID value  in body.

0 Likes
Highlighted
Super Contributor.. Super Contributor..
Super Contributor..

Re: Need to correlate below Json reuqest

I don't think you will be able to capture data from a JSON file.  That is why I had to create my own.  I created my ID because when it populates the data in the DB it didn't care it just had to be unique.  Have you turned your extended logging on and looked to see if that ID is anywhere else.

 

ALSO if you have Loadrunner 12.53 then take a looks at this link.  It might help what you are trying to do.

 /t5/LoadRunner-and-Performance/Get-a-new-way-to-manipulate-JSON-with-load-testing-in-LoadRunner/ba-p/6879933#.V-wMnMluMSw

 

Larry

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.