Function web_reg_save_param and arrays

Posted: October 15th, 2008 | Author: TnT Admin | Filed under: How-Tos | Tags: , , | 7 Comments »

There are always situations that required us to work with dynamic data returned by the server through correlation and stored in array.  That is where web_reg_save_param comes into play of capturing a value or list of values based on a defined left boundary and right boundary.  To fully appreciate the power of LoadRunner, VUGen, is to at best refrain from using those GUI features such as Correlation Studio or Runtime Viewer/Browser.Let’s recap the syntax of web_reg_save_param (also available in Function Reference, “F1″ key) which looks like the following:

web_reg_save_param(“p_EmpID”,
“LB=Emp_ID=”,
“RB=\”",
“Ord=ALL”,
“RelFrameId=1″,
“Search=Body”,
“IgnoreRedirections=Yes”,
LAST);

This is familiar coding where p_EmpID will be captured with LB of EMP_ID= and RB of “.  However, another parameter to note in web_reg_save_param is the ORD, or Ordinal.  This specifies the locaiton of the value to capture if multiple occurrences of LB and RB exists.  By default, the value is ORD=ALL which meant that all occurrences will be captured.  When all occurances are captured, they are stored in an array.  The total number of values captured can be accessed by placing a _count suffix after the parameter name.  Example (note, Total_Employees have to be defined as an integer in the script):

