Exemple #1
0
Action()
{
	int iDebug;
	
	web_cleanup_cookies( );
		
	lr_start_transaction("_TIVApp_001_My_Test");
	
	lr_save_string("TIVApp_001_001_Homepage", "pTransactionName");
	
	web_reg_find("Fail=NotFound",
		"Search=Body",
		"Text=Test site.",
		LAST);

	web_reg_save_param("cServerName",
	    "LB=Set-Cookie: ROUTEID=.",
	    "RB=;",
	    "Notfound=warning",
	    LAST);
	
	web_reg_save_param("cVersion",
	    "LB=version\">",
	    "RB=<",
	    "Notfound=warning",
	    LAST);
	
	lr_start_transaction(lr_eval_string("{pTransactionName}"));
	
	web_url("Homepage", 
		"URL=http://{pURL}/", 
		"Resource=0", 
		"RecContentType=text/html", 
		"Referer=", 
		"Snapshot=t1.inf", 
		"Mode=HTML", 
		LAST);
	// Log Levels:
	// LR_MSG_CLASS_DISABLE_LOG
	// LR_MSG_CLASS_BRIEF_LOG
	// LR_MSG_CLASS_EXTENDED_LOG
	// LR_MSG_CLASS_RESULT_DATA
	// LR_MSG_CLASS_PARAMETERS
	// LR_MSG_CLASS_FULL_TRACE
	iDebug = lr_get_debug_message();

	lr_output_message("TIVMsg: Msg Level was: %d", iDebug);
	
	lr_set_debug_message(LR_MSG_CLASS_EXTENDED_LOG, LR_SWITCH_ON);
	
	lr_debug_message(LR_MSG_CLASS_EXTENDED_LOG | LR_MSG_CLASS_RESULT_DATA,"TIVMsg: %s loaded via server: %s", lr_eval_string("{pTransactionName}"), lr_eval_string("{cServerName}"));
	
	lr_set_debug_message(iDebug, LR_SWITCH_ON);
	
	lr_end_transaction(lr_eval_string("{pTransactionName}"), LR_AUTO);
	
	lr_end_transaction("_TIVApp_001_My_Test", LR_AUTO);
	
	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>&lt;a&gt;&lt;b&gt;&lt;c&gt;&lt;d&gt;"
		"PKG_COMMON.get_app_cache_edit_emp&lt;/d&gt;&lt;e&gt;1&lt;/e&gt;&lt;f&"
		"gt;&lt;c&gt;&lt;j&gt;&lt;c&gt;&lt;k&gt;pin_clientcachedate&lt;/k&gt;&"
		"lt;l&gt;01/01/2000/12/00&lt;/l&gt;&lt;/c&gt;&lt;/j&gt;&lt;h&gt;&lt;c&"
		"gt;&lt;k&gt;rcur_States&lt;/k&gt;&lt;/c&gt;&lt;/h&gt;&lt;h&gt;&lt;c&gt"
		";&lt;k&gt;rcur_Countries&lt;/k&gt;&lt;/c&gt;&lt;/h&gt;&lt;h&gt;&lt;c&"
		"gt;&lt;k&gt;rcur_FederalFilingStatus&lt;/k&gt;&lt;/c&gt;&lt;/h&gt;&lt;"
		"h&gt;&lt;c&gt;&lt;k&gt;rcur_StateFilingStatus&lt;/k&gt;&lt;/c&gt;&lt;/"
		"h&gt;&lt;h&gt;&lt;c&gt;&lt;k&gt;rcur_EarnedIncomeCredit&lt;/k&gt;&lt;/"
		"c&gt;&lt;/h&gt;&lt;h&gt;&lt;c&gt;&lt;k&gt;rcur_ContactRelation&lt;/k&"
		"gt;&lt;/c&gt;&lt;/h&gt;&lt;h&gt;&lt;c&gt;&lt;k&gt;rcur_BadgeStatus&lt;"
		"/k&gt;&lt;/c&gt;&lt;/h&gt;&lt;h&gt;&lt;c&gt;&lt;k&gt;rcur_Language&lt;"
		"/k&gt;&lt;/c&gt;&lt;/h&gt;&lt;h&gt;&lt;c&gt;&lt;k&gt;rcur_PayrollCycle"
		"&lt;/k&gt;&lt;/c&gt;&lt;/h&gt;&lt;h&gt;&lt;c&gt;&lt;k&gt;rcur_Subclass"
		"&lt;/k&gt;&lt;/c&gt;&lt;/h&gt;&lt;h&gt;&lt;c&gt;&lt;k&gt;"
		"rcur_StudentCategory&lt;/k&gt;&lt;/c&gt;&lt;/h&gt;&lt;h&gt;&lt;c&gt;&"
		"lt;k&gt;rcur_MaritalStatus&lt;/k&gt;&lt;/c&gt;&lt;/h&gt;&lt;h&gt;&lt;c"
		"&gt;&lt;k&gt;rcur_Gender&lt;/k&gt;&lt;/c&gt;&lt;/h&gt;&lt;h&gt;&lt;c&"
		"gt;&lt;k&gt;rcur_VisaType&lt;/k&gt;&lt;/c&gt;&lt;/h&gt;&lt;h&gt;&lt;c&"
		"gt;&lt;k&gt;rcur_EEOCode&lt;/k&gt;&lt;/c&gt;&lt;/h&gt;&lt;h&gt;&lt;c&"
		"gt;&lt;k&gt;rcur_Veteran&lt;/k&gt;&lt;/c&gt;&lt;/h&gt;&lt;h&gt;&lt;c&"
		"gt;&lt;k&gt;rcur_Disability&lt;/k&gt;&lt;/c&gt;&lt;/h&gt;&lt;h&gt;&lt;"
		"c&gt;&lt;k&gt;rcur_OccupationCode&lt;/k&gt;&lt;/c&gt;&lt;/h&gt;&lt;h&"
		"gt;&lt;c&gt;&lt;k&gt;rcur_WageDept&lt;/k&gt;&lt;/c&gt;&lt;/h&gt;&lt;h&"
		"gt;&lt;c&gt;&lt;k&gt;rcur_EmploymentStatus&lt;/k&gt;&lt;/c&gt;&lt;/h&"
		"gt;&lt;h&gt;&lt;c&gt;&lt;k&gt;rcur_CodeStatus&lt;/k&gt;&lt;/c&gt;&lt;/"
		"h&gt;&lt;h&gt;&lt;c&gt;&lt;k&gt;rcur_PayrollStatus&lt;/k&gt;&lt;/c&gt;"
		"&lt;/h&gt;&lt;/c&gt;&lt;/f&gt;&lt;g&gt;True&lt;/g&gt;&lt;t&gt;0&lt;/t&"
		"gt;&lt;u&gt;5&lt;/u&gt;&lt;s&gt;False&lt;/s&gt;&lt;/c&gt;&lt;/b&gt;&lt"
		";/a&gt;</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>&lt;a&gt;&lt;b&gt;&lt;c&gt;&lt;d&gt;"
		"PKG_COMMON.spGetResources&lt;/d&gt;&lt;e&gt;1&lt;/e&gt;&lt;f&gt;&lt;c&"
		"gt;&lt;j&gt;&lt;c&gt;&lt;k&gt;ScreenName&lt;/k&gt;&lt;l&gt;New "
		"Employee Edit&lt;/l&gt;&lt;/c&gt;&lt;/j&gt;&lt;j&gt;&lt;c&gt;&lt;k&gt;"
		"CacheAge&lt;/k&gt;&lt;l&gt;03/16/2009 02:20&lt;/l&gt;&lt;/c&gt;&lt;/j&"
		"gt;&lt;h&gt;&lt;c&gt;&lt;k&gt;RefCur&lt;/k&gt;&lt;/c&gt;&lt;/h&gt;&lt;"
		"/c&gt;&lt;/f&gt;&lt;g&gt;True&lt;/g&gt;&lt;t&gt;0&lt;/t&gt;&lt;u&gt;5&"
		"lt;/u&gt;&lt;s&gt;False&lt;/s&gt;&lt;/c&gt;&lt;/b&gt;&lt;/a&gt;</"
		"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>&lt;a&gt;&lt;b&gt;&lt;c&gt;&lt;d&gt;"
		"PKG_EMPLOYEE_EDIT.prc_Emp_Business_Obj_Driver&lt;/d&gt;&lt;e&gt;1&lt;/"
		"e&gt;&lt;f&gt;&lt;c&gt;&lt;h&gt;&lt;c&gt;&lt;k&gt;pout_ref_cur1&lt;/k&"
		"gt;&lt;/c&gt;&lt;/h&gt;&lt;h&gt;&lt;c&gt;&lt;k&gt;pout_ref_cur2&lt;/k&"
		"gt;&lt;/c&gt;&lt;/h&gt;&lt;/c&gt;&lt;/f&gt;&lt;g&gt;True&lt;/g&gt;&lt;"
		"t&gt;0&lt;/t&gt;&lt;u&gt;5&lt;/u&gt;&lt;s&gt;False&lt;/s&gt;&lt;/c&gt;"
		"&lt;/b&gt;&lt;/a&gt;</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>&lt;a&gt;&lt;b&gt;&lt;c&gt;&lt;d&gt;"
		"PKG_COMMON.spGetResources&lt;/d&gt;&lt;e&gt;1&lt;/e&gt;&lt;f&gt;&lt;c&"
		"gt;&lt;j&gt;&lt;c&gt;&lt;k&gt;ScreenName&lt;/k&gt;&lt;l&gt;Employee "
		"Business Object&lt;/l&gt;&lt;/c&gt;&lt;/j&gt;&lt;j&gt;&lt;c&gt;&lt;k&"
		"gt;CacheAge&lt;/k&gt;&lt;l&gt;03/16/2009 02:20&lt;/l&gt;&lt;/c&gt;&lt;"
		"/j&gt;&lt;h&gt;&lt;c&gt;&lt;k&gt;RefCur&lt;/k&gt;&lt;/c&gt;&lt;/h&gt;&"
		"lt;/c&gt;&lt;/f&gt;&lt;g&gt;True&lt;/g&gt;&lt;t&gt;0&lt;/t&gt;&lt;u&gt"
		";5&lt;/u&gt;&lt;s&gt;False&lt;/s&gt;&lt;/c&gt;&lt;/b&gt;&lt;/a&gt;</"
		"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;
}