Sie sind auf Seite 1von 6

Action() { /*web_add_cookie("DisplayLocale=en_US; DOMAIN=centra-qa.homedepot.com"); web_add_cookie("s_vi=[CS]v1 27046376851D2F51-60000109A056D775[CE]; DOMAI N=centra-qa.homedepot.

com");*/ int rand1,rand2,rand3,rand4,rand5,; char *buffer1,*buffer2,*buffer3,*buffer4,*buffer5; buffer1 buffer2 buffer3 buffer4 buffer5 = = = = = (char (char (char (char (char *)malloc(1024); *)malloc(1024); *)malloc(1024); *)malloc(1024); *)malloc(1024);

web_set_max_html_param_len("1024"); web_url("centra-qa.homedepot.com", "URL=http://centra-qa.homedepot.com/", "Resource=0", "RecContentType=text/html", "Referer=", "Snapshot=t1.inf", "Mode=HTML", LAST); web_reg_save_param("control1", "LB=centra-qa.homedepot.com/control/?action=", "RB=&sessionid=", LAST); web_reg_save_param("sessionid", "LB=&sessionid=", "RB=&sitename", LAST); web_submit_form("index.jhtml", "Snapshot=t2.inf", ITEMDATA, "Name=login_username", "Value=rxt8769", ENDITEM, "Name=login_password", "Value=welcome", ENDITEM, LAST); /* Registering parameter(s) from source task id 45 // {PeopleSoftsessionID3} = "1309467119895286087&sitename=main&next=/Sit eRoots/main/Registrar/EventEnrollment.jsp" // */ // // // // // // // web_reg_save_param("PeopleSoftsessionID3", "LB/IC=sessionid=", "RB/IC=\"", "Ord=56", "Search=body", "RelFrameId=1", LAST); web_reg_save_param("PeopleSoftsessionID3",

"LB/IC=?action=", "RB/IC=\"", "Ord=56", "Search=body", "RelFrameId=1", LAST); // // // // // // // // // web_reg_save_param("action2", "LB=?action=", "RB=&sessionid", "Ord=56", "Search=body", "RelFrameId=1", LAST);

web_link("Manage Events", "Text=Manage Events", "Snapshot=t3.inf", EXTRARES, "Url=../Static/Calendar/PopUp/normalPop.js", "Referer=http://cen tra-qa.homedepot.com/SiteRoots/main/Static/Calendar/PopUp/ipopeng.htm", ENDITEM, "Url=../Static/Calendar/Panel/normal.js", "Referer=http://centra -qa.homedepot.com/SiteRoots/main/Static/Calendar/Panel/iflateng.htm", ENDITEM, "Url=../Static/Calendar/PopUp/normalPop.css", "Referer=http://ce ntra-qa.homedepot.com/SiteRoots/main/Static/Calendar/PopUp/ipopeng.htm", ENDITEM , "Url=../Static/Calendar/PopUp/plugins.js", "Referer=http://centr a-qa.homedepot.com/SiteRoots/main/Static/Calendar/PopUp/ipopeng.htm", ENDITEM, "Url=../Static/Calendar/Panel/normal.css", "Referer=http://centr a-qa.homedepot.com/SiteRoots/main/Static/Calendar/Panel/iflateng.htm", ENDITEM, "Url=../Static/en/US/Calendar/resources.js", "Referer=http://cen tra-qa.homedepot.com/SiteRoots/main/Static/Calendar/PopUp/ipopeng.htm", ENDITEM, "Url=../Static/Calendar/Panel/plugins.js", "Referer=http://centr a-qa.homedepot.com/SiteRoots/main/Static/Calendar/Panel/iflateng.htm", ENDITEM, LAST);

