Sie sind auf Seite 1von 4

Action()

{
char C_finalcountry[10000];
long file;
long file1;
char buffer[1000];
int x;

web_set_max_html_param_len("99999");
web_reg_save_param("C_LoginToken","LB=logintoken\" value=\"","RB=\">",LAST);
web_reg_find("Search=Body",
"SaveCount=Launch",
"Text=Remember * settings",
LAST);

lr_start_transaction("00_Launch");

web_url("banking.megasol.se",
"URL=http://banking.megasol.se/",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=/style/buttons.css", ENDITEM,
LAST);

web_set_sockets_option("SSL_VERSION", "TLS1.1");

lr_end_transaction("00_Launch", LR_AUTO);

lr_think_time(25);
web_reg_find("Search=Body",
"SaveCount=Login",
"Text=Other / News",
LAST);

lr_start_transaction("01_login");

web_submit_data("login.mws",
"Action=http://banking.megasol.se/login.mws",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://banking.megasol.se/",
"Snapshot=t3.inf",
"Mode=HTML",
ITEMDATA,
"Name=action", "Value=login", ENDITEM,
"Name=logintoken", "Value={C_LoginToken}", ENDITEM,
"Name=df_username", "Value={P_Username}", ENDITEM,
"Name=IdleTime", "Value=900", ENDITEM,
"Name=df_password", "Value={P_Pwd}", ENDITEM,
"Name=Language", "Value=EN", ENDITEM,
EXTRARES,
"Url=/style/buttons.css?version=1", ENDITEM,
LAST);

lr_end_transaction("01_login",LR_AUTO);

lr_think_time(24);

web_reg_save_param("C_Deposite1","LB/ALNUMIC=<option
value=\"^^\">","RB=\r\n","ord=All",LAST);

web_reg_find("Search=Body",
"SaveCount=Deposit",
"Text=Accounts / Deposit",
LAST);

//<option value="W"
web_reg_save_param("C_Type","LB=option value=\"","RB=\"","ord=all",LAST);

lr_start_transaction("02_clickondepositnotification");

web_url("Deposit notification",
"URL=http://banking.megasol.se/AccountDeposit.mws",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://banking.megasol.se/login.mws",
"Snapshot=t4.inf",
"Mode=HTML",
LAST);

lr_end_transaction("02_clickondepositnotification",LR_AUTO);

lr_save_string(lr_paramarr_random("C_Deposite1"),"finalcountry");

lr_think_time(104);

lr_save_string(lr_eval_string(lr_eval_string("{C_Type_{TypeDeposit}}")),"CType");

web_reg_find("Text=received","savecount=Dep_success",
LAST);

web_reg_save_param("C_Transaction","LB=class=\"textgrey\">","RB=</td>","ord=2",LAST);

lr_start_transaction("03_depositinfo");

web_submit_data("AccountDeposit.mws",
"Action=http://banking.megasol.se/AccountDeposit.mws?action=save",
"Method=POST",
"EncType=multipart/form-data",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://banking.megasol.se/AccountDeposit.mws",
"Snapshot=t5.inf",
"Mode=HTML",
ITEMDATA,
"Name=df_senddate", "Value={P_DepositDate}", ENDITEM,
"Name=df_type", "Value={CType}", ENDITEM,
"Name=df_tocliackey", "Value=7B5C5E3A-9BFA-4B60-B1AD-6BE17E3217A8:BSD", ENDITEM,
"Name=df_amount", "Value={P_Amount}", ENDITEM,
"Name=df_curcode", "Value=BSD", ENDITEM,
"Name=file", "Value=OpTransaction.pdf", "File=yes", ENDITEM,
"Name=df_sendertype", "Value=P", ENDITEM,
"Name=df_sender", "Value={P_Sender_Name}", ENDITEM,
"Name=df_personidtype", "Value=B", ENDITEM,
"Name=df_senderid_address1", "Value=", ENDITEM,
"Name=df_senderid_address2", "Value=", ENDITEM,
"Name=df_senderid_address3", "Value=", ENDITEM,
"Name=df_senderid_address_country", "Value={finalcountry}", ENDITEM,
"Name=df_senderid_coregnum", "Value=", ENDITEM,
"Name=df_senderid_coregcountry", "Value={finalcountry}", ENDITEM,
"Name=df_senderid_dob", "Value={P_DOB}", ENDITEM,
"Name=df_senderid_birthplace", "Value={P_City}", ENDITEM,
"Name=df_bank", "Value={P_Bank}", ENDITEM,
"Name=df_bank_country", "Value=IN:INR", ENDITEM,
"Name=bank_curcode", "Value=INR", ENDITEM,
"Name=df_reference", "Value=", ENDITEM,
"Name=df_notes", "Value=jikjiirjio", ENDITEM,
LAST);

lr_end_transaction("03_depositinfo",LR_AUTO);

file=fopen("E:\\Transactions.txt","a+");
fprintf(file,"%s\n",lr_eval_string("{C_Transaction}"));
fclose(file);

lr_think_time(27);

lr_start_transaction("04_Logout");

web_url("Log out",
"URL=http://banking.megasol.se/Logout.mws",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://banking.megasol.se/AccountDeposit.mws?action=save",
"Snapshot=t6.inf",
"Mode=HTML",
LAST);

lr_end_transaction("04_Logout",LR_AUTO);

return 0;
}

Das könnte Ihnen auch gefallen