• lr_字符串拼接后作为参数


    char pre_email[4];

    char email[4];

    //itoa(rand()%1000,pre_email,10);
    strcpy(pre_email,lr_eval_string("{index}"));
    strcat(pre_email,"@5.cn");
    strcpy(email,lr_eval_string(pre_email));
    lr_output_message("%s",email);
    lr_save_string(email,"vemail");

    Action()
    {
    char pre_email[4];
    char email[4];
    itoa(rand()%1000,pre_email,10);
    strcat(pre_email,"@5.cn");
    strcpy(email,lr_eval_string(pre_email));
    //lr_output_message("%s",email);
    lr_save_string(email,"vemail");

    web_reg_save_param("emailVerifyCode",
    "LB=绗�簩姝ワ細杈撳叆楠岃瘉鐮乕",
    "RB=]",
    LAST);

    web_submit_data("regist",
    "Action=http://192.168.1.101:40001/dangdang/user/regist.action",
    "Method=POST",
    ITEMDATA,
    "Name=struts.token.name","Value=struts.token",ENDITEM,
    "Name=struts.token","Value=DQK2074VVSDBY236HWNT2PSRFZ963QNE",ENDITEM,
    "Name=user.email","Value={email}",ENDITEM,
    "Name=user.nickname","Value={email}",ENDITEM,
    "Name=user.password","Value=111111",ENDITEM,
    "Name=password1","Value=111111",ENDITEM,
    "Name=validateCode","Value=1",ENDITEM,
    LAST);

    web_submit_data("verify",
    "Action=http://192.168.1.101:40001/dangdang/user/verify.action",
    "Method=POST",
    ITEMDATA,
    "Name=struts.token.name","Value=struts.token",ENDITEM,
    "Name=struts.token","Value=DQK2074VVSDBY236HWNT2PSRFZ963QNE",ENDITEM,
    "Name=emailVerifyCode","Value={emailVerifyCode}",ENDITEM,
    LAST);

    return 0;
    }

  • 相关阅读:
    第九周
    第八周
    第七周
    代码复审核查表
    对软件开发的理解
    第六周
    网站流量分析架构及实现
    hive的sql语句
    精简客户端搭建Oracle数据库
    idaa搭建maven发布tomcat
  • 原文地址:https://www.cnblogs.com/stay-sober/p/4323232.html
Copyright © 2020-2023  润新知