Professional Documents
Culture Documents
How To Create A Load Runner Script For Essbase Spreadshe
How To Create A Load Runner Script For Essbase Spreadshe
What Is Essbase Spreadsheet Services (ESS)? Essbase Spreadsheet Services represents scalable multi-user platform for Excel users working with Essbase over HTTP protocol. ESS offers the same functionality as Essbase Spreadsheet Add-in but has a thin client deployable by Essbase Distribution Services. Essbase XTD Spreadsheet Services - Architecture
Excel Applications
Excel VBA Toolkit Excel Add-In
All the functionality of existing Excel Add -in client, plus more Internet-ready Web deployment Scalable, open application server infrastructure Fault tolerant, load balanced, connection pooling Best in class Analytical Engine
2. Make sure that computer with Load Runner has Excel.exe with ESS client installed. This is how Start Recording panel has to be arranged:
5. Start recording. Load Runner will start Excel. Work with Excel in accordance with scenario. Stop recording. This is an example of a script with parameterized session ID:
vuser_init() { lr_start_transaction("Sign-on"); web_custom_request("EssbaseWebService", "URL=http://agent7:8080/ess_webservice/EssbaseWebService", "Method=POST", "Resource=0", "RecContentType=text/xml", "Referer=", "Snapshot=t1.inf", "Mode=HTTP", "EncType=", "Body=<?xml version=\"1.0\" encoding=\"UTF-8\" ?><req id=\"getInitParams\"/>\r\n", LAST); web_reg_save_param("SESSIONID", "LB=xsd:string\">", "RB=</return>", "NotFound=ERROR", LAST); web_custom_request("EssbaseWebService_2", "URL=http://agent7:8080/ess_webservice/EssbaseWebService", "Method=POST", "Resource=0", "RecContentType=text/xml", "Referer=", "Snapshot=t2.inf", "Mode=HTTP", "EncType=", "Body=<?xml version=\"1.0\" encoding=\"utf-8\" ?><req id=\"signOn\" user=\"admin\" password=\"password\"/>\r\n", LAST); lr_output_message("SessionID = #%s", lr_eval_string ("{SESSIONID}" )); web_custom_request("EssbaseWebService_3", "URL=http://agent7:8080/ess_webservice/EssbaseWebService", "Method=POST", "Resource=0", "RecContentType=text/xml", "Referer=", "Snapshot=t3.inf", "Mode=HTTP", "EncType=", "Body=<?xml version=\"1.0\" encoding=\"utf-8\" ?><req id=\"listOlapSvrs\" sessId=\{SESSIONID}\"/>\r\n", LAST); lr_end_transaction("Sign-on",LR_AUTO); lr_start_transaction("Select_cube"); lr_think_time(17); web_custom_request("EssbaseWebService_4", "URL=http://agent7:8080/ess_webservice/EssbaseWebService", "Method=POST", "Resource=0", "RecContentType=text/xml", "Referer=", "Snapshot=t4.inf", "Mode=HTTP", "EncType=", "Body=<?xml version=\"1.0\" encoding=\"utf-8\" ?><req id=\"connect\" sessId=\{SESSIONID}\" host=\"172.27.89.110\"/>\r\n", LAST);
web_custom_request("EssbaseWebService_5", "URL=http://agent7:8080/ess_webservice/EssbaseWebService", "Method=POST", "Resource=0", "RecContentType=text/xml", "Referer=", "Snapshot=t5.inf", "Mode=HTTP", "EncType=", "Body=<?xml version=\"1.0\" encoding=\"utf-8\" ?><req id=\"listApps\" sessId=\{SESSIONID}\"/>\r\n", LAST); web_custom_request("EssbaseWebService_6", "URL=http://agent7:8080/ess_webservice/EssbaseWebService", "Method=POST", "Resource=0", "RecContentType=text/xml", "Referer=", "Snapshot=t6.inf", "Mode=HTTP", "EncType=", "Body=<?xml version=\"1.0\" encoding=\"utf-8\" ?><req id=\"connect\" sessId=\{SESSIONID}\" host=\"172.27.89.110\"/>\r\n", LAST); web_custom_request("EssbaseWebService_7", "URL=http://agent7:8080/ess_webservice/EssbaseWebService", "Method=POST", "Resource=0", "RecContentType=text/xml", "Referer=", "Snapshot=t7.inf", "Mode=HTTP", "EncType=", "Body=<?xml version=\"1.0\" encoding=\"utf-8\" ?><req id=\"listCubes\" sessId=\{SESSIONID}\"><app>Shipment</app></req>\r\n", LAST); web_custom_request("EssbaseWebService_8", "URL=http://agent7:8080/ess_webservice/EssbaseWebService", "Method=POST", "Resource=0", "RecContentType=text/xml", "Referer=", "Snapshot=t8.inf", "Mode=HTTP", "EncType=", "Body=<?xml version=\"1.0\" encoding=\"utf-8\" ?><req id=\"connect\" sessId=\{SESSIONID}\" host=\"172.27.89.110\"/>\r\n", LAST); web_custom_request("EssbaseWebService_9", "URL=http://agent7:8080/ess_webservice/EssbaseWebService", "Method=POST", "Resource=0", "RecContentType=text/xml", "Referer=", "Snapshot=t9.inf", "Mode=HTTP", "EncType=", "Body=<?xml version=\"1.0\" encoding=\"utf-8\" ?><req id=\"selectCube\" sessId=\{SESSIONID}\" app=\"Shipment\" cube=\"Shipment\"/>\r\n", LAST); web_custom_request("EssbaseWebService_10", "URL=http://agent7:8080/ess_webservice/EssbaseWebService", "Method=POST", "Resource=0", "RecContentType=text/xml",
"Referer=", "Snapshot=t10.inf", "Mode=HTTP", "EncType=", "Body=<?xml version=\"1.0\" encoding=\"utf-8\" ?><req id=\"openCubeView\" sessId=\{SESSIONID}\" host=\"172.27.89.110\" app=\"Shipment\" cube=\"Shipment\" useConnPool=\"false\" connPerOp=\"false\"/>\r\n", LAST); web_custom_request("EssbaseWebService_11", "URL=http://agent7:8080/ess_webservice/EssbaseWebService", "Method=POST", "Resource=0", "RecContentType=text/xml", "Referer=", "Snapshot=t11.inf", "Mode=HTTP", "EncType=", "Body=<?xml version=\"1.0\" encoding=\"utf-8\" ?><req id=\"getPref\" sessId=\{SESSIONID}\" prefId=\"essgridprefs\"/>\r\n", LAST); web_custom_request("EssbaseWebService_12", "URL=http://agent7:8080/ess_webservice/EssbaseWebService", "Method=POST", "Resource=0", "RecContentType=text/xml", "Referer=", "Snapshot=t12.inf", "Mode=HTTP", "EncType=", "Body=<?xml version=\"1.0\" encoding=\"utf-8\" ?><req id=\"getPref\" sessId=\{SESSIONID}\" prefId=\"essUserPreferences\"/>\r\n", LAST); web_custom_request("EssbaseWebService_13", "URL=http://agent7:8080/ess_webservice/EssbaseWebService", "Method=POST", "Resource=0", "RecContentType=text/xml", "Referer=", "Snapshot=t13.inf", "Mode=HTTP", "EncType=", "Body=<?xml version=\"1.0\" encoding=\"utf-8\" ?><req id=\"memSel\" sessId=\{SESSIONID}\" mem=\"\" qry=\"0\" alias=\"false\" aliasTable=\"Default\"/>\r\n", LAST); web_custom_request("EssbaseWebService_14", "URL=http://agent7:8080/ess_webservice/EssbaseWebService", "Method=POST", "Resource=0", "RecContentType=text/xml", "Referer=", "Snapshot=t14.inf", "Mode=HTTP", "EncType=", "Body=<?xml version=\"1.0\" encoding=\"utf-8\" ?><req id=\"setProp\" sessId=\{SESSIONID}\" prop=\"ZoomInPreference.NEXT_LEVEL,IncludeSelection.TRUE,SelectionOnly.FALSE,WithinSelected.FALSE,SupMissin g.FALSE,SupZeros.FALSE,SupUnderScores.FALSE,SetAliasNames.FALSE,HybridAnalysis.FALSE,IndentStyle.TOTALS ,SetAliasTable.Default,updatemode.false,UseBothForRowDimensions.FALSE,RepeatMemberNames.FALSE,pfRetrieve.f alse,enableLatestMember.false,displayUnknowns.true\"/>\r\n", LAST); lr_end_transaction("Select_cube",LR_AUTO); return 0; }
Action() {
lr_start_transaction("Retrieve"); lr_think_time(17); web_custom_request("EssbaseWebService_15", "URL=http://agent7:8080/ess_webservice/EssbaseWebService", "Method=POST", "Resource=0", "RecContentType=text/xml", "Referer=", "Snapshot=t15.inf", "Mode=HTTP", "EncType=", "Body=<?xml version=\"1.0\" encoding=\"utf-8\" ?><req id=\"setGridRows\" sessId=\{SESSIONID}\" rows=\"1\" cols=\"1\" dataRow=\"1\" dataCol=\"1\" updateFollows=\"false\" seperator=\"|\"><row>|</row></req>\r\n", LAST); web_reg_find("Text=Order_date", "Fail=NotFound", LAST); web_custom_request("EssbaseWebService_16", "URL=http://agent7:8080/ess_webservice/EssbaseWebService", "Method=POST", "Resource=0", "RecContentType=text/xml", "Referer=", "Snapshot=t16.inf", "Mode=HTTP", "EncType=", "Body=<?xml version=\"1.0\" encoding=\"utf-8\" ?><req id=\"retrieve\" sessId=\{SESSIONID}\" seperator=\"|\"/>\r\n", LAST); lr_end_transaction("Retrieve",LR_AUTO); lr_start_transaction("Drill_on_Order_method"); lr_think_time(32); web_custom_request("EssbaseWebService_17", "URL=http://agent7:8080/ess_webservice/EssbaseWebService", "Method=POST", "Resource=0", "RecContentType=text/xml", "Referer=", "Snapshot=t17.inf", "Mode=HTTP", "EncType=", "Body=<?xml version=\"1.0\" encoding=\"utf-8\" ?><req id=\"setGridRows\" sessId=\{SESSIONID}\" rows=\"2\" cols=\"11\" dataRow=\"1\" dataCol=\"1\" updateFollows=\"false\" seperator=\"|\"><row>|Order_date| Shipment_date|Shipper|Shipment_term|Sales_agent|Promotion|Pmt_term|Product|Customer|Measures| </row><row>Order_method|755801209.000000||||||||||</row></req>\r\n", LAST); web_reg_find("Text=Order_date", "Fail=NotFound", LAST); web_custom_request("EssbaseWebService_18", "URL=http://agent7:8080/ess_webservice/EssbaseWebService", "Method=POST", "Resource=0",
"RecContentType=text/xml", "Referer=", "Snapshot=t18.inf", "Mode=HTTP", "EncType=", "Body=<?xml version=\"1.0\" encoding=\"utf-8\" ?><req id=\"zoomIn\" sessId=\{SESSIONID}\" ranges=\"1,0,1,1,\" pref=\"d\" seperator=\"|\"/>\r\n", LAST); lr_end_transaction("Drill_on_Order_method",LR_AUTO); lr_start_transaction("Drill_on_Order_date"); lr_think_time(33); web_custom_request("EssbaseWebService_19", "URL=http://agent7:8080/ess_webservice/EssbaseWebService", "Method=POST", "Resource=0", "RecContentType=text/xml", "Referer=", "Snapshot=t19.inf", "Mode=HTTP", "EncType=", "Body=<?xml version=\"1.0\" encoding=\"utf-8\" ?><req id=\"setGridRows\" sessId=\{SESSIONID}\" rows=\"6\" cols=\"11\" dataRow=\"1\" dataCol=\"1\" updateFollows=\"false\" seperator=\"|\"><row>|Order_date| Shipment_date|Shipper|Shipment_term|Sales_agent|Promotion|Pmt_term|Product|Customer|Measures|</row><row>om1| 71773510.000000||||||||||</row><row>om2|216127988.000000||||||||||</row><row>om3|108123151.000000|||||||||| </row><row>om4|359776560.000000||||||||||</row><row> Order_method|755801209.000000" "||||||||||</row></req>\r\n", LAST); web_reg_find("Text=Order_date", "Fail=NotFound", LAST); web_custom_request("EssbaseWebService_20", "URL=http://agent7:8080/ess_webservice/EssbaseWebService", "Method=POST", "Resource=0", "RecContentType=text/xml", "Referer=", "Snapshot=t20.inf", "Mode=HTTP", "EncType=", "Body=<?xml version=\"1.0\" encoding=\"utf-8\" ?><req id=\"zoomIn\" sessId=\{SESSIONID}\" ranges=\"0,1,1,1,\" pref=\"d\" seperator=\"|\"/>\r\n", LAST); lr_end_transaction("Drill_on_Order_date",LR_AUTO);
return 0; }
vuser_end() { lr_start_transaction("Sign-off"); lr_think_time(18); web_custom_request("EssbaseWebService_21", "URL=http://agent7:8080/ess_webservice/EssbaseWebService", "Method=POST", "Resource=0", "RecContentType=text/xml", "Referer=", "Snapshot=t21.inf",
"Mode=HTTP", "EncType=", "Body=<?xml version=\"1.0\" encoding=\"utf-8\" ?><req id=\"signOff\" sessId=\{SESSIONID}\"/>\r\n", LAST); lr_end_transaction("Sign-off",LR_AUTO); return 0; }