Couple of posts are not working in the attached script

Forum for users of ANTS web server load testing tool

Moderator: Brian Donahue

Couple of posts are not working in the attached script

Postby Ragini Babtiha » Sun Feb 25, 2007 2:21 pm

Hi,

PFA Below script that is not working for us (especially the posts in the last section of the script).

Imports System
Imports RedGate.Ants.Engine

Public Class BrowserClient1
Inherits Control.VirtualClient

Protected Overrides Sub Run()
Try
' Script created with Internet Explorer on 2/23/2007 11:10:10 PM

'''' Login to the application

RandomSleep(10000, 20000)

WebClient.HttpRequest.ProtocolVersion = \"HTTP/1.1\"
BeginPage(\"http://localhost/pegasus/web/frmlogin.aspx\")
WebClient.HttpRequest.UserAgent = \"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 2.0.50727; .NET CLR 1.1.4322)\"
WebClient.Get(\"http://localhost/pegasus/web/frmlogin.aspx\")
WebClient.Get(\"http://localhost/Pegasus/Web/Styles/Global.css\")
WebClient.Get(\"http://localhost/Pegasus/Web/Scripts/HelpScripts/RoboHelp_CSH.js\")
WebClient.Get(\"http://localhost/Pegasus/Web/Scripts/CommonScript.js\")
WebClient.Get(\"http://localhost/Pegasus/Web/Scripts/ResourceToolBar.js\")
WebClient.Get(\"http://localhost/Pegasus/Web/Scripts/Base.js\")
WebClient.Get(\"http://localhost/pegasus/web/Styles/Login.css\")
WebClient.Get(\"http://localhost/pegasus/web/Scripts/Login.js\")
WebClient.Get(\"http://localhost/pegasus/web/images/PublisherLogoImage/4329189_2.jpg\")
WebClient.Get(\"http://localhost/pegasus/web/Images/icn_user_login.gif\")
WebClient.Get(\"http://localhost/pegasus/web/Images/btn_login.gif\")
WebClient.Get(\"http://localhost/pegasus/web/images/icn_user_new.gif\")
WebClient.Get(\"http://localhost/pegasus/web/images/pegasus_logo_small.gif\")
EndPage(\"http://localhost/pegasus/web/frmlogin.aspx\")
' End of page 1 contains 13 request(s).


'''' Login to the application
'Sleep(9687)
RandomSleep(10000, 20000)

