kming514 发表于 2012-10-23 09:31:38

求助!求助!请教一个脚本编写问题

先附上脚本代码,如下
web_reg_save_param("resumeids",
        "LB=applyStationId\":",
        "RB=,\"fullName",
        "Ord=ALL",
        "NotFound=WARNING",
        "Search=Body",
        "IgnoreRedirections=Yes",
        LAST);

web_url("listStationScreening.json_2",                 "URL=http://10.0.12.10:9080/clfi_test/module/screeningprocess/stationscreening/listStationScreening.json?searchPhasetypeCode=CX&_dc=1350476233960&page=1&start=0&limit=500",
        "Resource=1",
        "RecContentType=application/json",
        "Referer=http://10.0.12.10:9080/clfi_test/innerindex.jsp",
        "Snapshot=t66.inf",
        LAST);

web_submit_data("toNextStationPhase.json",
        "Action=http://10.0.12.10:9080/clfi_test/module/screeningprocess/commonoperation/toNextStationPhase.json",
        "Method=POST",
        "RecContentType=application/json",
        "Referer=http://10.0.12.10:9080/clfi_test/innerindex.jsp",
        "Snapshot=t75.inf",
        "Mode=HTTP",
        ITEMDATA,
        "Name=applyStationIds", "Value={resumeids_1}", ENDITEM,
        "Name=applyStationIds", "Value={resumeids_2}", ENDITEM,
        "Name=applyStationIds", "Value={resumeids_3}", ENDITEM,
        "Name=applyStationIds", "Value={resumeids_4}", ENDITEM,
        "Name=applyStationIds", "Value={resumeids_5}", ENDITEM,
        "Name=applyStationIds", "Value={resumeids_6}", ENDITEM,
        "Name=applyStationIds", "Value={resumeids_7}", ENDITEM,
        "Name=applyStationIds", "Value={resumeids_8}", ENDITEM,
        "Name=applyStationIds", "Value={resumeids_9}", ENDITEM,
        "Name=applyStationIds", "Value={resumeids_10}", ENDITEM,
        LAST);

我想在web_submit_data()中,控制下面这条代码的条数
"Name=applyStationIds", "Value={resumeids_1}", ENDITEM,
让它输出{resumeids_count}条
代码该怎么写哇,各位大神帮帮忙

kming514 发表于 2012-10-23 09:34:28

我晕.....一下子发了4条....版主帮忙把其他三条帖子删了吧........

云层 发表于 2012-10-23 09:58:06

要用web_custom_request来实现

kming514 发表于 2012-10-24 09:38:08

本帖最后由 kming514 于 2012-10-24 09:39 编辑

回复 3# 云层


    谢谢云层大哥
刚刚接触性能测试,好多不懂的,这个函数还不大会用...
我去查查看
页: [1]
查看完整版本: 求助!求助!请教一个脚本编写问题