LoadRunner??????
???????????? ???????[ 2015/4/9 14:35:56 ] ????????LoadRunner ??????? ??????
????????????????????
?????????в?????????????????????????????
???????磬??????????Web??ó???????????????????????????????????????????????“???????”??????????????????????????????????????????????????????????“???????”????????????????“???????”????????????????????????????????????????????????????ò????????????????????????????????????????????????????????????????????????????????????????????????
?????ò??????????????????????????????????????????????ò???????????????????????磬??????????????????????飬????????д????????Ρ??????????У????????ò?????????????????????????????????
???????????????????????????????????ò??????????????????ò???????????????????
????????????????????????????е???????????ò???????????????????????????????????е?????????????????
?????????????????
??????????????????????????????????????????в????????????????Web????????????У????????????1???????????????????д????????????????????????????????????д?????????
????????????????????д????????????
????1???????λ????????????????????????????????????
????2???????????У????“Replace with a Parameter”?????????????????????????
????3????“Parameter name”????????????????????????????????б????????????????
????4????“Parameter type”?????б?????????????
????1????Date/Time Date/Time??????????/????滻?????????????Date/Time??????????????б????????????????????????????????????ú???????????Date/Time?????????????????????????????????????????????????????μ????????????????????30????????????????????????????????????????????????????????vguen??????????date?????????????????????????????????????????????????????
????2????Group Name Group Name????????????????滻???????????scenario???????????????????????????????????????????????н????????????????????????None??
????char*c="{NewParam}";//%05s
????char*d="{NewParam_1}";//%07s
????lr_log_message("group(5s)is%s??group(7s)is%s"??lr_eval_string(c)??lr_eval_string(d));
??????????????group(5s)is 0None??group(7s)is 000None
????3??.Iteration Number Iteration Number?????????????滻????
????????????????3
????char*c="{NewParam}";//%05s
????char*d="{NewParam_1}";//%07s
????lr_log_message("Iteration(5s)is%s??Iteration(7s)is%s"??lr_eval_string(c)??lr_eval_string(d));
??????????Iteration(5s)is 00001??Iteration(7s)is 0000001
????Iteration(5s)is 00002??Iteration(7s)is 0000002
????Iteration(5s)is 00003??Iteration(7s)is 0000003
????4????Load Generator Name Load Generator Name?y???????????????????滻??????????????????????????????е???????
????5????Random Number Random Number???????????滻?????????????????С???????????????Χ??
????6????Unique Number Unique Number??????????????滻????????????????????????????????С??
????7??Vuser ID Vuser ID?÷?????????????ID?滻??????ID????Loadrunner?????????scenario????????????????????????????н????????????????ID????-1
????8??User-Defined Functions?D?D??????DLL????????????????????????????????
????__declspec(dllexport)char*<functionName>(char*??char*)???磺__declspec(dllexport)char*UF_GetVersion(char*x1??char
????*x2){return"Ver2.0";}
????9??table??file??????????????е??????
?????????????????????????
????1.???Microsoft Query???????????????MS Query????
????2.???????????????????SQL???
?????????????????????????е?????????????????????????????У????????ε???????????MS Query??????????????????дSQL?????????????????.dat???????????????????????檔??????????????????????????????????????е??“Data Wizard”???????????????????
??????????μ???
????1.???“Create new query”????????MS Query??????????“Show me how to use Microsoft Query”???????“Finish"??
???????????а??Microsoft Query??Loadrunner??????????????????á????????????Microsoft Office?а??MS Query??
????2.??Microsoft Query????????2??裬?????????????С?
????3.?????????????????“Exit and return to Virtual User Generator”???????“Finish”??????????????????????
?????????data?????????????????
???????MS Query?б?????????????“View data or edit in Microsoft Query”????????????????“File>Exit and return to
????Virtual User Generator”????????????????
????4.??“Select Column”?????????????????????????п???????к??????????????б?????????0?У?row 0????
????5.??“Select next row”?б????????????·??????????????????????????????????????е??????????????Sequential
??????Random??Unique????Same Line As??
????6.??????“Advance row each iteration”?????????????ε?????????????μ???е???????????????????????
????????????????????SQL???
????1.???“Specify SQL Statement”???????“Next”??
????2.???“Create”???????μ??????????????????????????????
????3.??????е??????????????“New”????????μ???????????????????????ODBC????????????????????????????
????????????????????????????
????4.??SQL???У???????????SQL???
????5.???“Finish”????SQL???????????????????????data??????????????????????С?
????6.??“Select Column”?????У?????????????????????С??????????к??????????
????7.??“Select next row”?б????????????·??????????????????????????????????????е??????????????Sequential
??????Random??Unique????Same Line As??
????8.??????“Advance row each iteration”?????????????ε?????????????μ???е???????????????????????
????????????????????????????й??????????????????????????????????ж?????洢???????????????е?ASCII??????y????????????????μ??????????????????????????к????????????????????????á?????????е???????????????洢??????????п??????????????????а???????????????????????÷?????????????????????????????????ò??????????????????????????????????????????????????????????λ?á???????????С??????????????е?????????·?????
???????????????????“File”?????????????Parameter Properties?????????????????????£?
????1????“File path”???????????λ?????????“Browse”???????????????λ?á???????£??????μ??????????????
????“parameter_name.dat”????????е??????????????????.dat??
????2?????“Edit”?????±????????????????????????????????????????????????綺????????????и???????????μ???п??????μ????????????????????±?????????????????У???????????????е??“Add Col”?????“Add new column”?????????????????е?????????“OK”??????????????????е????У?????????е??????
????3????“Select Column”?????????????????????????С??????????????????к???к???????????????????е??????????????????е????У?row 0????
????4????“Column delimiter”???????з??????????????????????????
????5????“First data line”?У???????е?????????????????á??б??????0?С?????б??????????п???????????“First data line”??????1?????????б???????0??
????6????“Select next row”????????·???????????????????????е??????????????е??????????????????????????????????????????????????????С?
????6.1?????Sequential?????÷???????????????????????????????????е??????????????????????????????????п?????????
????6.2???????Random?????÷???????ε???????????????????????
????6.3????????????????Use Random Sequence with Seed?????????Loadrunner?????????????scenario????????????????????????????????????????????????е???????????????????????????????????????????????scenario??????????????????????????????????????е???????????????????????????????????????????????????????????????????????????
????6.4????Unique????Unique???????????????????????????????????????
????6.5???????????????????У?Same Line As?????÷????????????????????е????????з?????????????????????и???????С????????б??л?????????????в????б????????????е??????????????Sequential??Random????Unique??
???????????????????У????????????????б??У?id1??name1??title1?????£???
????ID Name Title
????132 Kim Manager
????187 Cassie Engineer
????189 Jane VP
???????????id1???????????????????Random?????????????name1??title1???????????“Same Line as id1”??????????ID“132”?????????????????Name??“Kim”???λ??Title??“Manager”??????á?
????7??Updta value on???????·???
????7.1??Each iteration?D?D??η????????????
????7.2??Each oclearcase/"target="_blank">ccurrence?D?D??????ò????????????
????7.3??Once?D?D?????е?????ж?????????
????8??When out of values??????Χ????????????unique?????????
????8.1??Abort Vuser?D?D???
????8.2??Continue in a cyclic manner?D?D?????????
????8.3??Continue with last value?D?D???????
????9??Allocate Vuser values in the Controller????????з????????????????unique?????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11