Highlighted
Absent Member.. Absent Member..
Absent Member..
309 views

VuGen inserting lr_think_time statements randomly and overwriting other code when recording scripts

I am currently using VuGen version 12.02. Recently, when recording scripts, I find VuGen not only inserting think time statements where they should be but also randomly inserting them into my code and actually overwriting other valid. code. See the following code examples which I copied from a recent script. Can anyone tell me why this is happening? (It also happens when I do auto correlations)

Example #1

web_custom_request("!TABTHREAD1_14", 
        "URL=https://maine-purch-test.pegacloud.com/prweb/PRServlet/2CRAtc0BZR0j0Ng2dtPq1w%5B%5B*/!TABTHREAD1?pyActivity=ReloadSection&pzTransactionId=71c46a39bb853b1024a3f707fdf6ebba&pzFromFrame=pyWorkPage&pzPrimaryPageName=pyWorkPage&pzKeepPageMessages=true&expandRL=false&StreamName=pyCaseAttachmentsTopWrapper&BaseReference=&StreamClass=Rule-HTML-Section&lazyLoadId=S1&RenderSingle=S1&lazySection=pyCaseAttachmentsTopWrapper&bClientValidation=true&PreActivity=&HeaderButtonSectionName="
        "SubSectionpyAutomaticallyGeneratedCaseDetailsB&ReadOnly=-1&inStandardsMode=true&AJAXTrackID=3&pzHarnessID=HIDC4AD3176590167D97799811C6ADA5040", 
        "Method=POST", 
        "TargetFrame=", 
        "Resource=0", 
        "RecContentType=text/html", 
        "Referer=https://maine-purch-test.pegacloud.com/prweb/PRServlet/2CRAtc0BZR0j0Ng2dtPq1w%5B%5B*/!TABTHREAD1?pyActivity=FinishAssignment&pzFromFrame=pyWorkPage&pzPrimaryPageName=pyWorkPage&pzTransactionId=683f0e2ca8ca46a2e39a69aeff986218&pzHarnessID=HIDB6919349AA04BA12F0999C70EDC09908", 
        "Snapshot=t25.inf", 
        "Mode=HTML", 
    lr_think_time(21);&mySubHeaderClassPage=mySubHeaderClassPage&headerButtonsAdded=true&AssignInsKey=ASSIGN-WORKLIST%20SOM-DAFS-BGS-DOP-PDPA-WORK%20PM-294!REVIEWAPPLICATION&EXPANDEDSectionAction=true&runtimeMode=true&ShowSubCases=true&ViewPurpose=pyCoverAllAttachmentList&pyStreamName=Perform&TaskInstructionsCaption=Instructions&ShowStepAslabel=false&EXPANDEDSectionCore=true&pyAttachPageExists=true&TextFieldDisabled=false&FirstRun=true&pzPrimaryHarnessPageName=pyWorkPage&LAYOUT_METHOD_NAME="
        "simpleLayout_1&ActionType=PRE&pyContentPage=AllAttachments&ViewClass=Link-Attachment&EXPANDEDSubSectionSelectionPackageDocumentsBB=true&ReferencePageName=pyWorkPage&threadID=TABTHREAD1&pyListViewIsEmbedded=true&TaskSectionReference=ReviewApplication&Action=Perform&pyListViewOutput=%20%20%20%20%0A%09%09%09%09%26amp%3Blt%3B"
        "!DOCTYPE%20html%26amp%3Bgt%3B%0A%09%09%09%09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%26amp%3Blt%3Bscript%26amp%3Bgt%3B%20%20%20%20var%20g_bRemovePages%20%26amp%3B%2361%3B%20true%26amp%3B%2359%3B%20var%20g_bRemoveSumPage%20%26amp%3B%2361%3B%20true%26amp%3B%2359%3B%20%20%20%26amp%3Blt%3B%2Fscript%26amp%3Bgt%3B%20%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%26amp%3Blt%3Bscript%26amp%3Bgt%3B%0Avar%20strLVTitle%20%26amp%3B%2361%3B%20%20%26amp%3Bquot%3Btest%26amp%3Bquot%3B%26amp%3B%2359%3B%0"
        "A%26amp%3B%2359%3Bvar%20showGlimpseFrame%20%26amp%3B%2361%3B%20%26amp%3Bquot%3Bfalse%26amp%3Bquot%3B%26amp%3B%2359%3Bvar%20pyViewPage%20%26amp%3B%2361%3B%20%26amp%3Bquot%3BLISTVIEW_pyCoverAllAttachmentList%26amp%3Bquot%3B%26amp%3B%2359%3Bvar%20SVPage%20%26amp%3B%2361%3B%20%26amp%3Bquot%3B%26amp%3Bquot%3B%26amp%3B%2359%3Bvar%20strSavePref%20%26amp%3B%2361%3B%20%26amp%3Bquot%3BSaving...%26amp%3Bquot%3B%26amp%3B%2359%3Bvar%20errMsg%20%26amp%3B%2361%3B%20%26amp%3Bquot%3BNo%20Records%20Found%26amp%3Bqu"
        "ot%3B%26amp%3B%2359%3Bvar%20expandTitle%20%26amp%3B%2361%3B%20%26amp%3Bquot%3Bpress%20Ctrl-Alt-Plus%20to%20expand%20all%26amp%3Bquot%3B%26amp%3B%2359%3Bvar%20collapseTitle%20%26amp%3B%2361%3B%20%26amp%3Bquot%3Bpress%20Ctrl-Alt-Minus%20to%20collapse%20all%26amp%3Bquot%3B%26amp%3B%2359%3B%26amp%3Blt%3B%2Fscript%26amp%3Bgt%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%26amp%3Blt%3Bscript%26amp%3Bgt%3B%20function%20checkremovePages%26amp%3B%2340%3B%26amp%3B%2341%3B%20%7B%20if"
        "%26amp%3B%2340%3Bwindow.addEventListener%26amp%3B%2341%3B%20window.addEventListener%26amp%3B%2340%3B%26amp%3Bquot%3Bbeforeunload%26amp%3Bquot%3B&PreActivitiesList=%3Cpagedata%3E%3C%2Fpagedata%3E&ActivityParams=&$OCompositeAPIInclude=&$ODesktopWrapperBundleInclude=&$ODesktopWrapperInclude=&$OEvalDOMScripts_Include=&$OLaunchFlowScriptInclude=&$OListViewIncludes=&$OListView_FilterPanel_Btns=&$OListView_header=&$OMenuBar=&$ONewActionSection=&$OSpecCheckerScript=&$OTextArea_Includes=&"
        "$OdocumentInfo_bundle=&$Ofeedback=&$Ogridincludes=&$Olayoutgroupincludes=&$OloadScript=&$OmenubarInclude=&$OpyWorkFormStandard=&$OpzAutoCompleteAGIncludes=&$OpzCalendarPopupScripts=&$OpzCheckboxScripts=&$OpzControlMenuScripts=&$OpzDatePickerAdvancedIncludes=&$OpzDropdownTemplate=&$OpzLocalActionScript=&$OpzRadiogroupIncludes=&$OpzTextIncludes=&$OpzTextInput=&$OpzTextareaIncludes=&$OxmlDocumentInclude=&$OPegaSocial=&$PpxRequestor$ppyLatitude=&$PpxRequestor$ppyLongitude=", 
        LAST);

 

