how to create a load runner script for essbase spreadshe

Upload: rajeev-ranjan

Post on 13-Jul-2015

179 views

Category:

Documents


0 download

TRANSCRIPT

How to create a Load Runner script for Essbase Spreadsheet Services

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 ApplicationsExcel VBA Toolkit Excel Add-In

How to record LoadRPC Module Excel VBA Runner scriptSOAP

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

Essbase XTD Spreadsheet Service Hyperion Essbase JAVA APIHTTP/EJB/TCPIP

Essbase XTD Deployment Services

Essbase Server Clusters

1. Go to New Multiple Protocol Script panel and select Web[HTTP/HTML] protocol.

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:

3. Choose URL-based script:

4. Check Use web_custom_request only:

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=\r\n", LAST); web_reg_save_param("SESSIONID", "LB=xsd:string\">", "RB=", "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=\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=\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=\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=\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=\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=\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=\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=\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=\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=\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=