web_url("licence", "URL=http://centra-qa.homedepot.com/SiteRoots/main/Static/Calend ar/Panel/licence", "Resource=0", "RecContentType=text/html", "Referer=http://centra-qa.homedepot.com/SiteRoots/main/Static/Ca lendar/Panel/iflateng.htm", "Snapshot=t4.inf", "Mode=HTML", LAST); /* Registering parameter(s) from source task id 61 // {PeopleSoftsessionID2} = "1309467119895286087" // */ web_reg_save_param("PeopleSoftsessionID2", "LB/IC=sessionid=",

"RB/IC=\"", "Ord=2", "Search=body", "RelFrameId=1", LAST); web_reg_save_param("methodref2", "LB=\"method_reference\" value=\"", "RB=\">", LAST); web_url("control", "URL=http://centra-qa.homedepot.com/control/?action={control1}&s essionid={sessionid}&sitename=main&next=/SiteRoots/main/Registrar/AddSection.jht ml", "Resource=0", "RecContentType=text/html", "Referer=", "Snapshot=t5.inf", "Mode=HTML", LAST); web_reg_save_param("action2", "LB=?action=", "RB=&sessionid", LAST); web_submit_data("AddSection.jhtml", "Action=http://centra-qa.homedepot.com/SiteRoots/main/Registrar/ AddSection.jhtml?sessionid={PeopleSoftsessionID2}", "Method=POST", "RecContentType=text/html", "Referer=http://centra-qa.homedepot.com/SiteRoots/main/Registrar /AddSection.jhtml?sessionid={PeopleSoftsessionID2}", "Snapshot=t6.inf", "Mode=HTML", ITEMDATA, "Name=method_reference", "Value={methodref2}", ENDITEM, "Name=owner_id", "Value=", ENDITEM, "Name=nextPage", "Value=AddAndEdit", ENDITEM, /*"Name=name_param", "Value=LoadTest123New{random_event}", ENDITEM, "Name=month", "Value={month}", ENDITEM, "Name=day", "Value={day}", ENDITEM, "Name=year", "Value={year}", ENDITEM, "Name=dateSearch", "Value={date}", ENDITEM, "Name=start_hour", "Value={hour}", ENDITEM, "Name=start_minute", "Value={minutes}", ENDITEM, "Name=am_pm", "Value=1", ENDITEM, "Name=time_zone", "Value=US/Eastern", ENDITEM, "Name=availability", "Value=1", ENDITEM, "Name=hours", "Value={avail_hours}", ENDITEM, "Name=minutes", "Value={avail_minutes}", ENDITEM,*/ "Name=name_param", "Value=LoadTest123New{random_event}", ENDITEM, "Name=month", "Value=7", ENDITEM, "Name=day", "Value=02", ENDITEM, "Name=year", "Value=2011", ENDITEM, "Name=dateSearch", "Value=08/02/11", ENDITEM, "Name=start_hour", "Value=5", ENDITEM,

"Name=start_minute", "Value=00", ENDITEM, "Name=am_pm", "Value=1", ENDITEM, "Name=time_zone", "Value=US/Eastern", ENDITEM, "Name=availability", "Value=1", ENDITEM, "Name=hours", "Value=1", ENDITEM, "Name=minutes", "Value=0", ENDITEM, "Name=event_contact", "Value={contact_id}", ENDITEM, "Name=cost_center_guid", "Value=", ENDITEM, "Name=description", "Value=", ENDITEM, "Name=maxUsers", "Value=200", ENDITEM, "Name=burstLicId", "Value=0", ENDITEM, "Name=server_id", "Value=AUTOSELECT_SERVER", ENDITEM, "Name=event_type", "Value=0", ENDITEM, "Name=server_recordable", "Value=on", ENDITEM, "Name=record_video_byAdmin", "Value=false", ENDITEM, "Name=participant_display", "Value=on", ENDITEM, "Name=welcome_leader_url", "Value=", ENDITEM, "Name=welcome_url", "Value=", ENDITEM, "Name=logout_url", "Value=", ENDITEM, "Name=AddAndEdit", "Value=Create & Edit Enrollment", ENDITEM, "Name=course_id", "Value=", ENDITEM, "Name=selectedCourseOffset", "Value=0", ENDITEM, "Name=protocol", "Value=true", ENDITEM, "Name=early_attend_window", "Value=15", ENDITEM, "Name=password", "Value=", ENDITEM, "Name=password_again", "Value=", ENDITEM, "Name=download_playback", "Value=on", ENDITEM, "Name=registered_only", "Value=on", ENDITEM, "Name=uninvited_attend", "Value=on", ENDITEM, "Name=ipmenab", "Value=false", ENDITEM, "Name=ipmauto", "Value=false", ENDITEM, "Name=ipmaddress", "Value=", ENDITEM, "Name=num_addl_ipmaddr", "Value=0", ENDITEM, "Name=notification_email", "Value=Ravikumar_Tammineni@homedepot. com", ENDITEM, "Name=notification_enroll_exceeds", "Value=on", ENDITEM, "Name=notification_exceeds_value", "Value=20", ENDITEM, "Name=event_audio_type", "Value=1", ENDITEM, "Name=audio_codec", "Value=ILBC", ENDITEM, "Name=fulldplx_audio", "Value=2", ENDITEM, "Name=next_page", "Value=AddAndEdit", ENDITEM, LAST); web_reg_save_param("participants", "LB=name=\"checkboxes\" value=\"", "RB=\" onmouseover=", "Ord=all", LAST); /*web_reg_save_param("participants2", "LB=name=\"checkboxes\" value=\"", "RB=\" onmouseover=", "Ord=2", LAST); web_reg_save_param("participants3", "LB=name=\"checkboxes\" value=\"", "RB=\" onmouseover=", "Ord=3", LAST);

web_reg_save_param("participants4", "LB=name=\"checkboxes\" value=\"", "RB=\" onmouseover=", "Ord=4", LAST); web_reg_save_param("participants5", "LB=name=\"checkboxes\" value=\"", "RB=\" onmouseover=", "Ord=5", LAST);*/