Example #2

web_custom_request("!TABTHREAD1_26", 
        "URL=https://maine-purch-test.pegacloud.com/prweb/PRServlet/2CRAtc0BZR0j0Ng2dtPq1w%5B%5B*/!TABTHREAD1?pyActivity=ReloadSection&pzTransactionId=af7d33cd7019c4af6c0c9fb5fea64938&pzFromFrame=pyWorkPage&pzPrimaryPageName=pyWorkPage&pyEncodedParameters=true&pzKeepPageMessages=false&pzHarnessID=HID75D1F95BE9B905B5D26F205D520638D5&newSectionID=GID_1464704662807&StreamName=Assign&BaseReference=&StreamClass=Rule-HTML-Section&bClientValidation=true&PreActivity=&HeaderButtonSectionName="
        "SubSectionpyCaseOverviewB&inStandardsMode=true&AJAXTrackID=4", 
    lr_think_time(8);
        "TargetFrame=", 
        "Resource=0", 
        "RecContentType=text/html", 
        "Referer=https://maine-purch-test.pegacloud.com/prweb/PRServlet/2CRAtc0BZR0j0Ng2dtPq1w%5B%5B*/!TABTHREAD1?pyActivity=FinishAssignment&pzFromFrame=pyWorkPage&pzPrimaryPageName=pyWorkPage&pzTransactionId=71c46a39bb853b1024a3f707fdf6ebba&pzHarnessID=HIDC4AD3176590167D97799811C6ADA5040", 
        "Snapshot=t39.inf", 
        "Mode=HTML", 
        "Body=$PpyWorkPage$ppyAssignedOperator=Super%20User&$PpyWorkPage$ppyEffortEstimate=&$PpyWorkPage$ppyNote=&PreActivitiesList=%3Cpagedata%3E%3CdataTransforms%20REPEATINGTYPE%3D%22PageList%22%3E%3Crowdata%20REPEATINGINDEX%3D%221%22%3E%3CdataTransform%3E%3C%2FdataTransform%3E%3C%2Frowdata%3E%3C%2FdataTransforms%3E%3C%2Fpagedata%3E&ActivityParams=&$OCompositeAPIInclude=&$ODesktopWrapperBundleInclude=&$ODesktopWrapperInclude=&$OEvalDOMScripts_Include=&$OLaunchFlowScriptInclude=&$OListViewIncludes=&"
        "$OListView_FilterPanel_Btns=&$OListView_header=&$OMenuBar=&$ONewActionSection=&$OSpecCheckerScript=&$OTextArea_Includes=&$OdocumentInfo_bundle=&$Ofeedback=&$Ogridincludes=&$Olayoutgroupincludes=&$OloadScript=&$OmenubarInclude=&$OpyWorkFormStandard=&$OpzAutoCompleteAGIncludes=&$OpzCheckboxScripts=&$OpzControlMenuScripts=&$OpzLocalActionScript=&$OpzTextIncludes=&$OpzTextareaIncludes=&$OxmlDocumentInclude=&$OPegaSocial=&$OpzTextInput=&$PpxRequestor$ppyLatitude=&$PpxRequestor$ppyLongitude=", 
        LAST);