Total_Employees=atoi(atoi(lr_eval_string(“{p_EmpID_count}”­));

While to access a specified value in the array, you will put an index after the parameter in _{index} format.  Example illustrates reading the 2nd Employee ID in the array:

Current_EmployeeID=atoi(lr_eval_string(“{p_Emp_ID_2}”­));

Of course, these are just methods to read the values extracted for your scripting work.  Hopefully, you will find it easier when you are performing scripting work.

NOTE (21 Oct 2008):  Corrections to the default value of the Ordinal parameter.  It should be ORD=1, meaning the first occurence, instead of ORD=ALL.

Related Posts


7 Comments on “Function web_reg_save_param and arrays”

  1. 1 Sudheer said at 1:00 pm on October 15th, 2008:

    Hi, In your posting …..”By default, the value is ORD=ALL” . But in LR functional reference i found default ordinal value is 1.Plz check and correct me… if i am wrong…..

  2. 2 TnT Admin said at 2:16 pm on October 15th, 2008:

    Hi Sudheer, Thanks for pointing out. It’s 1 correct. The ALL is to capture all instances. Mistake on our part. Thanks again.

  3. 3 Sudheer said at 11:39 pm on October 15th, 2008:

    hi … plz correct that mistake in your posting too….

  4. 4 TnT Admin said at 10:39 am on October 21st, 2008:

    Done, thanks sudheer!

  5. 5 cstn said at 10:51 am on February 7th, 2009:

    I had script recorded with the below scenario, “User will login with the user/pwd. The apps will take the user to a search page, where he needs to enter to and from date to search all the available records. In the result table first 20 records will be displayed with select all option to print all the records.” I am having an issue while using different user id’s, because each user will have different number of records and record is dynamic in the result table. Here is the piece of code that will search records from 21/11/2008 to 24/11/2008. 9 records are displayed in the result page. For example, PrintLetterTable5 means 5th record n the result table. Each record itself has many dynamic values. Any suggestions on how resolve this issue. I tried auto correlation, but still having errors. Can this be achieved by auto/manual correlation or is there a better ways to deal with these dynamic values.

    —————————-Code————

    /*Search by DOA*/
    lr_think_time(22);
    web_submit_data(“GPHLEnquiryController_2″, “Action={URL}/GPHLEnquiryController”, “Method=POST”, “RecContentType=text/html”, “Referer={URL}/GPHLEnquiryController?action=SearchHPApplicationOnloadAction&uid=0″, “Snapshot=t7.inf”, “Mode=HTML”, ITEMDATA, “Name=action”, “Value=”, ENDITEM, “Name=destination”, “Value=”, ENDITEM, “Name=submitform”, “Value=”, ENDITEM, “Name=dpId”, “Value=”, ENDITEM, “Name=rowIndex”, “Value=”, ENDITEM, “Name=submitted”, “Value=true”, ENDITEM, “Name=FVTRANSIENT”, “Value=false”, ENDITEM, “Name=FVUSEPARSEDFORM”, “Value=false”, ENDITEM, “Name=FVIGNOREVALERRORS”, “Value=false”, ENDITEM, “Name=FVFORM.GPHLSearchHPApplicationForm.HASCHANGED”, “Value=true”, ENDITEM, “Name=FVFORM.GPHLSearchHPApplicationForm.FVFORMID”, “Value=GPHLHPOnlineFormDef”, ENDITEM, “Name=FVFORM.GPHLSearchHPApplicationForm.FVALWAYSVALIDATE”, “Value=false”, ENDITEM, “Name=FVFORM.GPHLSearchHPApplicationForm.thispage”, “Value=GPHLHPOnlineSearchPage”, ENDITEM, “Name=FVFORM.GPHLSearchHPApplicationForm.renderedRowIndex”, “Value=null”, ENDITEM, “Name=FVFORM.GPHLSearchHPApplicationForm.renderedDpId”, “Value=null”, ENDITEM, “Name=FVFORM.GPHLSearchHPApplicationForm.uen”, “Value=”, ENDITEM, “Name=FVFORM.GPHLSearchHPApplicationForm.pm”, “Value=”, ENDITEM, “Name=FVFORM.GPHLSearchHPApplicationForm.pc”, “Value=”, ENDITEM, “Name=FVFORM.GPHLSearchHPApplicationForm.HPno”, “Value=”, ENDITEM, “Name=FVFORM.GPHLSearchHPApplicationForm.doaFrom”, “Value=21/11/2008″, ENDITEM, “Name=FVFORM.GPHLSearchHPApplicationForm.doaTo”, “Value=24/11/2008″, ENDITEM, “Name=FVFORM.GPHLSearchHPApplicationForm.sDateFrom”, “Value=”, ENDITEM, “Name=FVFORM.GPHLSearchHPApplicationForm.sDateTo”, “Value=”, ENDITEM, “Name=FVFORM.GPHLSearchHPApplicationForm.travelDocNo”, “Value=”, ENDITEM, “Name=FVFORM.GPHLSearchHPApplicationForm.NewID”, “Value=”, ENDITEM, “Name=FVFORM.GPHLSearchHPApplicationForm.OldID”, “Value=”, ENDITEM, “Name=FVFORM.GPHLSearchHPApplicationForm.prcIcNo”, “Value=”, ENDITEM, “Name=FVFORM.GPHLSearchHPApplicationForm.name”, “Value=”, ENDITEM, “Name=#SearchHPApplicationSubmitAction#GPHLSearchHPApplicationForm”, “Value=Search”, ENDITEM, LAST); /*Select All for Bulk Print*/ web_submit_data(“GPHLEnquiryController_3″, “Action={URL}/GPHLEnquiryController”, “Method=POST”, “RecContentType=text/html”, “Referer={URL}/GPHLEnquiryController”, “Snapshot=t8.inf”, “Mode=HTML”, ITEMDATA, “Name=action”, “Value=”, ENDITEM, “Name=destination”, “Value=”, ENDITEM, “Name=submitform”, “Value=”, ENDITEM, “Name=dpId”, “Value=”, ENDITEM, “Name=rowIndex”, “Value=”, ENDITEM, “Name=submitted”, “Value=true”, ENDITEM, “Name=FVTRANSIENT”, “Value=false”, ENDITEM, “Name=FVUSEPARSEDFORM”, “Value=false”, ENDITEM, “Name=FVIGNOREVALERRORS”, “Value=false”, ENDITEM, “Name=FVFORM.GPHLSearchHPApplicationForm.HASCHANGED”, “Value=true”, ENDITEM, “Name=FVFORM.GPHLSearchHPApplicationForm.FVFORMID”, “Value=GPHLHPOnlineFormDef”, ENDITEM, “Name=FVFORM.GPHLSearchHPApplicationForm.FVALWAYSVALIDATE”, “Value=false”, ENDITEM, “Name=FVFORM.GPHLSearchHPApplicationForm.thispage”, “Value=GPHLHPOnlineSearchPage”, ENDITEM, “Name=FVFORM.GPHLSearchHPApplicationForm.renderedRowIndex”, “Value=null”, ENDITEM, “Name=FVFORM.GPHLSearchHPApplicationForm.renderedDpId”, “Value=null”, ENDITEM, “Name=FVFORM.GPHLSearchHPApplicationForm.uen”, “Value=”, ENDITEM, “Name=FVFORM.GPHLSearchHPApplicationForm.pm”, “Value=”, ENDITEM, “Name=FVFORM.GPHLSearchHPApplicationForm.pc”, “Value=”, ENDITEM, “Name=FVFORM.GPHLSearchHPApplicationForm.HPno”, “Value=”, ENDITEM, “Name=FVFORM.GPHLSearchHPApplicationForm.doaFrom”, “Value=21/11/2008″, ENDITEM, “Name=FVFORM.GPHLSearchHPApplicationForm.doaTo”, “Value=24/11/2008″, ENDITEM, “Name=FVFORM.GPHLSearchHPApplicationForm.sDateFrom”, “Value=”, ENDITEM, “Name=FVFORM.GPHLSearchHPApplicationForm.sDateTo”, “Value=”, ENDITEM, “Name=FVFORM.GPHLSearchHPApplicationForm.travelDocNo”, “Value=”, ENDITEM, “Name=FVFORM.GPHLSearchHPApplicationForm.NewID”, “Value=”, ENDITEM, “Name=FVFORM.GPHLSearchHPApplicationForm.OldID”, “Value=”, ENDITEM, “Name=FVFORM.GPHLSearchHPApplicationForm.prcIcNo”, “Value=”, ENDITEM, “Name=FVFORM.GPHLSearchHPApplicationForm.name”, “Value=”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable1.HASCHANGED”, “Value=true”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable1.FVFORMID”, “Value=PrintLetterTable”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable1.FVALWAYSVALIDATE”, “Value=false”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable1.thispage”, “Value=GPHLHPOnlineSearchPage”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable1.renderedRowIndex”, “Value=0.1″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable1.renderedDpId”, “Value=GPHLHPFWorkerSearchResultDP”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable1.tableCheckbox”, “Value=Y”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable1.FVCBHIDDEN_tableCheckbox=Y”, “Value=true”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable1.HPno”, “Value=0 32651828″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable1.doa”, “Value=24/11/2008″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable1.reviewNo”, “Value=0″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable1.HPStatus”, “Value=K”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable1.occupation”, “Value=93300A”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable1.ipaExpiryDt”, “Value=22/02/2009″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable1.type”, “Value=false”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable1.applnId”, “Value=110972759″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable1.reviewType”, “Value=P”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable1.submissionDt”, “Value=24/11/2008″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable1.applicationStatus”, “Value=Approved”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable1.rowCounter”, “Value=1″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable1.cpfNo”, “Value=1311069″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable2.HASCHANGED”, “Value=true”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable2.FVFORMID”, “Value=PrintLetterTable”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable2.FVALWAYSVALIDATE”, “Value=false”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable2.thispage”, “Value=GPHLHPOnlineSearchPage”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable2.renderedRowIndex”, “Value=0.2″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable2.renderedDpId”, “Value=GPHLHPFWorkerSearchResultDP”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable2.tableCheckbox”, “Value=Y”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable2.FVCBHIDDEN_tableCheckbox=Y”, “Value=true”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable2.HPno”, “Value=0 32086993″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable2.doa”, “Value=24/11/2008″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable2.reviewNo”, “Value=0″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable2.HPStatus”, “Value=K”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable2.occupation”, “Value=93300A”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable2.ipaExpiryDt”, “Value=22/02/2009″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable2.type”, “Value=false”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable2.applnId”, “Value=110972743″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable2.reviewType”, “Value=P”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable2.submissionDt”, “Value=24/11/2008″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable2.applicationStatus”, “Value=Approved”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable2.rowCounter”, “Value=2″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable2.cpfNo”, “Value=1311069″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable3.HASCHANGED”, “Value=true”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable3.FVFORMID”, “Value=PrintLetterTable”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable3.FVALWAYSVALIDATE”, “Value=false”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable3.thispage”, “Value=GPHLHPOnlineSearchPage”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable3.renderedRowIndex”, “Value=0.3″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable3.renderedDpId”, “Value=GPHLHPFWorkerSearchResultDP”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable3.tableCheckbox”, “Value=Y”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable3.FVCBHIDDEN_tableCheckbox=Y”, “Value=true”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable3.HPno”, “Value=0 31296838″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable3.doa”, “Value=24/11/2008″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable3.reviewNo”, “Value=0″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable3.HPStatus”, “Value=K”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable3.occupation”, “Value=93300A”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable3.ipaExpiryDt”, “Value=22/02/2009″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable3.type”, “Value=false”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable3.applnId”, “Value=110972777″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable3.reviewType”, “Value=P”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable3.submissionDt”, “Value=24/11/2008″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable3.applicationStatus”, “Value=Approved”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable3.rowCounter”, “Value=3″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable3.cpfNo”, “Value=1311069″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable4.HASCHANGED”, “Value=true”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable4.FVFORMID”, “Value=PrintLetterTable”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable4.FVALWAYSVALIDATE”, “Value=false”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable4.thispage”, “Value=GPHLHPOnlineSearchPage”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable4.renderedRowIndex”, “Value=0.4″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable4.renderedDpId”, “Value=GPHLHPFWorkerSearchResultDP”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable4.tableCheckbox”, “Value=Y”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable4.FVCBHIDDEN_tableCheckbox=Y”, “Value=true”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable4.HPno”, “Value=0 33669542″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable4.doa”, “Value=21/11/2008″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable4.reviewNo”, “Value=0″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable4.HPStatus”, “Value=K”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable4.occupation”, “Value=93300A”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable4.ipaExpiryDt”, “Value=19/02/2009″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable4.type”, “Value=false”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable4.applnId”, “Value=110970168″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable4.reviewType”, “Value=P”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable4.submissionDt”, “Value=21/11/2008″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable4.applicationStatus”, “Value=Approved”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable4.rowCounter”, “Value=4″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable4.cpfNo”, “Value=1311069″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable5.HASCHANGED”, “Value=true”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable5.FVFORMID”, “Value=PrintLetterTable”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable5.FVALWAYSVALIDATE”, “Value=false”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable5.thispage”, “Value=GPHLHPOnlineSearchPage”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable5.renderedRowIndex”, “Value=0.5″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable5.renderedDpId”, “Value=GPHLHPFWorkerSearchResultDP”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable5.tableCheckbox”, “Value=Y”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable5.FVCBHIDDEN_tableCheckbox=Y”, “Value=true”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable5.HPno”, “Value=0 32497020″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable5.doa”, “Value=21/11/2008″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable5.reviewNo”, “Value=0″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable5.HPStatus”, “Value=K”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable5.occupation”, “Value=93300A”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable5.ipaExpiryDt”, “Value=19/02/2009″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable5.type”, “Value=false”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable5.applnId”, “Value=110970236″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable5.reviewType”, “Value=P”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable5.submissionDt”, “Value=21/11/2008″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable5.applicationStatus”, “Value=Approved”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable5.rowCounter”, “Value=5″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable5.cpfNo”, “Value=1311069″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable6.HASCHANGED”, “Value=true”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable6.FVFORMID”, “Value=PrintLetterTable”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable6.FVALWAYSVALIDATE”, “Value=false”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable6.thispage”, “Value=GPHLHPOnlineSearchPage”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable6.renderedRowIndex”, “Value=0.6″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable6.renderedDpId”, “Value=GPHLHPFWorkerSearchResultDP”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable6.tableCheckbox”, “Value=Y”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable6.FVCBHIDDEN_tableCheckbox=Y”, “Value=true”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable6.HPno”, “Value=0 34544336″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable6.doa”, “Value=21/11/2008″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable6.reviewNo”, “Value=0″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable6.HPStatus”, “Value=K”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable6.occupation”, “Value=93300A”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable6.ipaExpiryDt”, “Value=22/02/2009″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable6.type”, “Value=false”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable6.applnId”, “Value=110970152″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable6.reviewType”, “Value=P”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable6.submissionDt”, “Value=21/11/2008″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable6.applicationStatus”, “Value=Approved”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable6.rowCounter”, “Value=6″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable6.cpfNo”, “Value=1311069″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable7.HASCHANGED”, “Value=true”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable7.FVFORMID”, “Value=PrintLetterTable”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable7.FVALWAYSVALIDATE”, “Value=false”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable7.thispage”, “Value=GPHLHPOnlineSearchPage”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable7.renderedRowIndex”, “Value=0.7″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable7.renderedDpId”, “Value=GPHLHPFWorkerSearchResultDP”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable7.tableCheckbox”, “Value=Y”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable7.FVCBHIDDEN_tableCheckbox=Y”, “Value=true”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable7.HPno”, “Value=0 33658346″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable7.doa”, “Value=21/11/2008″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable7.reviewNo”, “Value=0″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable7.HPStatus”, “Value=R”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable7.occupation”, “Value=93300A”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable7.ipaExpiryDt”, “Value=”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable7.type”, “Value=false”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable7.applnId”, “Value=110970217″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable7.reviewType”, “Value=P”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable7.submissionDt”, “Value=21/11/2008″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable7.applicationStatus”, “Value=Rejected”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable7.rowCounter”, “Value=7″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable7.cpfNo”, “Value=1311069″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable8.HASCHANGED”, “Value=true”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable8.FVFORMID”, “Value=PrintLetterTable”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable8.FVALWAYSVALIDATE”, “Value=false”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable8.thispage”, “Value=GPHLHPOnlineSearchPage”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable8.renderedRowIndex”, “Value=0.8″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable8.renderedDpId”, “Value=GPHLHPFWorkerSearchResultDP”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable8.tableCheckbox”, “Value=Y”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable8.FVCBHIDDEN_tableCheckbox=Y”, “Value=true”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable8.HPno”, “Value=0 56045023″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable8.doa”, “Value=21/11/2008″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable8.reviewNo”, “Value=0″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable8.HPStatus”, “Value=K”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable8.occupation”, “Value=71000A”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable8.ipaExpiryDt”, “Value=19/02/2009″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable8.type”, “Value=false”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable8.applnId”, “Value=110970078″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable8.reviewType”, “Value=P”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable8.submissionDt”, “Value=21/11/2008″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable8.applicationStatus”, “Value=Approved”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable8.rowCounter”, “Value=8″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable8.cpfNo”, “Value=1311069″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable9.HASCHANGED”, “Value=true”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable9.FVFORMID”, “Value=PrintLetterTable”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable9.FVALWAYSVALIDATE”, “Value=false”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable9.thispage”, “Value=GPHLHPOnlineSearchPage”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable9.renderedRowIndex”, “Value=0.9″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable9.renderedDpId”, “Value=GPHLHPFWorkerSearchResultDP”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable9.tableCheckbox”, “Value=Y”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable9.FVCBHIDDEN_tableCheckbox=Y”, “Value=true”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable9.HPno”, “Value=0 3221049-”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable9.doa”, “Value=21/11/2008″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable9.reviewNo”, “Value=0″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable9.HPStatus”, “Value=K”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable9.occupation”, “Value=93300A”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable9.ipaExpiryDt”, “Value=19/02/2009″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable9.type”, “Value=false”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable9.applnId”, “Value=110970198″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable9.reviewType”, “Value=P”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable9.submissionDt”, “Value=21/11/2008″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable9.applicationStatus”, “Value=Approved”, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable9.rowCounter”, “Value=9″, ENDITEM, “Name=FVFORM.HPApp.PrintLetterTable9.cpfNo”, “Value=1311069″, ENDITEM, “Name=selectall”, “Value=TRUE”, ENDITEM, “Name=#EnquirePrintLetterPopupAction#HPApp.”, “Value=Print Letter”, ENDITEM, “Name=ea.windowBasedSession.WinID”, “Value=”, ENDITEM, EXTRARES, “Url=/FormsOLController?destination=GPHL_ONLINE_FORMS”, “Referer=”, ENDITEM, LAST);

  6. 6 ms said at 8:35 pm on February 25th, 2009:

    Hi cstm,
    as per your description …in your script there r more than one session ids r generating ….for this u need to do manual correlation for this…

    1.if you want to replace same parameter with same occurences…
    in the server respose tab locate the session id and press right click and choose create parameter…u will get the message box (like …. would u like to replace the occurences…. ) click on yes …. automatically web_reg_save_param() function will be inserted in the script…and parameter will be replaces with all occurences of sessionid … replay the script….

    2.create rule also will help for this kind of situations…. refer loadrunner functional ref for more information

    correct me if i am wrong…

    thanks.

  7. 7 soubhagya praharaj said at 5:36 pm on April 14th, 2009:

    The first thing to learn is that the automatic correlation tool in VUGen is unreliable. It WILL NOT find all of the correlations that you need to make the script work, and it will sometimes give you false correlations.

    This is why you must learn to find them for yourself.

    Most of the time while you are finding the correlations, you will need to turn on the “Extended Log/Data returned by server” runtime setting.
    The values you will be searching for will be in this log!

    The next thing to learn is to work your way from the start of the script to the end, one correlation at a time!

    Each time you find a value and place a “web_reg_save_param” in the script, execute the script again to make sure firstly that the value you want is being captured, and then to ensure that the value you have captured is making the script work correctly.
    Then move onto the next point where the script is failing, and repeat the process.

    Method 1
    Turn on the “Extended Log/Data returned by server” runtime setting and execute the script.
    Identify the point in the script where it is failing.
    At that point in the script examine the code.
    Look through the recorded script and identify values in the code that :
    1. have labels such as “reportSourceSessionID”,
    2. any long strings of random looking letters and numbers like this “AOJFIEURBSKFI76HUDENRI987KDIN”.
    When you find a value that might be dynamic, search through the log for the actual value that came from the server when you executed the script.
    If the value is returned from the server before it is used in the script, and it has not changed, then it probably does not need to be correlated.
    If the value is returned from the server before it is used in the script, and it has changed, then it probably does need to be correlated.

    NOTE: You need to understand how the “web_reg_save_param” works. Look it up in the function reference. When you insert it in the script there is a helpful tool. “Insert/New Step/” the “Add Step” window opens, expand the “Services” node and you will find “web_reg_save_param”. Select it and the “Save Data to a Parameter” window will open. This will insert the “web_reg_save_param” into the script with the values that you enter in the fields, at the location of the cursor.

    NOTE2: When you need to include a quotation mark (“) in the Left or Right Boundary of a “web_reg_save_param” statement, you must delimit it by placing a backslash in front of it(\). Example: IDValue=” must look like this IDValue=\” in the “web_reg_save_param” statement.

    Method 2
    Make a second recording of the script using exactly the same steps and input values as you used for the first recording.
    Compare the two recordings side by side and look for differences.
    Any differences you find are likely to be dynamic values that you need to correlate.

    To assist with this there is a file comparison tool called “wdiff.exe” that is installed with VUGen.
    To access this tool, open the first recorded script select “Tools/Compare with script” to open the tool, then select the second recorded script from the list.
    The tool will then highlight lines in the two scripts that are different.


Leave a Reply