get_google_access_token(){ int rc=LR_PASS; char sOut[256]; // used by wi_EncodePlainToURL() rc=get_pJWTAssertion(); // into parameter pJWTAssertion used by this function. if( rc != LR_PASS ){ return rc; } // No input data to process. if( stricmp("Token",LPCSTR_RunType ) == FOUND ){ // "Token" or "TOKEN" specified in Run-time Attribute "RunType" or command line option "-RunType". wi_startPrintingTrace(); lr_output_message(">> RunType=\"%s\". JWT=%s." ,LPCSTR_RunType ,lr_eval_string("{pJWTAssertion}") ); wi_stopPrinting(); return LR_PASS; } web_add_header("Content-Type","application/x-www-form-urlencoded"); web_add_header("X-Frame-Options","deny"); // to protect against drag'n drop clickjacking attacks in older browsers. web_reg_save_param_ex("ParamName=pAccessToken","LB=\"access_token\" : \"","RB=\"",SEARCH_FILTERS,"Scope=body",LAST); // Example: "Body=grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Ajwt-bearer&assertion={pJWTAssertion}", wi_EncodePlainToOAuth("grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer&assertion=",sOut ); lr_save_string(sOut,"pJWTAssertion_request"); wi_startPrintingTrace(); lr_output_message(">> sOut=\"%s\"." ,lr_eval_string("{pJWTAssertion_request}") ); wi_stopPrinting(); // TODO: 15. If you want to, change the transaction name suffix for access authorization requests. sprintf( tempString1, "%s_1access", lr_eval_string("{pTransSequence}") ); lr_save_string(tempString1,"pTransName"); wi_start_transaction(); // web_rest("Token", web_custom_request("Token", "URL=https://accounts.google.com/o/oauth2/token", "Method=POST", //"ResType=JSON", "Body={pJWTAssertion_request}{pJWTAssertion}", LAST); // The %3A are urlencoded from colons. (but %2D for the dash causes an "Invalid request" response): // "Body=grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer&assertion={pJWTAssertion}", // Common name for "jwt-bearer" is JWT Bearer Token Grant Type Profile for OAuth 2.0 // Defined at http://tools.ietf.org/html/draft-ietf-oauth-jwt-bearer-04 rc = wi_end_transaction(); // "Error -27796: Could not resolve address of hot accounts.google.com" is issued if there in no internet connection. // Google API does not issue "error_description" such as "Audience validation failed". /* The response should look something like: { "access_token" : "1/_5pUwJZs9a545HSeXXXXXuNGITp1XtHhZXXxxyyaacqkbc", "token_type" : "Bearer", "expires_in" : 3600 } */ return rc; } // get_google_access_token()
get_google_short_url(){ // About this call: https://developers.google.com/url-shortener/v1/getting_started // Forum on this: https://groups.google.com/forum/#!forum/google-url-shortener int rc=LR_PASS; int bURLtoShorten_success=LR_PASS; rc=get_long_url_to_shorten(); if( rc != LR_PASS ){ return rc; } // No input data to process. // Define the URL Shortener API Scope to Google: lr_save_string("https://www.googleapis.com/auth/urlshortener","pServiceScope"); // Other Google API FAQ scopes: https://developers.google.com/gdata/faq#AuthScopes sprintf( tempString1, "%s_access", lr_eval_string("{pTransSequence}") ); lr_save_string(tempString1,"pTransName"); rc=get_google_access_token(); if( rc != LR_PASS ){ return rc; } // No input data to process. if( stricmp("NoOp",LPCSTR_RunType ) == FOUND ){ // "NoOp" or "NOOP" specified in Run-time Attribute "RunType" or command line option "-RunType". wi_startPrintingInfo(); lr_output_message(">> RunType=\"%s. JWT=%s." ,LPCSTR_SaveImageYN ,lr_eval_string("{pJWTAssertion}") ); wi_stopPrinting(); return LR_PASS; } // Using parameter file "URLtoShorten.dat" containing parmeter "pURLtoShorten": web_reg_save_param_ex("ParamName=pLongURL","LB=\"longUrl\": \"","RB=\"",SEARCH_FILTERS,"Scope=body",LAST); // the long URL input to API server. web_reg_save_param_ex("ParamName=pShortURL","LB=\"id\": \"","RB=\"",SEARCH_FILTERS,"Scope=body",LAST); // the short URL output from server. // WARNING: Google does not check if there is a short code already generated for the URL before generating another one (which bit.ly does). web_add_header("Authorization", lr_eval_string("Bearer {pAccessToken}")); web_add_header("Content-Type", "application/json"); // TODO: 18. If you want to, change the transaction name suffix for shortenend url requests. sprintf( tempString1, "%s_2shorturl", lr_eval_string("{pTransSequence}") ); lr_save_string(tempString1,"pTransName"); wi_start_transaction(); web_custom_request("Shorten", "URL=https://www.googleapis.com/urlshortener/v1/url", "Method=POST", "Body={\"longUrl\": \"{pURLtoShorten}\"}", LAST); // This code is the C equivalent of the Java at https://developers.google.com/api-client-library/java/apis/urlshortener/v1 // Google docs say output should look like this: // { // "kind": "urlshortener#url",\n // "id": "http://goo.gl/jQVbkn",\n // "longUrl": "http://www.hp.com/"\n // } rc = wi_end_transaction(); if( rc == LR_PASS ){ bURLtoShorten_success=LR_PASS; nURLtoShorten_done++; // increment. } wi_startPrintingDebug(); lr_output_message(">> done=%d LongURL=%s to pShortURL=%s, seconds=%8.2f under %s." ,nURLtoShorten_done ,lr_eval_string("{pLongURL}") ,lr_eval_string("{pShortURL}") ,floatHttpMilliseconds ,lr_eval_string("{pRunConditions}") ); wi_stopPrinting(); #ifdef USE_VTS update_shorturl_in_VTS(); #endif // USE_VTS #ifdef GEN_QR if( bURLtoShorten_success == LR_PASS ){ // TODO: 19. Customize your own transaction name for calling get_google_short_url_qrcode(). lr_save_string("get_google_short_url_qrcode","pTransName"); get_google_short_url_qrcode(); // using pShortURL and pImageFilePath, depending on command flag LPCSTR_SaveImageYN. } #endif // GEN_QR return rc; } // get_google_short_url()
Action() { web_set_proxy("127.0.0.1:8888"); //Set Proxy for test web_add_header("Content-Type","text/xml; charset=utf-8"); //web_add_header("Accept","application/soap+xml, application/dime,multipart/related, text/*"); //web_add_header("Cache-Control","no-cache"); //web_add_header("Pragma","no-cache"); web_add_header("SOAPAction", "\"\""); web_custom_request("AgentServer", "URL=http://127.0.0.1:9091/yys-test-upload/services/ElectronInvoiceSer", "Method=POST", "Resource=0", "RecContentType=text/xml", //"Mode=HTML", "EncType=text/xml; charset=utf-8", "Body=" "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:unib=\"http://ws.chinaunicom.cn/ElectronInvoiceSer/unibssBody\" xmlns:unib1=\"http://ws.chinaunicom.cn/unibssHead\" xmlns:cre=\"http://ws.chinaunicom.cn/ElectronInvoiceSer/unibssBody/createElectronInvoiceReq\" xmlns:unib2=\"" "http://ws.chinaunicom.cn/unibssAttached\">" "<soapenv:Header/>" "<soapenv:Body>" "<unib:CREATE_ELECTRON_INVOICE_INPUT>" "<unib1:UNI_BSS_HEAD>" "<unib1:ORIG_DOMAIN>PTIS</unib1:ORIG_DOMAIN>" "<unib1:SERVICE_NAME>ElectronInvoiceSer</unib1:SERVICE_NAME>" "<unib1:OPERATE_NAME>checkElectronInvoice</unib1:OPERATE_NAME>" "<unib1:ACTION_CODE>0</unib1:ACTION_CODE>" "<unib1:ACTION_RELATION>0</unib1:ACTION_RELATION>" "<unib1:ROUTING>" "<unib1:ROUTE_TYPE>00</unib1:ROUTE_TYPE>" "<unib1:ROUTE_VALUE>11</unib1:ROUTE_VALUE>" "</unib1:ROUTING>" "<unib1:PROC_ID>lyl001</unib1:PROC_ID>" "<unib1:TRANS_IDO>lyl001</unib1:TRANS_IDO>" "<!--Optional:-->" "<unib1:TRANS_IDH></unib1:TRANS_IDH>" "<unib1:PROCESS_TIME>20160512114537</unib1:PROCESS_TIME>" "<!--Optional:-->" "<unib1:RESPONSE>" "<unib1:RSP_TYPE>1</unib1:RSP_TYPE>" "<unib1:RSP_CODE>1111</unib1:RSP_CODE>" "<unib1:RSP_DESC></unib1:RSP_DESC>" "</unib1:RESPONSE>" "<unib1:COM_BUS_INFO>" "<unib1:OPER_ID>00029345sunhong</unib1:OPER_ID>" "<!--Optional:-->" "<unib1:PROVINCE_CODE>00</unib1:PROVINCE_CODE>" "<!--Optional:-->" "<unib1:EPARCHY_CODE>988988</unib1:EPARCHY_CODE>" "<!--Optional:-->" "<unib1:CITY_CODE></unib1:CITY_CODE>" "<unib1:CHANNEL_ID></unib1:CHANNEL_ID>" "<unib1:CHANNEL_TYPE>7777777</unib1:CHANNEL_TYPE>" "<unib1:ACCESS_TYPE>11</unib1:ACCESS_TYPE>" "<!--Optional:-->" "<unib1:ORDER_TYPE>22</unib1:ORDER_TYPE>" "</unib1:COM_BUS_INFO>" "<!--Optional:-->" "<unib1:SP_RESERVE>" "<!--Optional:-->" "<unib1:TRANS_IDC>ECIP0002seq00001</unib1:TRANS_IDC>" "<!--Optional:-->" "<unib1:CUTOFFDAY>20080608</unib1:CUTOFFDAY>" "<unib1:OSNDUNS>2222</unib1:OSNDUNS>" "<!--Optional:-->" "<unib1:HSNDUNS>1100</unib1:HSNDUNS>" "<!--Optional:-->" "<unib1:CONV_ID>ECIP0002seq00001200806081200111</unib1:CONV_ID>" "</unib1:SP_RESERVE>" "<unib1:TEST_FLAG>0</unib1:TEST_FLAG>" "<unib1:MSG_SENDER>1100</unib1:MSG_SENDER>" "<unib1:MSG_RECEIVER>1101</unib1:MSG_RECEIVER>" "</unib1:UNI_BSS_HEAD>" "<unib:UNI_BSS_BODY>" "<cre:CREATE_ELECTRON_INVOICE_REQ>" "<cre:INVOICE_CODE>PFJFUVVFU1Q+PE9SSUdJTkFMPlBGSkZVVlZGVTFSZlEwOU5UVTlPWDBaUVMwb2dZMnhoYzNNOUoxSkZVVlZGVTFSZlEwOU5UVTlPWDBaUVMwb25QanhDV1RZK1BDOUNXVFkrUEVKWk5UNDhMMEpaTlQ0OFIwMUdYMDFEUHVhZnMrZTFydWExcVR3dlIwMUdYMDFEUGp4Q1dUUStQQzlDV1RRK1BGaFRSbDlPVTFKVFFrZytNek13T1RBeE56QTBOak01T0RRNVBDOVlVMFpmVGxOU1UwSklQanhZVTBaZlJGcEVTRDdscm9IbXM2TGx1SUxwcTVqbWxyRGxqTHJsaDR6a3VwSG90Njg1T09XUHR5d3dOVGMwTFRJM09ESXhNakV6UEM5WVUwWmZSRnBFU0Q0OFFsa3pQand2UWxrelBqeENXVEkrUEM5Q1dUSStQRUpaTVQ0eFBDOUNXVEUrUEVwVFNFbytNVEUzUEM5S1UwaEtQanhGVjAwK1BDRmJRMFJCVkVGYlhWMCtQQzlGVjAwK1BFSmFQdWFjdXVXWnFPZThsdVdQdHpvME9Ua3dPVGs1TVRVME16SThMMEphUGp4TFVGSlJQakl3TVRZd01qSXlNVFkwTnpVM1BDOUxVRkpSUGp4S1VVSklQalE1T1RBNU9Ua3dNREF6T0R3dlNsRkNTRDQ4UjAxR1gwNVRVbE5DU0Q0OEwwZE5SbDlPVTFKVFFrZytQRXBaVFQ0d09URTVNemsyTXpjMk9EazRNREk1TXpnMU16d3ZTbGxOUGp4SFRVWmZVMHBJUGpFMU9USXdNRFkyTXpRMUxERTRPVFkwTnpnM09EYzJQQzlIVFVaZlUwcElQanhHVUZSZldrZytQQzlHVUZSZldrZytQRVpRWDAxWFBqd2hXME5FUVZSQld6QXpMemMrTWpRME5UZzFOUzg0UERJOE1qUTRMVEU4TURndk1qa3JMemdyTVNvMUx6VXJNRFlxTlM4NExURXhPQ294TXprd01UZzVOand2Tno0eU5EUTFPRFUxTHpnOE1qd3lNekUrTXlzdE9UZ3lMek00T1R3MUtpbytQaW93TVNzMU5ERXhPUzA1THprd01pODBQRFpkWFQ0OEwwWlFYMDFYUGp4R1VFWk5QakV5TXpRd01EazBPRGN4TmpZd09UUTROekUyUEM5R1VFWk5QanhJV1V4WVBqQThMMGhaVEZnK1BFdFFURmcrTUR3dlMxQk1XRDQ4UzFCU1BrRkpYMUZCWDB0UlBDOUxVRkkrUEZOTFVqNDhMMU5MVWo0OFJraFNQand2UmtoU1BqeFlVMFpmV1VoYVNENDJNVEF4TVRneE9URTVNVGt4T1RFNU1UazhMMWhUUmw5WlNGcElQanhHVUY5SVRUNDJNRGswT0RjeE5qd3ZSbEJmU0UwK1BFWlFVVkZNVTBnK2JIbHNNVEl6TkRVMk56ZzVNRGs0TnpZMU5ETXlNVEk4TDBaUVVWRk1VMGcrUEVaUVgwUk5QakV5TXpRd01EazBPRGN4Tmp3dlJsQmZSRTArUEVkTlJsOUVXa1JJUGp3dlIwMUdYMFJhUkVnK1BFZE5SbDlFV2xsWVBtWmxibWRtWVc1ZmVXRnVRREV6T1M1amIyMDhMMGROUmw5RVdsbFlQanhZVTBaZlRVTSs1TGl0NVp1OTZJR1U1WkNJNTcyUjU3dWM2WUNhNUwraDVweUo2Wm1RNVlXczVZKzQ1YTZCNXJPaTViaUM1WWlHNVlXczVZKzRQQzlZVTBaZlRVTStQRWhLU2tVK01UQXdQQzlJU2twRlBqeFpSbEJmUkUwK1BDOVpSbEJmUkUwK1BFaEtVMFUrS2p3dlNFcFRSVDQ4UWxrM1Bqd3ZRbGszUGp4WlJsQmZTRTArUEM5WlJsQmZTRTArUEVKWk9ENDhMMEpaT0Q0OFFsazVQand2UWxrNVBqeENXVEV3UGp3dlFsa3hNRDQ4UjAxR1gxbElXa2crUEM5SFRVWmZXVWhhU0Q0OFEwOU5UVTlPWDBaUVMwcGZXRTFZV0ZNZ1kyeGhjM005SjBOUFRVMVBUbDlHVUV0S1gxaE5XRmduSUhOcGVtVTlKekVuUGp4RFQwMU5UMDVmUmxCTFNsOVlUVmhZUGp4Q1dUWStQQzlDV1RZK1BFSlpOVDQ4TDBKWk5UNDhRbGswUGp3dlFsazBQanhUUlQ0cVBDOVRSVDQ4UWxrelBqd3ZRbGt6UGp4Q1dUSStQQzlDV1RJK1BFSlpNVDQ4TDBKWk1UNDhSMGRZU0Q0OEwwZEhXRWcrUEZOTVBpbzhMMU5NUGp4WVRWTk1Qand2V0UxVFRENDhSRmMrUEM5RVZ6NDhSbEJJV0ZvK01Ed3ZSbEJJV0ZvK1BGaE5SRW8rUEM5WVRVUktQanhZVFUxRFBqd2hXME5FUVZSQlcrYVpydW1BbXVpMWhPbUhrVjFkUGp3dldFMU5RejQ4V0UxS1JUNHhQQzlZVFVwRlBqd3ZRMDlOVFU5T1gwWlFTMHBmV0UxWVdENDhMME5QVFUxUFRsOUdVRXRLWDFoTldGaFRQand2VWtWUlZVVlRWRjlEVDAxTlQwNWZSbEJMU2o0PTwvT1JJR0lOQUw+PFNFUklBTE5VTUJFUi8+PFNJR05BVFVSRS8+PC9SRVFVRVNUPg==</cre:INVOICE_CODE>" "<!--Zero or more repetitions:-->" "<cre:PARA>" "<cre:PARA_ID></cre:PARA_ID>" "<cre:PARA_VALUE></cre:PARA_VALUE>" "</cre:PARA>" "</cre:CREATE_ELECTRON_INVOICE_REQ>" "</unib:UNI_BSS_BODY>" "<unib2:UNI_BSS_ATTACHED>" "<!--Optional:-->" "<unib2:MEDIA_INFO></unib2:MEDIA_INFO>" "</unib2:UNI_BSS_ATTACHED>" "</unib:CREATE_ELECTRON_INVOICE_INPUT>" "</soapenv:Body>" "</soapenv:Envelope>", LAST); return 0; }
WorkOutPlanPurchase() { /*Correlation comment - Do not change! Original value='3sCnTcDtwsZPf9vlj0rpD7akf8tqkJ+cmjiSZOGI3LcuQkPylwLVUnv9wGCArP7fsctxWzcYxxZdiLyl1Xf9NA==' Name ='authenticity_token_2' Type ='Manual'*/ web_reg_save_param_regexp("ParamName=authenticity_token_2","RegExp=\\ content=\"(.*?)\"\\ ","Ordinal=2",SEARCH_FILTERS,"Scope=Body","IgnoreRedirections=No",LAST); lr_start_transaction("EMPLYE_0018_Shop_For_Plans"); web_link("Shop for plans Browse plans from carriers in the DC Health Care Exchange.", "Text=Shop for plans Browse plans from carriers in the DC Health Care Exchange.", "Snapshot=t24.inf", LAST); lr_end_transaction("EMPLYE_0018_Shop_For_Plans",LR_AUTO); lr_think_time(10); /*********************************************************************************************************************************************************************/ /*Correlation comment - Do not change! Original value='55c40cf669702d3238000000' Name ='plan_shoppings' Type ='Manual'*/ web_reg_save_param_regexp("ParamName=plan_shoppings","RegExp=plan_shoppings/(.*?)\\\r\\\n",SEARCH_FILTERS,"Scope=Headers","IgnoreRedirections=No","RequestUrl=*/create*",LAST); /*Correlation comment - Do not change! Original value='5453a543791e4bcd33000007' Name ='plan_id' Type ='Manual'*/ // web_reg_save_param_regexp("ParamName=plan_id","RegExp=plan_id=(.*?)\">Select\\ Plan",SEARCH_FILTERS,"Scope=Body","IgnoreRedirections=Yes","RequestUrl=*/55c40cf669702d3238000000*", LAST); web_reg_save_param_ex("ParamName=plan_id", "LB=plan_id=", "RB=\">Select Plan", SEARCH_FILTERS, LAST ); /*Correlation comment - Do not change! Original value='3sCnTcDtwsZPf9vlj0rpD7akf8tqkJ+cmjiSZOGI3LcuQkPylwLVUnv9wGCArP7fsctxWzcYxxZdiLyl1Xf9NA==' Name ='authenticity_token_2' Type ='Manual'*/ web_reg_save_param_regexp("ParamName=authenticity_token_3","RegExp=\\ content=\"(.*?)\"\\ ","Ordinal=2",SEARCH_FILTERS,"Scope=Body","IgnoreRedirections=No",LAST); /*********************************************************************************************************************************************************************/ lr_think_time(10); lr_start_transaction("EMPLYE_0019_Select_Plan_Continue_{plan_count}"); web_submit_data("create", "Action=http://{enrollAppLandingPage}/group_selection/create", "Method=POST", "TargetFrame=", "RecContentType=text/html", "Referer=http://{enrollAppLandingPage}/group_selection/new?employee_role_id={employee_role_id}&person_id={person_id}", "Snapshot=t37.inf", "Mode=HTML", ITEMDATA, "Name=utf8", "Value=?", ENDITEM, "Name=authenticity_token", "Value={authenticity_token_2}", ENDITEM, "Name=person_id", "Value={person_id}", ENDITEM, "Name=employee_role_id", "Value={employee_role_id}", ENDITEM, "Name=coverage_household_id", "Value=", ENDITEM, "Name=family_member_ids[0]", "Value={Spouse}", ENDITEM, "Name=family_member_ids[1]", "Value={Child_1}", ENDITEM, "Name=family_member_ids[2]", "Value={Child_2}", ENDITEM, "Name=family_member_ids[3]", "Value={Child_3}", ENDITEM, LAST); lr_end_transaction("EMPLYE_0019_Select_Plan_Continue_{plan_count}",LR_AUTO); lr_think_time(10); /*********************************************************************************************************************************************************************/ /*Correlation comment - Do not change! Original value='3sCnTcDtwsZPf9vlj0rpD7akf8tqkJ+cmjiSZOGI3LcuQkPylwLVUnv9wGCArP7fsctxWzcYxxZdiLyl1Xf9NA==' Name ='authenticity_token_2' Type ='Manual'*/ web_reg_save_param_regexp("ParamName=authenticity_token_4","RegExp=\\ content=\"(.*?)\"\\ ","Ordinal=2",SEARCH_FILTERS,"Scope=Body","IgnoreRedirections=No",LAST); /*********************************************************************************************************************************************************************/ lr_start_transaction("EMPLYE_0020_Click_Select_Plan"); web_submit_data("thankyou", "Action=http://{enrollAppLandingPage}/insured/plan_shoppings/{plan_shoppings}/thankyou?change_plan=&plan_id={plan_id}", "Method=POST", "TargetFrame=", "RecContentType=text/html", "Referer=http://{enrollAppLandingPage}/insured/plan_shoppings/{plan_shoppings}", "Snapshot=t38.inf", "Mode=HTML", ITEMDATA, "Name=_method", "Value=post", ENDITEM, "Name=authenticity_token", "Value={authenticity_token_3}", ENDITEM, LAST); lr_end_transaction("EMPLYE_0020_Click_Select_Plan",LR_AUTO); lr_think_time(10); /*********************************************************************************************************************************************************************/ /*Correlation comment - Do not change! Original value='3sCnTcDtwsZPf9vlj0rpD7akf8tqkJ+cmjiSZOGI3LcuQkPylwLVUnv9wGCArP7fsctxWzcYxxZdiLyl1Xf9NA==' Name ='authenticity_token_2' Type ='Manual'*/ web_reg_save_param_regexp("ParamName=authenticity_token_4","RegExp=\\ content=\"(.*?)\"\\ ","Ordinal=2",SEARCH_FILTERS,"Scope=Body","IgnoreRedirections=No",LAST); /*********************************************************************************************************************************************************************/ lr_start_transaction("EMPLYE_0021_Purchase"); web_submit_data("checkout", "Action=http://{enrollAppLandingPage}/insured/plan_shoppings/{plan_shoppings}/checkout?change_plan=change_plan&plan_id={plan_id}", "Method=POST", "RecContentType=text/html", "Referer=http://{enrollAppLandingPage}/insured/plan_shoppings/{plan_shoppings}/thankyou?change_plan=change_plan&plan_id={plan_id}", "Snapshot=t27.inf", "Mode=HTML", ITEMDATA, "Name=_method", "Value=post", ENDITEM, "Name=authenticity_token", "Value={authenticity_token_4}", ENDITEM, LAST); lr_end_transaction("EMPLYE_0021_Purchase",LR_AUTO); lr_think_time(10); // Add Token Explicitly web_add_header ("X-CSRF-Token", "{authenticity_token_5}"); /*********************************************************************************************************************************************************************/ /*Correlation comment - Do not change! Original value='3sCnTcDtwsZPf9vlj0rpD7akf8tqkJ+cmjiSZOGI3LcuQkPylwLVUnv9wGCArP7fsctxWzcYxxZdiLyl1Xf9NA==' Name ='authenticity_token_2' Type ='Manual'*/ web_reg_save_param_regexp("ParamName=authenticity_token_4","RegExp=\\ content=\"(.*?)\"\\ ","Ordinal=2",SEARCH_FILTERS,"Scope=Body","IgnoreRedirections=No",LAST); /*********************************************************************************************************************************************************************/ lr_start_transaction("EMPLYE_0022_Continue"); web_link("My Account", "Text=My Account", "Snapshot=t28.inf", LAST); lr_end_transaction("EMPLYE_0022_Continue",LR_AUTO); lr_think_time(10); return 0; }
Labor_Load_6() { char error_dll_msg[500]; int dll[8]; web_cleanup_cookies(); web_cache_cleanup(); web_add_auto_header("Accept-Encoding", "gzip, deflate"); web_add_auto_header("Accept-Language", "en-us"); web_add_auto_header("User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2)"); /* * BP: Go to https://www.mysodexho.com */ web_add_cookie("SDXRunStatus=1; DOMAIN=www.mysodexho.com"); web_url("www.mysodexho.com", "URL=http://www.mysodexho.com/", "TargetFrame=", "Resource=0", "RecContentType=text/html", "Referer=", "Snapshot=t1.inf", "Mode=HTML", LAST); web_reg_find("Text=User ID:", "SaveCount=p_homepage", LAST); web_url("index.asp", "URL=https://www.mysodexho.com/index.asp", "TargetFrame=", "Resource=0", "RecContentType=text/html", "Referer=", "Snapshot=t2.inf", "Mode=HTML", EXTRARES, "Url=/Styles/LNav.jpg", ENDITEM, "Url=/Images/LNav.jpg", ENDITEM, "Url=/Images/MS-login-small.swf", ENDITEM, LAST); lr_start_transaction("Labor_Load_6"); //Customer specific error message if homepage doesn't load if(atoi(lr_eval_string("{p_homepage}")) < 1) { lr_error_message("MySodexo site is unavailable for Labor Load 6"); lr_end_transaction("Labor_Load_6", LR_FAIL); return 0; } /* BP: Login with username and password */ web_reg_find("Text=Labor Management", "SaveCount=p_menu", LAST); web_reg_find("Text=About MySodexo", "SaveCount=p_login", LAST); web_submit_data("Validator.aspx", "Action=https://www.mysodexho.com/SSOValidator/Validator.aspx", "Method=POST", "TargetFrame=", "RecContentType=text/html", "Referer=https://www.mysodexho.com/index.asp", "Snapshot=t3.inf", "Mode=HTML", ITEMDATA, "Name=userid", "Value={enc_user}", ENDITEM, "Name=password", "Value={enc_pwd}", ENDITEM, "Name=AppID", "Value=MSA", ENDITEM, "Name=Login.x", "Value=63", ENDITEM, "Name=Login.y", "Value=9", ENDITEM, EXTRARES, "Url=../Images/MainPageHeader.swf", "Referer=https://www.mysodexho.com/MsaSecmod/first.aspx", ENDITEM, "Url=../Images/MainPagenav-background-withstripe.jpg", "Referer=https://www.mysodexho.com/MsaSecmod/first.aspx", ENDITEM, LAST); //Customer specific error message if login fails if(atoi(lr_eval_string("{p_login}")) < 1) { lr_error_message("MSA Login failed with account \"%s\" for Labor Load 6", lr_eval_string("{enc_user}")); lr_end_transaction("Labor_Load_6", LR_FAIL); return 0; } //Customer specific error message if menu doesn't load if(atoi(lr_eval_string("{p_menu}")) < 1) { lr_error_message("MySodexo Menu is not functional for Labor Load 6"); lr_end_transaction("Labor_Load_6", LR_FAIL); return 0; } /* BP: Click on My Applications -> Applications -> Labor Management - ADP*/ web_url("lmprodadp.asp", "URL=https://www.mysodexho.com/applications/Spot_Request/lmprodadp.asp", "TargetFrame=", "Resource=0", "RecContentType=text/html", "Referer=", "Snapshot=t4.inf", "Mode=HTML", LAST); web_url("HttpHandler.aspx", "URL=https://www.mysodexho.com/MsaSecmod/HttpHandler.aspx?Action=UserAppAccessHist&AppID=2362", "TargetFrame=", "Resource=0", "RecContentType=text/html", "Referer=https://www.mysodexho.com/MsaSecmod/first.aspx", "Snapshot=t5.inf", "Mode=HTML", LAST); web_reg_find("Text=Launch Labor Management", "SaveCount=p_LMlink", LAST); web_submit_data("index.aspx", "Action=https://lms.mysodexho.com/UIORAADP/index.aspx", "Method=POST", "TargetFrame=", "RecContentType=text/html", "Referer=https://www.mysodexho.com/applications/Spot_Request/lmprodadp.asp", "Snapshot=t6.inf", "Mode=HTML", ITEMDATA, "Name=userid", "Value={enc_user}", ENDITEM, "Name=AppID", "Value=SLMSQAS", ENDITEM, "Name=splashtitle", "Value=Labor_Management_Splash_Screen", ENDITEM, EXTRARES, "Url=Styles/LNav.jpg", ENDITEM, "Url=images/launch-button-over.jpg", ENDITEM, "Url=images/Resource-over.jpg", ENDITEM, "Url=images/header-space2-over.jpg", ENDITEM, LAST); //Customer specific error message if "Launch Labor Management" link doesn't appear if(atoi(lr_eval_string("{p_LMlink}")) < 1) { lr_error_message("Labor Management Communications page does not rendor and \"Launch Labor Management\" link is not present for Labor Load 6"); lr_end_transaction("Labor_Load_6", LR_FAIL); return 0; } /* web_custom_request("default.asp", "URL=https://content.mysodexho.com/lm_app/default.asp", "Method=HEAD", "TargetFrame=", "Resource=0", "RecContentType=text/html", "Referer=https://lms.mysodexho.com/UIORAADP/index.aspx", "Mode=HTML", LAST); */ web_reg_find("Text=Labor Management news and update information is temporarily unavailable", "SaveCount=p_LMtridion", LAST); web_url("default.asp_2", "URL=https://content.mysodexho.com/lm_app/default.asp", "TargetFrame=", "Resource=0", "RecContentType=text/html", "Referer=https://lms.mysodexho.com/UIORAADP/index.aspx", "Snapshot=t7.inf", "Mode=HTML", LAST); //Customer specific error message for Labor Management launch page //If the text check is found, print the message if(atoi(lr_eval_string("{p_LMtridion}")) >= 1) { lr_error_message("The Tridion Content is unavailable and the Static Page has Rendered for Labor Load 6"); lr_end_transaction("Labor_Load_6", LR_FAIL); } /* BP: Click the "Launch Labor Management" link at the top */ web_url("lmsplash.html", "URL=https://lms.mysodexho.com/UIORAADP/lmsplash.html", "TargetFrame=", "Resource=0", "RecContentType=text/html", "Referer=", "Snapshot=t8.inf", "Mode=HTML", LAST); web_revert_auto_header("Accept-Language"); web_url("default.aspx", "URL=https://lms.mysodexho.com/UIORAADP/default.aspx?userid={enc_user}", "TargetFrame=", "Resource=0", "RecContentType=text/html", "Referer=", "Snapshot=t9.inf", "Mode=HTML", //EXTRARES, //"Url=BootStrapper.dll", "Referer=https://lms.mysodexho.com/UIORAADP/default.aspx?userid={enc_user}", ENDITEM, //"Url=BootStrapper.DLL", "Referer=", ENDITEM, //"Url=LMCore.DLL", "Referer=", ENDITEM, //"Url=Utilities.DLL", "Referer=", ENDITEM, //"Url=LMProxy.DLL", "Referer=", ENDITEM, //"Url=ProxyManager.DLL", "Referer=", ENDITEM, //"Url=BootStrapper.dll.config", "Referer=", ENDITEM, LAST); //The portion below was added manually, pulled from the EXTRARES above //initialize the error_dll_msg string sprintf(error_dll_msg,"Labor Management Home Page did not render for Labor Load 6\nThe following DLLs failed to load:\n"); web_reg_find("Text/BIN=\\x00mnuEditEmployee", "SaveCount=p_dll0", LAST); web_url("BootStrapper.dll", "URL=https://lms.mysodexho.com/UIORAADP/BootStrapper.dll", "Resource=0", "RecContentType=application/x-msdownload", "Referer=https://lms.mysodexho.com/UIORAADP/default.aspx?userid={enc_user}", LAST); if((dll[0] = atoi(lr_eval_string("{p_dll0}"))) < 1) strcat(error_dll_msg,"BootStapper.dll\n"); web_revert_auto_header("Accept-Language"); web_reg_find("Text=<configuration>", "SaveCount=p_dll1", LAST); web_url("BootStrapper.dll.config", "URL=https://lms.mysodexho.com/UIORAADP/BootStrapper.dll.config", "Resource=0", "RecContentType=application/octet-stream", "Referer=", LAST); if((dll[1] = atoi(lr_eval_string("{p_dll1}"))) < 1) strcat(error_dll_msg,"BootStrapper.dll.config\n"); web_reg_find("Text/BIN=\\x00mnuEditSchedule", "SaveCount=p_dll2",LAST); web_url("BootStrapper.DLL", "URL=https://lms.mysodexho.com/UIORAADP/BootStrapper.DLL", "Resource=0", "RecContentType=application/x-msdownload", "Referer=", LAST); if((dll[2] = atoi(lr_eval_string("{p_dll2}"))) < 1) strcat(error_dll_msg,"BootStrapper.DLL\n"); web_reg_find("Text=This program cannot be run in DOS mode", "SaveCount=p_dll3", LAST); web_url("LMCore.DLL", "URL=https://lms.mysodexho.com/UIORAADP/LMCore.DLL", "Resource=0", "RecContentType=application/x-msdownload", "Referer=", LAST); if((dll[3] = atoi(lr_eval_string("{p_dll3}"))) < 1) strcat(error_dll_msg,"LMCore.DLL\n"); web_reg_find("Text=Time Adjustment", "SaveCount=p_dll4", LAST); web_url("Utilities.DLL", "URL=https://lms.mysodexho.com/UIORAADP/Utilities.DLL", "Resource=0", "RecContentType=application/x-msdownload", "Referer=", LAST); if((dll[4] = atoi(lr_eval_string("{p_dll4}"))) < 1) strcat(error_dll_msg,"Utilities.DLL\n"); web_reg_find("Text=This program cannot be run in DOS mode", "SaveCount=p_dll5", LAST); web_url("LMProxy.DLL", "URL=https://lms.mysodexho.com/UIORAADP/LMProxy.DLL", "Resource=0", "RecContentType=application/x-msdownload", "Referer=", LAST); if((dll[5] = atoi(lr_eval_string("{p_dll5}"))) < 1) strcat(error_dll_msg,"LMProxy.DLL\n"); web_reg_find("Text=This program cannot be run in DOS mode", "SaveCount=p_dll6", LAST); web_url("ProxyManager.DLL", "URL=https://lms.mysodexho.com/UIORAADP/ProxyManager.DLL", "Resource=0", "RecContentType=application/x-msdownload", "Referer=", LAST); if((dll[6] = atoi(lr_eval_string("{p_dll6}"))) < 1) strcat(error_dll_msg,"ProxyManager.DLL\n"); web_reg_find("Text=Microsoft.Xml.Serialization.GeneratedAssembly", "SaveCount=p_dll7", LAST); web_url("LMProxy.XmlSerializers.DLL", "URL=https://lms.mysodexho.com/UIORAADP/LMProxy.XmlSerializers.DLL", "Resource=0", "RecContentType=application/x-msdownload", "Referer=", LAST); if((dll[7] = atoi(lr_eval_string("{p_dll7}"))) < 1) strcat(error_dll_msg,"LMProxy.XmlSerializers.DLL\n"); //end manual code entries //Customer specific error message if "Launch Labor Management" link doesn't appear //If ONE of them fails, print the message if(!(dll[0] && dll[1] && dll[2] && dll[3] && dll[4] && dll[5] && dll[6] && dll[7])) { lr_error_message(error_dll_msg); lr_end_transaction("Labor_Load_6", LR_FAIL); return 0; } web_add_auto_header("User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 2.0.50727.832)"); web_add_header("Content-Type", "text/xml; charset=utf-8"); web_add_header("SOAPAction", "\"http://tempuri.org/GetConnectionStatus\""); soap_request("StepName=GetConnectionStatus", "URL=https://lms.mysodexho.com/LMBrokerServices6/LMRequestManager.asmx", "SOAPEnvelope=<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope " "xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"" "http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://" "www.w3.org/2001/XMLSchema\"><soap:Body><GetConnectionStatus xmlns=\"" "http://tempuri.org/\" /></soap:Body></soap:Envelope>", "Snapshot=t11.inf", "ResponseParam=response", LAST); web_add_header("Content-Type", "text/xml; charset=utf-8"); web_add_header("SOAPAction", "\"http://tempuri.org/GetUserDetails\""); soap_request("StepName=GetUserDetails", "URL=https://lms.mysodexho.com/LMBrokerServices6/LMRequestManager.asmx", "SOAPEnvelope=<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope " "xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"" "http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://" "www.w3.org/2001/XMLSchema\"><soap:Body><GetUserDetails xmlns=\"http://" "tempuri.org/\"><submit>{enc_user}|01/01/2000/12/00|01/01/2000/12/00</submit" "></GetUserDetails></soap:Body></soap:Envelope>", "Snapshot=t12.inf", "ResponseParam=response", LAST); /* BP: Click Edit -> Employee */ web_add_header("Content-Type", "text/xml; charset=utf-8"); web_add_header("SOAPAction", "\"http://tempuri.org/GetConnectionStatus\""); soap_request("StepName=GetConnectionStatus_2", "URL=https://lms.mysodexho.com/LMBrokerServices6/LMRequestManager.asmx", "SOAPEnvelope=<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope " "xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"" "http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://" "www.w3.org/2001/XMLSchema\"><soap:Body><GetConnectionStatus xmlns=\"" "http://tempuri.org/\" /></soap:Body></soap:Envelope>", "Snapshot=t13.inf", "ResponseParam=response", LAST); web_add_header("Content-Type", "text/xml; charset=utf-8"); web_add_header("SOAPAction", "\"http://tempuri.org/InvokeDAL\""); soap_request("StepName=InvokeDAL", "URL=https://lms.mysodexho.com/LMBrokerServices6/LMRequestManager.asmx", "SOAPEnvelope=<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope " "xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"" "http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://" "www.w3.org/2001/XMLSchema\"><soap:Body><InvokeDAL xmlns=\"http://" "tempuri.org/\"><submit><a><b><c><d>" "PKG_COMMON.get_app_cache_edit_emp</d><e>1</e><f&" "gt;<c><j><c><k>pin_clientcachedate</k>&" "lt;l>01/01/2000/12/00</l></c></j><h><c&" "gt;<k>rcur_States</k></c></h><h><c>" ";<k>rcur_Countries</k></c></h><h><c&" "gt;<k>rcur_FederalFilingStatus</k></c></h><" "h><c><k>rcur_StateFilingStatus</k></c></" "h><h><c><k>rcur_EarnedIncomeCredit</k></" "c></h><h><c><k>rcur_ContactRelation</k&" "gt;</c></h><h><c><k>rcur_BadgeStatus<" "/k></c></h><h><c><k>rcur_Language<" "/k></c></h><h><c><k>rcur_PayrollCycle" "</k></c></h><h><c><k>rcur_Subclass" "</k></c></h><h><c><k>" "rcur_StudentCategory</k></c></h><h><c>&" "lt;k>rcur_MaritalStatus</k></c></h><h><c" "><k>rcur_Gender</k></c></h><h><c&" "gt;<k>rcur_VisaType</k></c></h><h><c&" "gt;<k>rcur_EEOCode</k></c></h><h><c&" "gt;<k>rcur_Veteran</k></c></h><h><c&" "gt;<k>rcur_Disability</k></c></h><h><" "c><k>rcur_OccupationCode</k></c></h><h&" "gt;<c><k>rcur_WageDept</k></c></h><h&" "gt;<c><k>rcur_EmploymentStatus</k></c></h&" "gt;<h><c><k>rcur_CodeStatus</k></c></" "h><h><c><k>rcur_PayrollStatus</k></c>" "</h></c></f><g>True</g><t>0</t&" "gt;<u>5</u><s>False</s></c></b><" ";/a></submit></InvokeDAL></soap:Body></soap:Envelope>", "Snapshot=t14.inf", "ResponseParam=response", LAST); web_add_header("Content-Type", "text/xml; charset=utf-8"); web_add_header("SOAPAction", "\"http://tempuri.org/GetConnectionStatus\""); soap_request("StepName=GetConnectionStatus_3", "URL=https://lms.mysodexho.com/LMBrokerServices6/LMRequestManager.asmx", "SOAPEnvelope=<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope " "xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"" "http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://" "www.w3.org/2001/XMLSchema\"><soap:Body><GetConnectionStatus xmlns=\"" "http://tempuri.org/\" /></soap:Body></soap:Envelope>", "Snapshot=t15.inf", "ResponseParam=response", LAST); web_add_header("Content-Type", "text/xml; charset=utf-8"); web_add_header("SOAPAction", "\"http://tempuri.org/InvokeDAL\""); soap_request("StepName=InvokeDAL_2", "URL=https://lms.mysodexho.com/LMBrokerServices6/LMRequestManager.asmx", "SOAPEnvelope=<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope " "xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"" "http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://" "www.w3.org/2001/XMLSchema\"><soap:Body><InvokeDAL xmlns=\"http://" "tempuri.org/\"><submit><a><b><c><d>" "PKG_COMMON.spGetResources</d><e>1</e><f><c&" "gt;<j><c><k>ScreenName</k><l>New " "Employee Edit</l></c></j><j><c><k>" "CacheAge</k><l>03/16/2009 02:20</l></c></j&" "gt;<h><c><k>RefCur</k></c></h><" "/c></f><g>True</g><t>0</t><u>5&" "lt;/u><s>False</s></c></b></a></" "submit></InvokeDAL></soap:Body></soap:Envelope>", "Snapshot=t16.inf", "ResponseParam=response", LAST); web_add_header("Content-Type", "text/xml; charset=utf-8"); web_add_header("SOAPAction", "\"http://tempuri.org/GetConnectionStatus\""); soap_request("StepName=GetConnectionStatus_4", "URL=https://lms.mysodexho.com/LMBrokerServices6/LMRequestManager.asmx", "SOAPEnvelope=<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope " "xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"" "http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://" "www.w3.org/2001/XMLSchema\"><soap:Body><GetConnectionStatus xmlns=\"" "http://tempuri.org/\" /></soap:Body></soap:Envelope>", "Snapshot=t17.inf", "ResponseParam=response", LAST); web_add_header("Content-Type", "text/xml; charset=utf-8"); web_add_header("SOAPAction", "\"http://tempuri.org/InvokeDAL\""); soap_request("StepName=InvokeDAL_3", "URL=https://lms.mysodexho.com/LMBrokerServices6/LMRequestManager.asmx", "SOAPEnvelope=<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope " "xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"" "http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://" "www.w3.org/2001/XMLSchema\"><soap:Body><InvokeDAL xmlns=\"http://" "tempuri.org/\"><submit><a><b><c><d>" "PKG_EMPLOYEE_EDIT.prc_Emp_Business_Obj_Driver</d><e>1</" "e><f><c><h><c><k>pout_ref_cur1</k&" "gt;</c></h><h><c><k>pout_ref_cur2</k&" "gt;</c></h></c></f><g>True</g><" "t>0</t><u>5</u><s>False</s></c>" "</b></a></submit></InvokeDAL></soap:Body></soap:Envelope>", "Snapshot=t18.inf", "ResponseParam=response", LAST); if(strstr(lr_eval_string("{response}"),"Edit Employee AddressInfo") == NULL) { lr_error_message("Labor Load 6 failed to call Edit Employee"); lr_set_transaction_status(LR_FAIL); } web_add_header("Content-Type", "text/xml; charset=utf-8"); web_add_header("SOAPAction", "\"http://tempuri.org/GetConnectionStatus\""); soap_request("StepName=GetConnectionStatus_5", "URL=https://lms.mysodexho.com/LMBrokerServices6/LMRequestManager.asmx", "SOAPEnvelope=<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope " "xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"" "http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://" "www.w3.org/2001/XMLSchema\"><soap:Body><GetConnectionStatus xmlns=\"" "http://tempuri.org/\" /></soap:Body></soap:Envelope>", "Snapshot=t19.inf", "ResponseParam=response", LAST); web_add_header("Content-Type", "text/xml; charset=utf-8"); web_add_header("SOAPAction", "\"http://tempuri.org/InvokeDAL\""); soap_request("StepName=InvokeDAL_4", "URL=https://lms.mysodexho.com/LMBrokerServices6/LMRequestManager.asmx", "SOAPEnvelope=<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope " "xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"" "http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://" "www.w3.org/2001/XMLSchema\"><soap:Body><InvokeDAL xmlns=\"http://" "tempuri.org/\"><submit><a><b><c><d>" "PKG_COMMON.spGetResources</d><e>1</e><f><c&" "gt;<j><c><k>ScreenName</k><l>Employee " "Business Object</l></c></j><j><c><k&" "gt;CacheAge</k><l>03/16/2009 02:20</l></c><" "/j><h><c><k>RefCur</k></c></h>&" "lt;/c></f><g>True</g><t>0</t><u>" ";5</u><s>False</s></c></b></a></" "submit></InvokeDAL></soap:Body></soap:Envelope>", "Snapshot=t20.inf", "ResponseParam=response", LAST); lr_end_transaction("Labor_Load_6", LR_AUTO); /* BP: Close LM and Log Off */ web_add_auto_header("Accept-Encoding", "gzip, deflate"); web_add_auto_header("Accept-Language", "en-us"); web_add_auto_header("User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2)"); web_url("singlelogout.asp", "URL=https://www.mysodexho.com/Log_in/singlelogout.asp?LogoutCondition=BLogout", "TargetFrame=", "Resource=0", "RecContentType=text/html", "Referer=", "Snapshot=t21.inf", "Mode=HTML", LAST); web_url("www.mysodexho.com_2", "URL=https://www.mysodexho.com/", "TargetFrame=", "Resource=0", "RecContentType=text/html", "Referer=", "Snapshot=t22.inf", "Mode=HTML", EXTRARES, "Url=/Images/LNav.jpg", ENDITEM, "Url=/Styles/LNav.jpg", ENDITEM, "Url=/Images/MS-login-small.swf", ENDITEM, LAST); return 0; }
Logon() { web_add_cookie("birdsmp04.na.sas.com_Cluster=2C4A0D48B64F3269567B7E35E8BB1572.birdsmp04.na.sas.com_SASServer1_1; DOMAIN=birdsmp04.na.sas.com"); lr_think_time(16); web_submit_data("login;birdsmp04.na.sas.com_Cluster=19B802BADCCDFA791C25D9E187633C13.birdsmp04.na.sas.com_SASServer1_1", "Action=http://birdsmp04.na.sas.com/SASLogon/login;birdsmp04.na.sas.com_Cluster=19B802BADCCDFA791C25D9E187633C13.birdsmp04.na.sas.com_SASServer1_1?service=http%3A%2F%2Fbirdsmp04.na.sas.com%2FSASVisualAnalyticsExplorer%2Fj_spring_cas_security_check", "Method=POST", "RecContentType=text/html", "Referer=http://birdsmp04.na.sas.com/SASLogon/login?service=http%3A%2F%2Fbirdsmp04.na.sas.com%2FSASVisualAnalyticsExplorer%2Fj_spring_cas_security_check", "Snapshot=t4.inf", "Mode=HTML", ITEMDATA, "Name=username", "Value=rdtest0001", ENDITEM, "Name=password", "Value=good2go", ENDITEM, "Name=lt", "Value=LT-23-Kc5fL36haBcikHMxcwsipEOZolJ0PY", ENDITEM, "Name=execution", "Value=e1s1", ENDITEM, "Name=_eventId", "Value=submit", ENDITEM, LAST); web_concurrent_start(NULL); web_url("swfobject.js", "URL=http://birdsmp04.na.sas.com/SASVisualAnalyticsExplorer/scripts/swfobject.js", "Resource=1", "RecContentType=application/javascript", "Referer=http://birdsmp04.na.sas.com/SASVisualAnalyticsExplorer/VisualAnalyticsExplorer/VisualAnalyticsExplorerApp.jsp", "Snapshot=t5.inf", LAST); web_url("rightClick.js", "URL=http://birdsmp04.na.sas.com/SASVisualAnalyticsExplorer/scripts/rightClick.js", "Resource=1", "RecContentType=application/javascript", "Referer=http://birdsmp04.na.sas.com/SASVisualAnalyticsExplorer/VisualAnalyticsExplorer/VisualAnalyticsExplorerApp.jsp", "Snapshot=t6.inf", LAST); web_add_header("x-flash-version", "11,7,700,202"); web_url("VisualAnalyticsExplorerApp.swf", "URL=http://birdsmp04.na.sas.com/SASVisualAnalyticsExplorer/VisualAnalyticsExplorer/VisualAnalyticsExplorerApp.swf", "Resource=1", "RecContentType=application/x-shockwave-flash", "Referer=http://birdsmp04.na.sas.com/SASVisualAnalyticsExplorer/VisualAnalyticsExplorer/VisualAnalyticsExplorerApp.jsp", "Snapshot=t7.inf", LAST); web_add_header("x-flash-version", "11,7,700,202"); web_url("splash.swf", "URL=http://birdsmp04.na.sas.com/SASFlexThemes/4.1/ApplicationThemes/Corporate/splash.swf", "Resource=1", "RecContentType=application/x-shockwave-flash", "Referer=http://birdsmp04.na.sas.com/SASVisualAnalyticsExplorer/VisualAnalyticsExplorer/VisualAnalyticsExplorerApp.swf", "Snapshot=t8.inf", LAST); web_concurrent_end(NULL); web_add_header("x-flash-version", "11,7,700,202"); lr_think_time(4); web_submit_data("config.xml", "Action=http://birdsmp04.na.sas.com/SASVisualAnalyticsExplorer/VisualAnalyticsExplorer/config.xml", "Method=POST", "RecContentType=application/xml", "Referer=http://birdsmp04.na.sas.com/SASVisualAnalyticsExplorer/VisualAnalyticsExplorer/VisualAnalyticsExplorerApp.swf", "Snapshot=t9.inf", "Mode=HTML", ITEMDATA, "Name=dummy", "Value=dummy", ENDITEM, LAST); web_url("historyFrame.html", "URL=http://birdsmp04.na.sas.com/SASVisualAnalyticsExplorer/VisualAnalyticsExplorer/history/historyFrame.html?", "Resource=0", "RecContentType=text/html", "Referer=http://birdsmp04.na.sas.com/SASVisualAnalyticsExplorer/VisualAnalyticsExplorer/VisualAnalyticsExplorerApp.jsp", "Snapshot=t10.inf", "Mode=HTML", LAST); web_add_header("x-flash-version", "11,7,700,202"); web_concurrent_start(NULL); web_url("FlexServicesConfigServlet", "URL=http://birdsmp04.na.sas.com/SASVisualAnalyticsExplorer/FlexServicesConfigServlet", "Resource=1", "RecContentType=text/plain", "Referer=http://birdsmp04.na.sas.com/SASVisualAnalyticsExplorer/VisualAnalyticsExplorer/VisualAnalyticsExplorerApp.swf", "Snapshot=t11.inf", LAST); web_add_header("x-flash-version", "11,7,700,202"); web_url("ResourceModule_en_US.swf", "URL=http://birdsmp04.na.sas.com/SASVisualAnalyticsExplorer/VisualAnalyticsExplorer/ResourceModules/ResourceModule_en_US.swf", "Resource=1", "RecContentType=application/x-shockwave-flash", "Referer=http://birdsmp04.na.sas.com/SASVisualAnalyticsExplorer/VisualAnalyticsExplorer/VisualAnalyticsExplorerApp.swf", "Snapshot=t12.inf", LAST); web_concurrent_end(NULL); web_add_auto_header("x-flash-version", "11,7,700,202"); web_submit_data("keepalive", "Action=http://birdsmp04.na.sas.com/SASVisualAnalyticsExplorer/service/keepalive", "Method=POST", "RecContentType=text/plain", "Referer=http://birdsmp04.na.sas.com/SASVisualAnalyticsExplorer/VisualAnalyticsExplorer/VisualAnalyticsExplorerApp.swf", "Snapshot=t13.inf", "Mode=HTML", ITEMDATA, "Name=dummyTimeoutParam", "Value=true", ENDITEM, LAST); flex_amf_call("AMF3_call", "Gateway=http://birdsmp04.na.sas.com/SASVisualAnalyticsExplorer/" "messagebroker/sasamf", "Snapshot=t14.inf", MESSAGE, "Method=null", "TargetObjectId=/1", BEGIN_ARGUMENTS, "<AMF3><object-externalizable-custom>" "<flex.messaging.messages.CommandMessage><destination></destination>" "<messageId>04F70790-DA98-FB05-00F9-1A92DE070668</messageId><timestamp" ">0</timestamp><timeToLive>0</timeToLive><headers><entry><string>DSId</" "string><string>nil</string></entry><entry><string>DSMessagingVersion</" "string><int>1</int></entry></headers><body class=\"" "flex.messaging.io.amf.ASObject\" serialization=\"custom\">" "<unserializable-parents/><map><default><loadFactor>0.75</loadFactor>" "<threshold>12</threshold></default><int>16</int><int>0</int></map>" "<flex.messaging.io.amf.ASObject><default><inHashCode>false</inHashCode" "><inToString>false</inToString></default></" "flex.messaging.io.amf.ASObject></body><correlationId></correlationId>" "<operation>5</operation></flex.messaging.messages.CommandMessage></" "object-externalizable-custom></AMF3>", END_ARGUMENTS, LAST); flex_amf_call("AMF3_call_1", "Gateway=http://birdsmp04.na.sas.com/SASVisualAnalyticsExplorer/" "messagebroker/sasamf", "Snapshot=t15.inf", MESSAGE, "Method=null", "TargetObjectId=/2", BEGIN_ARGUMENTS, "<AMF3><object-externalizable-custom>" "<flex.messaging.messages.RemotingMessage><destination" ">preferenceService</destination><messageId" ">1638A08F-4E75-2323-145E-1A92DDEC7226</messageId><timestamp>0</" "timestamp><timeToLive>0</timeToLive><headers><entry><string>DSEndpoint" "</string><string>amf</string></entry><entry><string>DSId</string>" "<string>FE0923BB-B0DE-2D11-D8E7-347C25FDD30D</string></entry></headers" "><operation>getPreference</operation><parameters><string>Visual " "Analytics Explorer.recentWork</string></parameters></" "flex.messaging.messages.RemotingMessage></object-externalizable-custom" "></AMF3>", END_ARGUMENTS, MESSAGE, "Method=null", "TargetObjectId=/3", BEGIN_ARGUMENTS, "<AMF3><object-externalizable-custom>" "<flex.messaging.messages.RemotingMessage><destination" ">preferenceService</destination><messageId" ">F017E300-F0CB-258F-FCE7-1A92DDF4D372</messageId><timestamp>0</" "timestamp><timeToLive>0</timeToLive><headers><entry><string>DSEndpoint" "</string><string>amf</string></entry><entry><string>DSId</string>" "<string>FE0923BB-B0DE-2D11-D8E7-347C25FDD30D</string></entry></headers" "><operation>getPreference</operation><parameters><string>Visual " "Analytics Explorer.workspaceShell.workspaceDisplay</string></" "parameters></flex.messaging.messages.RemotingMessage></" "object-externalizable-custom></AMF3>", END_ARGUMENTS, MESSAGE, "Method=null", "TargetObjectId=/4", BEGIN_ARGUMENTS, "<AMF3><object-externalizable-custom>" "<flex.messaging.messages.RemotingMessage><destination" ">preferenceService</destination><messageId" ">2B9D98ED-B73B-CB0D-29C1-1A92DDF5DDCC</messageId><timestamp>0</" "timestamp><timeToLive>0</timeToLive><headers><entry><string>DSEndpoint" "</string><string>amf</string></entry><entry><string>DSId</string>" "<string>FE0923BB-B0DE-2D11-D8E7-347C25FDD30D</string></entry></headers" "><operation>getPreferences</operation><parameters><object-array>" "<string>Visual Analytics Explorer.workspaceShell.initialWorkspace</" "string><string>Visual Analytics Explorer.workspaceShell.maxRecentWork<" "/string></object-array></parameters></" "flex.messaging.messages.RemotingMessage></object-externalizable-custom" "></AMF3>", END_ARGUMENTS, MESSAGE, "Method=null", "TargetObjectId=/5", BEGIN_ARGUMENTS, "<AMF3><object-externalizable-custom>" "<flex.messaging.messages.RemotingMessage><destination" ">preferenceService</destination><messageId" ">E0F105F5-AEB6-24CB-A0C4-1A92DDF5F7FA</messageId><timestamp>0</" "timestamp><timeToLive>0</timeToLive><headers><entry><string>DSEndpoint" "</string><string>amf</string></entry><entry><string>DSId</string>" "<string>FE0923BB-B0DE-2D11-D8E7-347C25FDD30D</string></entry></headers" "><operation>getPreference</operation><parameters><string>Visual " "Analytics Explorer.workspaceShell.userStateBlock</string></parameters>" "</flex.messaging.messages.RemotingMessage></" "object-externalizable-custom></AMF3>", END_ARGUMENTS, LAST); web_concurrent_start(NULL); web_url("ResourceModule_Formats.swf", "URL=http://birdsmp04.na.sas.com/SASVisualAnalyticsExplorer/VisualAnalyticsExplorer/ResourceModules/ResourceModule_Formats.swf", "Resource=1", "RecContentType=application/x-shockwave-flash", "Referer=http://birdsmp04.na.sas.com/SASVisualAnalyticsExplorer/VisualAnalyticsExplorer/VisualAnalyticsExplorerApp.swf", "Snapshot=t16.inf", LAST); web_url("Themes.xml", "URL=http://birdsmp04.na.sas.com/SASFlexThemes/4.1/Themes.xml", "Resource=1", "RecContentType=application/xml", "Referer=http://birdsmp04.na.sas.com/SASVisualAnalyticsExplorer/VisualAnalyticsExplorer/VisualAnalyticsExplorerApp.swf", "Snapshot=t17.inf", LAST); web_url("Corporate.swf", "URL=http://birdsmp04.na.sas.com/SASFlexThemes/4.1/ApplicationThemes/Corporate/Corporate.swf", "Resource=1", "RecContentType=application/x-shockwave-flash", "Referer=http://birdsmp04.na.sas.com/SASVisualAnalyticsExplorer/VisualAnalyticsExplorer/VisualAnalyticsExplorerApp.swf", "Snapshot=t18.inf", LAST); web_url("VisualAnalyticsExplorerApp_Corporate.swf", "URL=http://birdsmp04.na.sas.com/SASFlexThemes/4.1/ApplicationThemes/Corporate/VisualAnalyticsExplorerApp_Corporate.swf", "Resource=1", "RecContentType=application/x-shockwave-flash", "Referer=http://birdsmp04.na.sas.com/SASVisualAnalyticsExplorer/VisualAnalyticsExplorer/VisualAnalyticsExplorerApp.swf", "Snapshot=t19.inf", LAST); web_concurrent_end(NULL); flex_amf_call("AMF3_call_2", "Gateway=http://birdsmp04.na.sas.com/SASVisualAnalyticsExplorer/" "messagebroker/sasamf", "Snapshot=t20.inf", MESSAGE, "Method=null", "TargetObjectId=/6", BEGIN_ARGUMENTS, "<AMF3><object-externalizable-custom>" "<flex.messaging.messages.RemotingMessage><destination>initService</" "destination><messageId>986B9711-B4F1-C2A6-5975-1A92EA5ED8FA</messageId" "><timestamp>0</timestamp><timeToLive>0</timeToLive><headers><entry>" "<string>DSEndpoint</string><string>amf</string></entry><entry><string" ">DSId</string><string>FE0923BB-B0DE-2D11-D8E7-347C25FDD30D</string></" "entry></headers><operation>getInitDto</operation><parameters/></" "flex.messaging.messages.RemotingMessage></object-externalizable-custom" "></AMF3>", END_ARGUMENTS, MESSAGE, "Method=null", "TargetObjectId=/7", BEGIN_ARGUMENTS, "<AMF3><object-externalizable-custom>" "<flex.messaging.messages.RemotingMessage><destination" ">preferenceService</destination><messageId" ">95BCAAC1-727F-3A6F-69FE-1A92EA60011A</messageId><timestamp>0</" "timestamp><timeToLive>0</timeToLive><headers><entry><string>DSEndpoint" "</string><string>amf</string></entry><entry><string>DSId</string>" "<string>FE0923BB-B0DE-2D11-D8E7-347C25FDD30D</string></entry></headers" "><operation>getPreferences</operation><parameters><object-array>" "<string>prefs.vae.general.showDockPanel</string><string" ">prefs.vae.general.dataLoadFactor</string><string" ">prefs.vae.general.graphSkin</string><string" ">VisualAnalytics.recentItemsListSize</string></object-array></" "parameters></flex.messaging.messages.RemotingMessage></" "object-externalizable-custom></AMF3>", END_ARGUMENTS, MESSAGE, "Method=null", "TargetObjectId=/8", BEGIN_ARGUMENTS, "<AMF3><object-externalizable-custom>" "<flex.messaging.messages.RemotingMessage><destination" ">dataProviderService</destination><messageId" ">0C4842E0-BD8E-B5E1-983F-1A92EA67F091</messageId><timestamp>0</" "timestamp><timeToLive>0</timeToLive><headers><entry><string>DSEndpoint" "</string><string>amf</string></entry><entry><string>DSId</string>" "<string>FE0923BB-B0DE-2D11-D8E7-347C25FDD30D</string></entry></headers" "><operation>getAllGeoMapRoles</operation><parameters/></" "flex.messaging.messages.RemotingMessage></object-externalizable-custom" "></AMF3>", END_ARGUMENTS, MESSAGE, "Method=null", "TargetObjectId=/9", BEGIN_ARGUMENTS, "<AMF3><object-externalizable-custom>" "<flex.messaging.messages.RemotingMessage><destination>historyService</" "destination><messageId>6C6F5FA3-2BED-16D3-3594-1A92EA6E3921</messageId" "><timestamp>0</timestamp><timeToLive>0</timeToLive><headers><entry>" "<string>DSEndpoint</string><string>amf</string></entry><entry><string" ">DSId</string><string>FE0923BB-B0DE-2D11-D8E7-347C25FDD30D</string></" "entry></headers><operation>getHistoryFolderForApplication</operation>" "<parameters><string>VisualAnalytics</string></parameters></" "flex.messaging.messages.RemotingMessage></object-externalizable-custom" "></AMF3>", END_ARGUMENTS, LAST); flex_amf_call("AMF3_call_3", "Gateway=http://birdsmp04.na.sas.com/SASVisualAnalyticsExplorer/" "messagebroker/sasamf", "Snapshot=t21.inf", MESSAGE, "Method=null", "TargetObjectId=/10", BEGIN_ARGUMENTS, "<AMF3><object-externalizable-custom>" "<flex.messaging.messages.RemotingMessage><destination>loggingService</" "destination><messageId>FC553D29-7130-F9C3-265F-1A92EC63EF5D</messageId" "><timestamp>0</timestamp><timeToLive>0</timeToLive><headers><entry>" "<string>DSEndpoint</string><string>amf</string></entry><entry><string" ">DSId</string><string>FE0923BB-B0DE-2D11-D8E7-347C25FDD30D</string></" "entry></headers><operation>log</operation><parameters>" "<flex.messaging.io.amf.ASObject serialization=\"custom\">" "<unserializable-parents/><map><default><loadFactor>0.75</loadFactor>" "<threshold>12</threshold></default><int>16</int><int>8</int><string" ">userName</string><string></string><string>performanceLoggingType</" "string><int>2</int><string>operationData</string><string></string>" "<string>extraData</string><null/><string>startTimeMS</string><double" ">1.370540403294E12</double><string>guid</string><string></string>" "<string>stopTimeMS</string><double>1.370540403808E12</double><string" ">operation</string><string>INITIALIZE_APPLICATION</string></map>" "<flex.messaging.io.amf.ASObject><default><inHashCode>false</inHashCode" "><inToString>false</inToString><namedType" ">com.sas.biv.common.dto.PerformanceLoggingDto</namedType></default></" "flex.messaging.io.amf.ASObject></flex.messaging.io.amf.ASObject></" "parameters></flex.messaging.messages.RemotingMessage></" "object-externalizable-custom></AMF3>", END_ARGUMENTS, MESSAGE, "Method=null", "TargetObjectId=/11", BEGIN_ARGUMENTS, "<AMF3><object-externalizable-custom>" "<flex.messaging.messages.RemotingMessage><clientId class=\"string\"" ">FE0B3D4C-E389-776C-36F8-87F73C4225EE</clientId><destination" ">historyService</destination><messageId" ">9CA41011-FC03-F92D-5C6E-1A92ED4BB746</messageId><timestamp>0</" "timestamp><timeToLive>0</timeToLive><headers><entry><string>DSEndpoint" "</string><string>amf</string></entry><entry><string>DSId</string>" "<string>FE0923BB-B0DE-2D11-D8E7-347C25FDD30D</string></entry></headers" "><operation>getHistoryFolderContents</operation><parameters>" "<flex.messaging.io.amf.ASObject serialization=\"custom\">" "<unserializable-parents/><map><default><loadFactor>0.75</loadFactor>" "<threshold>24</threshold></default><int>32</int><int>13</int><string" ">modifiedBy</string><string>rdtest0001</string><string>maxSize</string" "><int>-1</int><string>creationDate</string><date>2013-05-16 15:59" ":36.390 GMT</date><string>createdBy</string><string>rdtest0001</string" "><string>objectType</string><int>104</int><string>id</string><string" ">A5SA6Q01.BP000003/FavoritesContainer</string><string>objectTypeName</" "string><string>HistoryFolder</string><string>descriptor</string>" "<boolean>false</boolean><string>modifiedDate</string><date>2013-05-20 " "19:31:43.650 GMT</date><string>contextName</string><string" ">VisualAnalytics</string><string>description</string><string></string>" "<string>internalVersion</string><int>-1</int><string>name</string>" "<string>History</string></map><flex.messaging.io.amf.ASObject><default" "><inHashCode>false</inHashCode><inToString>false</inToString>" "<namedType" ">com.sas.svcs.content.history.client.ApplicationHistoryFolder</" "namedType></default></flex.messaging.io.amf.ASObject></" "flex.messaging.io.amf.ASObject></parameters></" "flex.messaging.messages.RemotingMessage></object-externalizable-custom" "></AMF3>", END_ARGUMENTS, LAST); return 0; }