Example #3

web_url("!TABTHREAD0_4", 
        "URL=https://maine-purch-test.pegacloud.com/prweb/PRServlet/2CRAtc0BZR0j0Ng2dtPq1w%5B%5B*/!TABTHREAD0?pyActivity=%40baseclass.doUIAction&action=display&harnessName=pyDashboard7&className=Data-Portal&contentID=88d0292e-17d9-4ddd-9c1a-7e474fd0068c&dynamicContainerID=f9e64470-c4fa-4e63-b814-0a50f75d0647&tabIndex=1&portalThreadName=STANDARD&portalName=pyCaseManager7&pzHarnessID=HIDB2FE404A3DFFB0E67A2F7B71261D56EA", 
        "TargetFrame=", 
        "Resource=0", 
        "RecContentType=text/html", 
        "Referer=https://maine-purch-test.pegacloud.com/prweb/PRServlet/2CRAtc0BZR0j0Ng2dtPq1w%5B%5B*/!STANDARD?pzPostData=542115270", 
    lr_think_time(19);", 
        "Mode=HTML", 
        LAST);

0 Likes
6 Replies
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: VuGen inserting lr_think_time statements randomly and overwriting other code when recording scri

Hello,

I have never seen a similar issue, my recommendation for you is:

  1. Close the Virtual USer Generator
  2. go to <LoadRunner Installation folder>\config look for Vugen.ini and delete it.
  3. Open Vugen and try to reproduce the issue.

Please let me know if this helps.

0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: VuGen inserting lr_think_time statements randomly and overwriting other code when recording scri