BeginPage(\"http://localhost/pegasus/web/frmlogin.aspx\")
WebClient.HttpRequest.Pragma = \"no-cache\"
WebClient.Get(\"http://localhost/pegasus/web/frmlogin.aspx\")
WebClient.HttpRequest.ContentType = \"application/x-www-form-urlencoded\"
WebClient.HttpRequest.AddPostData(\"__VIEWSTATE\", WebClient.ViewState, False)
WebClient.HttpRequest.AddPostData(\"PegasusBreadCrumb\", \"\", False)
WebClient.HttpRequest.AddPostData(\"txtLoginName\", \"myinstructor\", False)
WebClient.HttpRequest.AddPostData(\"txtPassword\", \"myinstructor\", False)
WebClient.HttpRequest.AddPostData(\"__EVENTVALIDATION\", \"rRfGcgKQ8pAv4hY%2BQXnCm8SJg6GH5Rm%2FlKWrk441s8khsj9txBymvj4GywJVuilEMAl8UFwEU%2BE%3D\", False)
WebClient.HttpRequest.AddPostData(\"btnLogin.x\", \"0\", False)
WebClient.HttpRequest.AddPostData(\"btnLogin.y\", \"0\", False)
WebClient.Post(\"http://localhost/pegasus/web/frmlogin.aspx\")
WebClient.HttpRequest.ContentType = Nothing
WebClient.Get(\"http://localhost/Pegasus/Web/Modules/MyPegasus/MyPegasus.aspx\")
WebClient.HttpRequest.Pragma = Nothing
WebClient.Get(\"http://localhost/Pegasus/Web/Styles/global.css\")
WebClient.Get(\"http://localhost/Pegasus/Web/Styles/globalP2.css\")
WebClient.Get(\"http://localhost/Pegasus/Web/PegasusGridResources/Scripts/PegasusBaseGrid.js\")
WebClient.Get(\"http://localhost/Pegasus/Web/Modules/MyPegasus/Scripts/MyPegasus.js\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/PublisherLogoImage/4329189_2.jpg\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/head_nav_bground.jpg\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/left_curve1.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/right_curve1.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/icn_contextualDark.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/admin/icn_contextual.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/icn_leftArrow.gif\")
EndPage(\"http://localhost/pegasus/web/frmlogin.aspx\")

' End of page 2 contains 13 request(s).

'Sleep(5453)
RandomSleep(10000, 20000)

BeginPage(\"http://localhost/Pegasus/Web/Modules/Admin/Course/frmCourseController.aspx?CourseID=10000001058&RoleID=3&CourseType=1&CourseFormat=3\")
EndPage(\"http://localhost/Pegasus/Web/Modules/Admin/Course/frmCourseController.aspx?CourseID=10000001058&RoleID=3&CourseType=1&CourseFormat=3\")

' End of page 3 contains 0 request(s).

'Sleep(15)
RandomSleep(10000, 20000)

BeginPage(\"http://localhost/Pegasus/Web/Modules/MyPegasus/MyPegasus.aspx#\")
WebClient.Get(\"http://localhost/Pegasus/Web/Modules/Admin/Course/frmCourseController.aspx?CourseID=10000001058&RoleID=3&CourseType=1&CourseFormat=3\")
EndPage(\"http://localhost/Pegasus/Web/Modules/MyPegasus/MyPegasus.aspx#\")

' End of page 4 contains 1 request(s).


'''' Go to my workspace
WebClient.Get(\"http://localhost/Pegasus/Web/Modules/TodaysView/frmTodaysView.aspx\")
WebClient.Get(\"http://localhost/Pegasus/Web/Styles/GlobalSmall.css\")
WebClient.Get(\"http://localhost/Pegasus/Web/PegasusBasePage/ServeCourseBranding.PCTP?intCBBlobId=-1&mode=2\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/nav_home_off.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/head_nav_bground_on.jpg\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/TeachingPlan/icn_assessSmall.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/nav_search_off.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/nav_cs_off.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/nav_gb_off.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/Reports/nav_report.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/nav_comm_on.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/btn_stdview.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/left_curve.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/TodaysView/button_1.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/TodaysView/button_10.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/right_curve.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/nav_tp_off.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/nav_ql_off.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/Modules/TodaysView/frmChannels.aspx\")
WebClient.Get(\"http://localhost/Pegasus/Web/Modules/TodaysView/frmInstructorCalendar.aspx\")
WebClient.Get(\"http://localhost/Pegasus/Web/Scripts/Calendar.js\")
WebClient.Get(\"http://localhost/Pegasus/web/Styles/global.css\")
WebClient.Get(\"http://localhost/Pegasus/web/images/Calendar/left_curve2.gif\")
WebClient.Get(\"http://localhost/Pegasus/web/images/Calendar/icn_calenderprevious.gif\")
WebClient.Get(\"http://localhost/Pegasus/web/images/Calendar/icn_calendernext.gif\")
WebClient.Get(\"http://localhost/Pegasus/web/images/Calendar/icn_blueclock.gif\")
WebClient.Get(\"http://localhost/Pegasus/web/images/Calendar/icn_assigncontent.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/Calendar/icn_notes.gif\")
WebClient.Get(\"http://localhost/Pegasus/web/images/Calendar/icn_notes.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/Calendar/icn_blueclock.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/Calendar/icn_greenright.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/Calendar/icn_redclock.gif\")
WebClient.Get(\"http://localhost/Pegasus/web/images/Calendar/right_curve2.gif\")
'Sleep(6515)
RandomSleep(10000, 20000)
BeginPage(\"http://localhost/Pegasus/Web/Modules/QuestionLibrary/QuestionLibrary.aspx\")
WebClient.Get(\"http://localhost/Pegasus/Web/Modules/QuestionLibrary/QuestionLibrary.aspx\")
WebClient.Get(\"http://localhost/Pegasus/Web/Scripts/GeneralScripts.js\")
WebClient.Get(\"http://localhost/Pegasus/Web/PegasusBasePage/ServeCourseBranding.PCTP?intCBBlobId=-1&mode=2\")
WebClient.Get(\"http://localhost/Pegasus/web/images/submenu_bg.gif\")
WebClient.Get(\"http://localhost/Pegasus/web/images/submenu_bg_o.gif\")
EndPage(\"http://localhost/Pegasus/Web/Modules/QuestionLibrary/QuestionLibrary.aspx\")
' End of page 5 contains 38 request(s).




'''' Go to question library
WebClient.Get(\"http://localhost/Pegasus/Web/Modules/QuestionLibrary/frmQLGrid.aspx?mode=0&togglemode=1&gridpageindex=\")
WebClient.Get(\"http://localhost/Pegasus/Web/Scripts/Reports.js\")
WebClient.Get(\"http://localhost/Pegasus/Web/Modules/QuestionLibrary/Scripts/QuestionLibrary.js\")
WebClient.Get(\"http://localhost/Pegasus/Web/ajax/common.ashx\")
WebClient.Get(\"http://localhost/Pegasus/Web/ajax/Pegasus.Web.frmQLGrid,Pegasus.Web.ashx\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/TeachingPlan/icn_bigBack.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/TeachingPlan/nav_BC_open.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/TeachingPlan/icn_addContent.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/LearningObjectives/icn_mapLO.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/QuestionLibrary/newLeftCurve.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/TeachingPlan/icn_tpDelete_off.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/TeachingPlan/icn_tpBCopy_off.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/TeachingPlan/icn_tpBcut_off.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/TeachingPlan/icn_paste_off.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/QuestionLibrary/icn_reportsOff.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/PegasusGridResources/Scripts/DragDrop.js\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/TeachingPlan/icn_chapterSmall.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/TeachingPlan/icn_questionSmall.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/Admin/icn_contextual.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/TeachingPlan/icn_simquestion.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/TeachingPlan/icn_questionset.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/TeachingPlan/icn_drag.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/QuestionLibrary/icn_blueFolder.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/QuestionLibrary/icn_importDarkBG.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/Modules/QuestionLibrary/frmQuestionPreview.aspx\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/TeachingPlan/nav_closedfolder.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/TeachingPlan/nav_openedfolder.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images//TeachingPlan/icn_bigBack_off.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/Scripts/navigation.js\")
WebClient.Get(\"http://localhost/Pegasus/Web/Scripts/Record.js\")
WebClient.Get(\"http://localhost/Pegasus/Web/ajax/Pegasus.Web.AudioControl,Pegasus.Web.ashx\")
'Sleep(9109)
RandomSleep(10000, 20000)
BeginPage(\"http://localhost/Pegasus/Web/Modules/QuestionSet/frmQuestionSet.aspx?cid=10001471298&togglemode=1\")
WebClient.Get(\"http://localhost/Pegasus/Web/Modules/QuestionSet/frmQuestionSet.aspx?cid=10001471298&togglemode=1\")
WebClient.Get(\"http://localhost/Pegasus/Web/Modules/QuestionSet/QuestionSet.js\")
WebClient.Get(\"http://localhost/Pegasus/Web/PegasusBasePage/ServeCourseBranding.PCTP?intCBBlobId=-1&mode=2\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/btn_cancel.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/AssessmentTool/tabBig_on.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/QuestionLibrary/btn_saveContinue.gif\")
EndPage(\"http://localhost/Pegasus/Web/Modules/QuestionSet/frmQuestionSet.aspx?cid=10001471298&togglemode=1\")
' End of page 6 contains 37 request(s).


'''' Enter the question set name
'Sleep(13031)
RandomSleep(10000, 20000)

BeginPage(\"http://localhost/Pegasus/Web/Modules/QuestionSet/frmQuestionSet.aspx?cid=10001471298&togglemode=1\")
WebClient.HttpRequest.Pragma = \"no-cache\"
WebClient.Get(\"http://localhost/Pegasus/Web/Modules/QuestionSet/frmQuestionSet.aspx?cid=10001471298&togglemode=1\")
WebClient.HttpRequest.ContentType = \"application/x-www-form-urlencoded\"
WebClient.HttpRequest.AddPostData(\"__EVENTTARGET\", \"\", False)
WebClient.HttpRequest.AddPostData(\"__EVENTARGUMENT\", \"\", False)
WebClient.HttpRequest.AddPostData(\"__VIEWSTATE\", WebClient.ViewState, False)
WebClient.HttpRequest.AddPostData(\"hdnCancelURL\", \"..%2F..%2FModules%2FQuestionLibrary%2FQuestionLibrary.aspx%3Fcid%3D10001471298%26mode%3D0%26rightLoID%3D%26fromLo%3D%26intLinkID%3D\", False)
WebClient.HttpRequest.AddPostData(\"hdnQuestionSetId\", \"\", False)
WebClient.HttpRequest.AddPostData(\"hdnQuestionSetName\", \"w\", False)
WebClient.HttpRequest.AddPostData(\"hdnShowpreviewStatus\", \"\", False)
WebClient.HttpRequest.AddPostData(\"hdnScenarioTypeID\", \"\", False)
WebClient.HttpRequest.AddPostData(\"hdnRepositoryAssetID\", \"\", False)
WebClient.HttpRequest.AddPostData(\"hdnApplicationTypeID\", \"\", False)
WebClient.HttpRequest.AddPostData(\"hdnRepDataProviderURL\", \"http%3A%2F%2F192.168.1.230%2Frepository%2Fweb%2Fservecontent.pctp%3FintAssetID%3D\", False)
WebClient.HttpRequest.AddPostData(\"hdnIsQSInAssmt\", \"\", False)
WebClient.HttpRequest.AddPostData(\"hdnURL\", \"%26TokenID%3Da8c3e281-8ed2-4109-bacd-f626033dd2ec%26SessionID%3Dn3y3vh2x0yapf5ymipef3wnq\", False)
WebClient.HttpRequest.AddPostData(\"hdnIsTopQnDeleted\", \"\", False)
WebClient.HttpRequest.AddPostData(\"hdnDragDropStatus\", \"\", False)
WebClient.HttpRequest.AddPostData(\"PegasusBreadCrumb\", \"\", False)
WebClient.HttpRequest.AddPostData(\"txtQuestionSetName\", \"ANTS+Load+EnableClientSideValidation\", False)
WebClient.HttpRequest.AddPostData(\"txtQuestionSetDescription\", \"ANTS+Load+EnableClientSideValidation\", False)
WebClient.HttpRequest.AddPostData(\"btnTabNext.x\", \"50\", False)
WebClient.HttpRequest.AddPostData(\"btnTabNext.y\", \"17\", False)
WebClient.Post(\"http://localhost/Pegasus/Web/Modules/QuestionSet/frmQuestionSet.aspx?cid=10001471298&togglemode=1\")
WebClient.HttpRequest.Pragma = Nothing
WebClient.HttpRequest.ContentType = Nothing
WebClient.Get(\"http://localhost/Pegasus/Web/PegasusBasePage/ServeCourseBranding.PCTP?intCBBlobId=-1&mode=2\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/AssessmentTool/arrow.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/Modules/QuestionLibrary/frmQuestionPreview.aspx?qid\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/AssessmentTool/tabBig_off.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/QuestionLibrary/btn_saveReturn.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/QuestionLibrary/btn_previous.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/QuestionLibrary/tab_on.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/QuestionLibrary/tab_off.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/ajax/Pegasus.Web.AudioControl,Pegasus.Web.ashx\")
EndPage(\"http://localhost/Pegasus/Web/Modules/QuestionSet/frmQuestionSet.aspx?cid=10001471298&togglemode=1\")
' End of page 7 contains 10 request(s).

WebClient.Get(\"http://localhost/Pegasus/Web/Modules/QuestionSet/frmQuestionSetGrid.aspx?IsInAssmt=\")
WebClient.Get(\"http://localhost/Pegasus/Web/ajax/Pegasus.Web.frmQuestionSetGrid,Pegasus.Web.ashx\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/icn_addAns.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/icn_delete2_off.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/icn_rightArrow.gif\")
'Sleep(5156)
RandomSleep(10000, 20000)
BeginPage(\"http://localhost/Pegasus/Web/Modules/TeachingPlan/frmContentBrowser.aspx?from=top&mode=1&Filter=64&FromType=7&SubTypeFilter=134217728\")
EndPage(\"http://localhost/Pegasus/Web/Modules/TeachingPlan/frmContentBrowser.aspx?from=top&mode=1&Filter=64&FromType=7&SubTypeFilter=134217728\")
' End of page 8 contains 5 request(s).

'''' Browse for questions

WebClient.Get(\"http://localhost/Pegasus/Web/Modules/TeachingPlan/frmContentBrowser.aspx?from=top&mode=1&Filter=64&FromType=7&SubTypeFilter=134217728\")
WebClient.Get(\"http://localhost/Pegasus/Web/Styles/Global.css\")
WebClient.Get(\"http://localhost/Pegasus/Web/Scripts/CommonScript.js\")
WebClient.Get(\"http://localhost/Pegasus/Web/Scripts/ResourceToolBar.js\")
WebClient.Get(\"http://localhost/Pegasus/Web/Scripts/Base.js\")
WebClient.Get(\"http://localhost/Pegasus/Web/ajax/Pegasus.Web.frmContentBrowser,Pegasus.Web.ashx\")
WebClient.Get(\"http://localhost/Pegasus/web/images/submenu_bg.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/left_curve.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/teachingplan/icn_tpleftArrow.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/right_curve.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/TeachingPlan/btn_add.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/TeachingPlan/btn_AddClose.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/CourseMail/btn_cancel.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/Modules/TeachingPlan/frmContentBrowser_Main.aspx?Filter=64&OriginalFilter=64&mode=1&FromType=7&SubTypeFilter=134217728&OriginalSubTypeFilter=134217728&lo=&FolderAssetTypeEnum=\")
WebClient.Get(\"http://localhost/Pegasus/Web/PegasusGridResources/Scripts/PegasusBaseGrid.js\")
WebClient.Get(\"http://localhost/Pegasus/Web/Scripts/TeachingPlan/frmContentBrowser_Main.js\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/icn_phworkspace.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/TeachingPlan/nav_BC_open.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/left_curve1.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/icn_leftArrow.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/TeachingPlan/icn_chapterSmall1.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/right_curve1.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/QuestionSet/icn_simquestion.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/icn_contextualDark.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/TeachingPlan/nav_closedfoldergreen.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/TeachingPlan/nav_openedfoldergreen.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/icn_phworkspace_off.gif\")
WebClient.HttpRequest.Pragma = \"no-cache\"
WebClient.Get(\"http://localhost/Pegasus/Web/Modules/QuestionSet/frmQuestionSetGrid.aspx?IsInAssmt=\")
WebClient.HttpRequest.ContentType = \"application/x-www-form-urlencoded\"
WebClient.HttpRequest.AddPostData(\"__EVENTTARGET\", \"\", False)
WebClient.HttpRequest.AddPostData(\"__EVENTARGUMENT\", \"\", False)
WebClient.HttpRequest.AddPostData(\"__VIEWSTATE\", WebClient.ViewState, True)
WebClient.HttpRequest.AddPostData(\"hdnValue\", \"10001491450%2C10001491451\", False)
WebClient.HttpRequest.AddPostData(\"hdnInAssessment\", \"\", False)
WebClient.HttpRequest.AddPostData(\"hdnIsHidePreview\", \"\", False)
WebClient.HttpRequest.AddPostData(\"hdnIsTopQnDeleted\", \"\", False)
WebClient.HttpRequest.AddPostData(\"QuestionSetGrid%24hdnSortExpression\", \"\", False)
WebClient.HttpRequest.AddPostData(\"QuestionSetGrid%24hdnValues\", \"\", False)
WebClient.HttpRequest.AddPostData(\"QuestionSetGrid%24hdnAction\", \"0\", False)
WebClient.HttpRequest.AddPostData(\"QuestionSetGrid%24hdnSelectedElements\", \"\", False)
WebClient.HttpRequest.AddPostData(\"QuestionSetGrid%24hdnViewState\", \"%2FwEPMowDAAEAAAD%2F%2F%2F%2F%2FAQAAAAAAAAAMAgAAAFtQZWdhc3VzLlBlZ2FzdXNDdXN0b21Db250cm9scywgVmVyc2lvbj0xLjAuMjYxMC4yMjUzNywgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj1udWxsBQEAAAAsUGVnYXN1cy5QZWdhc3VzQ3VzdG9tQ29udHJvbHMuUGVnYXN1c1NvcnRpbmcEAAAADV9DdXJyZW50SW5kZXgPX0FzY2VuZGluZ0ltYWdlD19EZXNjZWRpbmdJbWFnZRBfU29ydEV4cHJlc3Npb25zAAEBAwgcU3lzdGVtLkNvbGxlY3Rpb25zLkFycmF5TGlzdAIAAAAAAAAACgoJAwAAAAQDAAAAHFN5c3RlbS5Db2xsZWN0aW9ucy5BcnJheUxpc3QDAAAABl9pdGVtcwVfc2l6ZQhfdmVyc2lvbgUAAAgICQQAAAAFAAAABgAAABAEAAAACAAAAAYFAAAAAAkFAAAACQUAAAAJBQAAAAkFAAAADQMLMv0EAAEAAAD%2F%2F%2F%2F%2FAQAAAAAAAAAMAgAAAFtQZWdhc3VzLlBlZ2FzdXNDdXN0b21Db250cm9scywgVmVyc2lvbj0xLjAuMjYxMC4yMjUzNywgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj1udWxsBQEAAAArUGVnYXN1cy5QZWdhc3VzQ3VzdG9tQ29udHJvbHMuUGVnYXN1c1BhZ2luZwsAAAAJX1BhZ2VTaXplEV9DdXJyZW50UGFnZUluZGV4Dl9MYXN0UGFnZUluZGV4DV9Ub3RhbFJlY29yZHMOX0ZpcnN0TmF2aWdhdGUOX05leHROYXZpZ2F0b3ISX1ByZXZpb3VzTmF2aWdhdG9yDl9MYXN0TmF2aWdhdG9yCl9NaWRkbGVNc2cNX1JpZ2h0QXNzZXRJZAxfUm93c1BlclBhZ2UAAAAABAQEBAEAAAgICQk5UGVnYXN1cy5QZWdhc3VzQ3VzdG9tQ29udHJvbHMuUGVnYXN1c1BhZ2luZytOYXZpZ2F0b3JJbmZvAgAAADlQZWdhc3VzLlBlZ2FzdXNDdXN0b21Db250cm9scy5QZWdhc3VzUGFnaW5nK05hdmlnYXRvckluZm8CAAAAOVBlZ2FzdXMuUGVnYXN1c0N1c3RvbUNvbnRyb2xzLlBlZ2FzdXNQYWdpbmcrTmF2aWdhdG9ySW5mbwIAAAA5UGVnYXN1cy5QZWdhc3VzQ3VzdG9tQ29udHJvbHMuUGVnYXN1c1BhZ2luZytOYXZpZ2F0b3JJbmZvAgAAAAkIAgAAADIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAoKCgoKAAAAAAAAAAAAAAAACw%3D%3D\", False)
WebClient.Post(\"http://localhost/Pegasus/Web/Modules/QuestionSet/frmQuestionSetGrid.aspx?IsInAssmt=\")
WebClient.HttpRequest.Pragma = Nothing
WebClient.HttpRequest.ContentType = Nothing
WebClient.Get(\"http://localhost/Pegasus/Web/Modules/QuestionSet/QuestionSet.js\")
WebClient.Get(\"http://localhost/Pegasus/Web/ajax/Pegasus.Web.frmQuestionSetGrid,Pegasus.Web.ashx\")
WebClient.Get(\"http://localhost/Pegasus/Web/PegasusGridResources/Scripts/DragDrop.js\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/icn_addAns.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/icn_delete2_off.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/icn_rightArrow.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/Admin/icn_contextual.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/TeachingPlan/icn_drag.gif\")
'Sleep(3375)


'''' Save the selected question
RandomSleep(10000, 20000)

BeginPage(\"http://localhost/Pegasus/Web/Modules/QuestionSet/frmQuestionSet.aspx?cid=10001471298&togglemode=1\")
WebClient.HttpRequest.Pragma = \"no-cache\"
WebClient.Get(\"http://localhost/Pegasus/Web/Modules/QuestionSet/frmQuestionSet.aspx?cid=10001471298&togglemode=1\")
WebClient.HttpRequest.ContentType = \"application/x-www-form-urlencoded\"
WebClient.HttpRequest.AddPostData(\"__EVENTTARGET\", \"\", False)
WebClient.HttpRequest.AddPostData(\"__EVENTARGUMENT\", \"\", False)
WebClient.HttpRequest.AddPostData(\"__VIEWSTATE\", WebClient.ViewState, True)
WebClient.HttpRequest.AddPostData(\"hdnCancelURL\", \"..%2F..%2FModules%2FQuestionLibrary%2FQuestionLibrary.aspx%3Fcid%3D10001471298%26mode%3D0%26rightLoID%3D%26fromLo%3D%26intLinkID%3D\", False)
WebClient.HttpRequest.AddPostData(\"hdnQuestionSetId\", \"\", False)
WebClient.HttpRequest.AddPostData(\"hdnQuestionSetName\", \"w\", False)
WebClient.HttpRequest.AddPostData(\"hdnShowpreviewStatus\", \"0\", False)
WebClient.HttpRequest.AddPostData(\"hdnScenarioTypeID\", \"\", False)
WebClient.HttpRequest.AddPostData(\"hdnRepositoryAssetID\", \"\", False)
WebClient.HttpRequest.AddPostData(\"hdnApplicationTypeID\", \"\", False)
WebClient.HttpRequest.AddPostData(\"hdnRepDataProviderURL\", \"http%3A%2F%2F192.168.1.230%2Frepository%2Fweb%2Fservecontent.pctp%3FintAssetID%3D\", False)
WebClient.HttpRequest.AddPostData(\"hdnIsQSInAssmt\", \"\", False)
WebClient.HttpRequest.AddPostData(\"hdnURL\", \"%26TokenID%3Da8c3e281-8ed2-4109-bacd-f626033dd2ec%26SessionID%3Dn3y3vh2x0yapf5ymipef3wnq\", False)
WebClient.HttpRequest.AddPostData(\"hdnIsTopQnDeleted\", \"\", False)
WebClient.HttpRequest.AddPostData(\"hdnDragDropStatus\", \"\", False)
WebClient.HttpRequest.AddPostData(\"PegasusBreadCrumb\", \"\", False)
WebClient.HttpRequest.AddPostData(\"btnTabQuestionsSave.x\", \"40\", False)
WebClient.HttpRequest.AddPostData(\"btnTabQuestionsSave.y\", \"15\", False)
WebClient.Post(\"http://localhost/Pegasus/Web/Modules/QuestionSet/frmQuestionSet.aspx?cid=10001471298&togglemode=1\")
WebClient.HttpRequest.ContentType = Nothing
WebClient.Get(\"http://localhost/Pegasus/Web/Modules/QuestionLibrary/QuestionLibrary.aspx?cid=10001471298&Status=5&mode=0&rightLoID=&fromLo=&intLinkID=\")
WebClient.HttpRequest.Pragma = Nothing
WebClient.Get(\"http://localhost/Pegasus/Web/Styles/GlobalSmall.css\")
WebClient.Get(\"http://localhost/Pegasus/Web/Scripts/HelpScripts/RoboHelp_CSH.js\")
WebClient.Get(\"http://localhost/Pegasus/Web/Scripts/GeneralScripts.js\")
WebClient.Get(\"http://localhost/Pegasus/Web/PegasusBasePage/ServeCourseBranding.PCTP?intCBBlobId=-1&mode=2\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/head_nav_bground.jpg\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/nav_home_off.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/nav_comm_on.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/nav_search_off.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/btn_stdview.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/nav_ql_off.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/head_nav_bground_on.jpg\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/nav_gb_off.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/Reports/nav_report.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/nav_cs_off.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/TeachingPlan/icn_assessSmall.gif\")
WebClient.Get(\"http://localhost/Pegasus/web/images/submenu_bg_o.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/nav_tp_off.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/Modules/QuestionLibrary/frmQLGrid.aspx?cid=10001471298&status=5&SelectedQuestions=&mode=0&ClipBoardState=&togglemode=1&gridpageindex=\")
WebClient.Get(\"http://localhost/Pegasus/Web/Scripts/Reports.js\")
WebClient.Get(\"http://localhost/Pegasus/Web/Modules/QuestionLibrary/Scripts/QuestionLibrary.js\")
WebClient.Get(\"http://localhost/Pegasus/Web/ajax/Pegasus.Web.frmQLGrid,Pegasus.Web.ashx\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/TeachingPlan/icn_bigBack.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/TeachingPlan/icn_addContent.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/TeachingPlan/icn_tpBcut_off.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/LearningObjectives/icn_mapLO.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/TeachingPlan/icn_tpBCopy_off.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/TeachingPlan/icn_tpDelete_off.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/TeachingPlan/icn_paste_off.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/QuestionLibrary/newLeftCurve.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/QuestionLibrary/icn_reportsOff.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/TeachingPlan/icn_chapterSmall.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/TeachingPlan/icn_questionSmall.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/TeachingPlan/icn_simquestion.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/TeachingPlan/icn_questionset.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/QuestionLibrary/icn_blueFolder.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/QuestionLibrary/icn_importDarkBG.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/Modules/QuestionLibrary/frmQuestionPreview.aspx\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/icn_success.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/TeachingPlan/nav_closedfolder.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images/TeachingPlan/nav_openedfolder.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/images//TeachingPlan/icn_bigBack_off.gif\")
WebClient.Get(\"http://localhost/Pegasus/Web/Scripts/navigation.js\")
WebClient.Get(\"http://localhost/Pegasus/Web/Styles/global.css\")
WebClient.Get(\"http://localhost/Pegasus/Web/Styles/globalP2.css\")
WebClient.Get(\"http://localhost/Pegasus/Web/Scripts/Record.js\")
WebClient.Get(\"http://localhost/Pegasus/Web/ajax/Pegasus.Web.AudioControl,Pegasus.Web.ashx\")
EndPage(\"http://localhost/Pegasus/Web/Modules/QuestionSet/frmQuestionSet.aspx?cid=10001471298&togglemode=1\")
' End of page 9 contains 84 request(s).


' End of script contains 9 page(s).

Catch ex As Exception
Me.ReportError(\"Custom Error \" + ex.Message)
End Try

End Sub
End Class

Actions of the scripts are

1. Users Logs in
2. User navigates to couple of pages, to pick some questions from the question library
3. Users selects a question
4. Users posts (Save) the selected questions

(See comments in the scripts)

We suspect the last two posts are not working. We tried all possible methods (like pulling view state manually etc) but in vain

Recently we migrated our application from .Net 1.1 to .Net 2.0. Strange is that the same script was working very fine when our application was using .Net 1.1

After migration we are facing this problem. Do we have to do any changes in the script to meet any requirements of .Net 2.0 (especially new features like client side validation!)

Once in a while we also get the following error: “Validation of viewstate MAC failed”

Please note, attached script was newly recorded after migrating our application to .Net 2.0

We are closing in on the release of our product and it is important that we stress test this module (recorded script) before the release. Therefore, can anyone guide us to the solution or let us know the possible workarounds

Best regards,
Ragini Babitha
Ragini Babtiha
 
Posts: 1
Joined: Sun Feb 25, 2007 1:11 pm

Postby Brian Donahue » Sun Feb 25, 2007 7:22 pm

Hi,

Again, I'd have to recommend using the ANTS Script Tester first of all, to find where the breakdown is occurring. Given the looks of the URLs, you're using some sort of session ID in the requests that is dynamically genrated, preventing a recorded script from working out-of-the-box. You'd need to capture this session ID and append it to your URLs by manually editing the script.

You can get the script tester from http://labs.red-gate.com.
Brian Donahue
 
Posts: 6670
Joined: Mon Aug 23, 2004 10:48 am


Return to ANTS Load

Who is online

Users browsing this forum: No registered users and 0 guests