【文章內(nèi)容簡介】
ibutes, LAST)?! 。骸 aramNam:存放動態(tài)數(shù)據(jù)的參數(shù)名稱 List of Attributes:其它屬性,包含Notfound、LB、RB、RelFrameID、Search、ORD、SaveOffset、Convert、SaveLen。 ?何時(shí)選擇標(biāo)準(zhǔn)和擴(kuò)展日志?在腳本運(yùn)行調(diào)試成功后應(yīng)關(guān)閉日志。創(chuàng)建發(fā)送函數(shù)和消息日志時(shí)用標(biāo)準(zhǔn)日志,創(chuàng)建警告和其他信息是用擴(kuò)展日志。?在VuGen設(shè)置斷點(diǎn)breakpoints,然后使用單步跟蹤Run Step by Step,輸出調(diào)試日志 19你在LR中如何編寫自定義函數(shù)?請給出一些你在以前進(jìn)行的項(xiàng)目中編寫的函數(shù)。Give me few functions you wrote in your previous project? Before we create the User Defined functions we need to create the externallibrary (DLL) with the function. We add this library to VuGen bin directory. Once the library is added then we assign user defined function as a parameter. The function should have the following format: __declspec (dllexport) char* function name(char*, char*) lr_load_dll()。Examples of user defined functions are as follows:GetVersion, GetCurrentTime, GetPltform are some of the user defined functions used in my earlier project.?pacing: 每個虛擬用戶腳本包括三個部分:vuser_init, Run (Actions), vuser_end. 當(dāng)你運(yùn)行腳本的時(shí)候你能通知,虛擬用戶重復(fù)執(zhí)行run部分,每一個重復(fù)做為一個iteration. 注意: vuser_init 和vuser_end 部分是不被重復(fù)的。 Think Time Settings: 虛擬用戶think time仿效一個真實(shí)用戶在活動中等待的時(shí)間,例如:當(dāng)一個用戶從服務(wù)器接受數(shù)據(jù)的時(shí)候,在響應(yīng)前這個用戶需要等待數(shù)秒來接受數(shù)據(jù),這個被耽擱的時(shí)間就是think time。