Upon deleting the Vugen.ini file and recreating the scripts, I see no difference in results. See examples from the latest script  below. 

Example #1

web_custom_request("!TABTHREAD1_26", 
        "URL=https://maine-purch-test.pegacloud.com/prweb/PRServlet/2CRAtc0BZR0j0Ng2dtPq1w%5B%5B*/!TABTHREAD1?pyActivity=ReloadSection&pzTransactionId=11731d27f0cb7d7528598345c665630f&pzFromFrame=pyWorkPage&pzPrimaryPageName=pyWorkPage&pyEncodedParameters=true&pzKeepPageMessages=false&pzHarnessID=HIDCBD41FD8C7EE75B6D4E893A7C76C334E&newSectionID=GID_1464709682940&StreamName=Assign&BaseReference=&StreamClass=Rule-HTML-Section&bClientValidation=true&PreActivity=&HeaderButtonSectionName="
    lr_think_time(17);OverviewB&inStandardsMode=true&AJAXTrackID=4", 
        "Method=POST", 
        "TargetFrame=", 
        "Resource=0", 
        "RecContentType=text/html", 
        "Referer=https://maine-purch-test.pegacloud.com/prweb/PRServlet/2CRAtc0BZR0j0Ng2dtPq1w%5B%5B*/!TABTHREAD1?pyActivity=FinishAssignment&pzFromFrame=pyWorkPage&pzPrimaryPageName=pyWorkPage&pzTransactionId=47ad0ff5ff21e896a768b7a20fd3d985&pzHarnessID=HID09B0B2D431D0D9A5C2488225B10064C6", 
        "Snapshot=t39.inf", 
        "Mode=HTML", 
        "Body=$PpyWorkPage$ppyAssignedOperator=Super%20User&$PpyWorkPage$ppyEffortEstimate=&$PpyWorkPage$ppyNote=&PreActivitiesList=%3Cpagedata%3E%3CdataTransforms%20REPEATINGTYPE%3D%22PageList%22%3E%3Crowdata%20REPEATINGINDEX%3D%221%22%3E%3CdataTransform%3E%3C%2FdataTransform%3E%3C%2Frowdata%3E%3C%2FdataTransforms%3E%3C%2Fpagedata%3E&ActivityParams=&$OCompositeAPIInclude=&$ODesktopWrapperBundleInclude=&$ODesktopWrapperInclude=&$OEvalDOMScripts_Include=&$OLaunchFlowScriptInclude=&$OListViewIncludes=&"
        "$OListView_FilterPanel_Btns=&$OListView_header=&$OMenuBar=&$ONewActionSection=&$OSpecCheckerScript=&$OTextArea_Includes=&$OdocumentInfo_bundle=&$Ofeedback=&$Ogridincludes=&$Olayoutgroupincludes=&$OloadScript=&$OmenubarInclude=&$OpyWorkFormStandard=&$OpzAutoCompleteAGIncludes=&$OpzCheckboxScripts=&$OpzControlMenuScripts=&$OpzLocalActionScript=&$OpzTextIncludes=&$OpzTextareaIncludes=&$OxmlDocumentInclude=&$OPegaSocial=&$OpzTextInput=&$PpxRequestor$ppyLatitude=&$PpxRequestor$ppyLongitude=", 
        LAST);

Example #2