web_submit_data("EditEnrollment.jhtml", "Action=http://centra-qa.homedepot.com/SiteRoots/main/Registrar/ EditEnrollment.jhtml?sessionid={PeopleSoftsessionID2}", "Method=POST", "RecContentType=text/html", "Referer=http://centra-qa.homedepot.com/SiteRoots/main/Registrar /EditEnrollment.jhtml?dmy=1309467142972&sessionid={PeopleSoftsessionID2}", "Snapshot=t7.inf", "Mode=HTML", ITEMDATA, // "Name=method_reference", "Value={methodref3}", ENDITEM, "Name=index_list_style", "Value=both", ENDITEM, "Name=index_size", "Value=100", ENDITEM, LAST); rand1=rand()%atoi(lr_eval_string("{participants_count}"))+1; do { rand2=rand()%atoi(lr_eval_string("{participants_count}"))+1; rand3=rand()%atoi(lr_eval_string("{participants_count}"))+1; rand4=rand()%atoi(lr_eval_string("{participants_count}"))+1; rand5=rand()%atoi(lr_eval_string("{participants_count}"))+1; } while(rand1==rand2&&rand2==rand3&&rand3==rand4&&rand4==rand5&&rand3==ran d5&&rand2==rand5&&rand1==rand5&&rand1==rand3&&rand1==rand4&&rand2==rand4); lr_output_message("value of rand1 is :%d\nvalue of rand2 is :%d\nvalue o f rand3 is :%d\nvalue of rand4 is :%d\nvalue of rand5 is :%d\n",rand1,rand2,rand 3,rand4,rand5); sprintf(buffer1,"{participants_%d}",rand1); lr_output_message("the valu substitute is %d",rand1); lr_save_string(lr_eval_string(buffer1),"participate1"); sprintf(buffer2,"{participants_%d}",rand2); lr_save_string(lr_eval_string(buffer2),"participate2");

sprintf(buffer3,"{participants_%d}",rand3); lr_save_string(lr_eval_string(buffer3),"participate3"); sprintf(buffer4,"{participants_%d}",rand4); lr_save_string(lr_eval_string(buffer4),"participate4"); sprintf(buffer5,"{participants_%d}",rand5); lr_save_string(lr_eval_string(buffer5),"participate5");

web_submit_form("EditEnrollment.jhtml_2", "Snapshot=t8.inf", ITEMDATA, "Name=checkboxes", "Value={participate1}", ENDITEM, "Name=checkboxes", "Value={participate2}", ENDITEM, "Name=checkboxes", "Value={participate3}", ENDITEM, "Name=checkboxes", "Value={participate4}", ENDITEM, "Name=checkboxes", "Value={participate5}", ENDITEM, // "Name=checkboxes", "Value={participants6}", ENDITEM, LAST); web_url("control_2", "URL=http://centra-qa.homedepot.com/control/?action={PeopleSofts essionID3}", "Resource=0", "RecContentType=text/html", "Referer=", "Snapshot=t9.inf", "Mode=HTML", LAST); web_link("Log Out", "Text=Log Out", "Snapshot=t10.inf", LAST); free(buffer1); free(buffer2); free(buffer3); free(buffer4); free(buffer5); return 0; }

Das könnte Ihnen auch gefallen