コード例 #1
0
ファイル: y_string.c プロジェクト: linpelvis/y-lib
/*!
This function uses a given set of characters to create words, separated by spaces.
The words are minimal \e minWordLength characters long, and maximum \e minWordLength characters.
The total length of the line is minimal \e minimumLength and maimum \e maximumLength long.

\b Example:
\code
// Generates a string of minimal 3 and max 20 characters, 
// with words of minimal 1 and maximal 3 charactes.
// Chooses only characters a, c, d or d.
y_random_string_buffer_core("uitvoer", 3,20, 1, 3, "abcd");

// Generates some sort of mock morse-code of exactly 30 characters.
// with words of minimal 1 and maximal 3 charactes.
// Chooses only characters a, c, d or d.
y_random_string_buffer_core("uitvoer", 3,20, 1, 3, "abcd"); // could result in "ccc db dac c"
\endcode

@param[out] parameter Name of the LR-parameter in which the result is stored
@param[in] minimumLength Minumum length of the string
@param[in] maximumLength Maximum length of the string
@param[in] minWordLength Minimum length of the words within the string
@param[in] maxWordLength Minimum length of the words within the string
@param[in] characterSet The string is build from this string of characters
\return void
\author Floris Kraak / Raymond de Jongh

\sa y_random_number_buffer
\sa y_random_string_buffer_curses
\sa y_random_string_buffer
\sa y_random_string_buffer_hex
*/
void y_random_string_buffer_core(const char *parameter, int minimumLength, int maximumLength, 
                                 int minWordLength, int maxWordLength, char *characterSet)
{
   char *buffer;
   int charSetSize; // length of the characterSet
   int length = 0;
   int max = -1;

   char randomNumber;
   int lettersInWord;

   charSetSize=strlen(characterSet);

   //lr_message("minimumLength %d -- maximumLength %d -- minWordLength %d -- maxWordLength %d", 
   //      minimumLength, maximumLength, minWordLength, maxWordLength);

   // error checks - lots of code that saves us headaches later
   if( minimumLength < 0 ) {
      lr_error_message( "minimumLength less than 0 (%d)", minimumLength );
   }
   else if( maximumLength < 1 ) {
      lr_error_message( "maximumLength less than 1 (%d)", maximumLength );
   }
   else if( maximumLength > (1024 * 1024) ) {
      lr_error_message( "maximumLength too big (%d)", maximumLength );
   }
   else if( maximumLength < minimumLength ) {
      lr_error_message( "minimumLength (%d) bigger than maximumLength (%d)", minimumLength, maximumLength );
   }
   else if(maximumLength > minimumLength) {
      // Not an error
      max = y_rand_between(minimumLength, maximumLength);
      lr_log_message("Max: %d", max);
   }
   else if(maximumLength == minimumLength) {
      // Not an error either
      max = maximumLength;
   }
   else {
      lr_error_message("This can never happen. If we reach this point it's a bug.");
   }

   // if we got an error
   if( max < 0 )
   {
      lr_set_transaction_status(LR_FAIL);
      lr_exit(LR_EXIT_ITERATION_AND_CONTINUE, LR_FAIL);
   }

   // get memory for the buffer
   buffer = (char *)y_mem_alloc( max +1 );
   // note: if this fails y_mem_alloc() aborts the script, so no error handling needed.

   while( length < max )
   {
//      lr_message("Length: %d   max: %d", length, max);
//      lettersInWord = ((y_rand() % 8) + 2);
      if( maxWordLength == 0 )
      {
         lettersInWord = maximumLength;
      }
      else
      {
         lettersInWord = y_rand_between(minWordLength, maxWordLength);
         if( lettersInWord < 0 )
         {
            lr_error_message( "y_rand_between() returned an errorcode (%d)", lettersInWord );
            lr_set_transaction_status(LR_FAIL);
            lr_exit(LR_EXIT_ITERATION_AND_CONTINUE, LR_FAIL);
         }
      }

      while( lettersInWord-- && (length < (max)) )
      {
         randomNumber = (char) (y_rand() % charSetSize);
         buffer[length++] = characterSet[randomNumber];
      }

      if( maxWordLength != 0 )
      {
         if( length < max -1 )
         {
            buffer[length++] = ' ';
         }
      }
   }
   buffer[max] = '\0';

   lr_save_string(buffer, parameter);
   free(buffer);
}
コード例 #2
0
ファイル: loadrunner_utils.c プロジェクト: Ferretproof/y-lib
// --------------------------------------------------------------------------------------------------
// Usage: y_random_string_buffer("parameterNameWhichGetsTheRandomValue", minimumlength, maximumlength);
//
// ex. randomString("randomFeedback", 100, 200); will fill a parameter with between 100 and 200 characters.
// to use the random value, use the parameter name provided.
// To make it look like real sentences, this function inserts spaces at random.
// The "words" will be minimal 1 character long, and max. 8 characters.
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
//        example usage:     
//            y_random_string_buffer("par1", 10,10);   // creates a string of exactly 10 characters and saves it into string {par1}
//            y_random_string_buffer("par1", 5,10);    // creates a string of min 5 and max 10 char and saves it into string {par1}    
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
y_random_string_buffer(const char *parameter, int minimumLength, int maximumLength)
{
   const char characterSet[] = { 
                     'a','b','c','d','e','f','g','h','i','j','k','l','m',
                     'n','o','p','q','r','s','t','u','v','w','x','y','z',
                     'A','B','C','D','E','F','G','H','I','J','K','L','M',
                     'N','O','P','Q','R','S','T','U','V','W','X','Y','Z'};
                     /*
                     '1','2','3','4','5','6','7','8','9','0','?','!','-',
                     ',','.',';',
                     '`','~','@','#','$','%','^','&','*','(',')',
                     '=','_','+','[',']','{','}','|',':','/',
                     '<','>',  };
                     */

   char *buffer;
   int charSetSize = 52; // length of the above array
   int length = 0;
   int max = 0;

   char randomNumber;
   int lettersInWord;

   // error checks - lots of code that saves us headaches later
   if( minimumLength < 1 ) {
      lr_error_message( "minimumLength smaller than 0 (%d)", minimumLength );
   }
   else if( maximumLength < 1 ) {
      lr_error_message( "maximumLength smaller than 0 (%d)", maximumLength );
   }
   else if( maximumLength > (1024 * 1024) ) {
      lr_error_message( "maximumLength too big (%d)", maximumLength );
   }
   else if( maximumLength < minimumLength ) {
      lr_error_message( "minimumLength (%d) bigger than maximumLength (%d)", minimumLength, maximumLength );
   }
   else if(maximumLength > minimumLength) {
      // Not an error
      max = (y_rand() % (maximumLength-minimumLength)) + minimumLength;
   }
   else if(maximumLength == minimumLength) {
      // Not an error either
      max = maximumLength;
   }
   else {
      lr_error_message("This can never happen. If we reach this point it's a bug.");
   }

   // if we got an error
   if( max == 0 )
   {
      lr_set_transaction_status(LR_FAIL);
      // Not sure this is the right exit code that we want to use here, but ok.
      lr_exit(LR_EXIT_ITERATION_AND_CONTINUE, LR_FAIL);
   }
   
   // get memory for the buffer
   buffer = (char *)y_mem_alloc( max +1 );
   // note: if this fails y_mem_alloc() aborts the script, so no error handling needed.

   while( length < max )
   {
      lettersInWord = ((y_rand() % 8) + 2);

      while( lettersInWord-- && (length < (max)) )
      {
         randomNumber = (char) (y_rand() % charSetSize);
         buffer[length++] = characterSet[randomNumber];
      }

      if(length!=max)
      {
          buffer[length++] = ' ';
      }
   }

   buffer[length++] = '\0';

   lr_save_string(buffer, parameter);
   free(buffer);

   return 0;
}
コード例 #3
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;
}