web_custom_request("!TABTHREAD1_32", 
        "URL=https://maine-purch-test.pegacloud.com/prweb/PRServlet/2CRAtc0BZR0j0Ng2dtPq1w%5B%5B*/!TABTHREAD1?pyActivity=ReloadSection&pzTransactionId=f0de8d8e1f04f827f73f419bf53dfae8&pzFromFrame=pyWorkPage&pzPrimaryPageName=pyWorkPage&ReadOnly=-1&StreamName=pyCaseAssets&StreamClass=Rule-HTML-Section&BaseReference=&bClientValidation=true&FieldError=&FormError=&pyCustomError=&pzKeepPageMessages=true&pyCallStreamMethod=simpleLayout_2&inStandardsMode=true&AJAXTrackID=5&pzHarnessID="
        "HID952063D58F417826932DB990CEECC9DD&HeaderButtonSectionName=SubSectionpyCaseOverviewB", 
        "Method=POST", 
    lr_think_time(17);
        "Resource=0", 
        "RecContentType=text/html", 
        "Referer=https://maine-purch-test.pegacloud.com/prweb/PRServlet/2CRAtc0BZR0j0Ng2dtPq1w%5B%5B*/!TABTHREAD1?pyActivity=FinishAssignment&pzFromFrame=pyWorkPage&pzPrimaryPageName=pyWorkPage&pzTransactionId=11731d27f0cb7d7528598345c665630f&pzHarnessID=HIDCBD41FD8C7EE75B6D4E893A7C76C334E", 
        "Snapshot=t47.inf", 
        "Mode=HTML", 
        "Body=&$OCompositeAPIInclude=&$ODesktopWrapperBundleInclude=&$ODesktopWrapperInclude=&$OEvalDOMScripts_Include=&$OLaunchFlowScriptInclude=&$OListViewIncludes=&$OListView_FilterPanel_Btns=&$OListView_header=&$OMenuBar=&$OSpecCheckerScript=&$OTextArea_Includes=&$OdocumentInfo_bundle=&$Ofeedback=&$Ogridincludes=&$Olayoutgroupincludes=&$OloadScript=&$OmenubarInclude=&$OpyWorkFormStandard=&$OpzCheckboxScripts=&$OpzControlMenuScripts=&$OpzLocalActionScript=&$OpzTextIncludes=&$OxmlDocumentInclude=&"
        "$PpxRequestor$ppyLatitude=&$PpxRequestor$ppyLongitude=", 
        LAST);

Example #3

web_url("!TABTHREAD0_4", 
        "URL=https://maine-purch-test.pegacloud.com/prweb/PRServlet/2CRAtc0BZR0j0Ng2dtPq1w%5B%5B*/!TABTHREAD0?pyActivity=%40baseclass.doUIAction&action=display&harnessName=pyDashboard7&className=Data-Portal&contentID=88d0292e-17d9-4ddd-9c1a-7e474fd0068c&dynamicContainerID=f9e64470-c4fa-4e63-b814-0a50f75d0647&tabIndex=1&portalThreadName=STANDARD&portalName=pyCaseManager7&pzHarnessID=HID2A0F53E582E892BCEDCF7452F2E5E122", 
        "TargetFrame=", 
    lr_think_time(10);        "RecContentType=text/html", 
        "Referer=https://maine-purch-test.pegacloud.com/prweb/PRServlet/2CRAtc0BZR0j0Ng2dtPq1w%5B%5B*/!STANDARD?pzPostData=-1336028017", 
        "Snapshot=t53.inf", 
        "Mode=HTML", 
        LAST);

 

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: VuGen inserting lr_think_time statements randomly and overwriting other code when recording scri

Hi,

PLease try to switch to tree mode within VuGen script, go to tools->regenerate the script, then switch to script view and see if the think_time statements show up in correct location.

Also are you using LR12.02? Was the previous installation completely uninstalled before installing this version and patch level? On another clean machine, trying installing standalone component VuGen 12.03 or 12.53 (this is the latest) and regenerate the problematic script there. See if the issue reproduces.

If it is specific to your current patch level, that could be a defect local to that version and may need to use the latest VuGen version

Thanks

Microfocus Support

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: VuGen inserting lr_think_time statements randomly and overwriting other code when recording scri

Tree mode? I do not see a tree mode in version 12.02. Please let me know where I can find it. 

0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: VuGen inserting lr_think_time statements randomly and overwriting other code when recording scri

Can you please send us the script, I would like to see if somehow this can be reproduced on my machine.

Thank you,

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: VuGen inserting lr_think_time statements randomly and overwriting other code when recording scri

I mean the step navigator as opposed to script view. Close the script view, open it with step navigator and try the regenerate option from record menu

Thanks

Microfocus Support

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
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.