51Testing软件测试论坛

标题: 破解的LR是否些参数类型不支持! [打印本页]

作者: devil_xxg    时间: 2008-4-22 15:11
标题: 破解的LR是否些参数类型不支持!
脚本如下:运行场景时提示:You do not have a license for this Vuser type.Please contact Mercury Interactive to renew your license.
             这个跟用户类型有什么关系?理解不了,大虾指点!
Action()
{
    double wait_time=30758400;
    long secInYear;
    char *mrsCollins;
    long t;
    int i, loops = 3;
    merc_timer_handle_t timer;

    double time_elapsed, duration, waste;

    timer = lr_start_timer();
   
        lr_think_time(3);

    time_elapsed = lr_end_timer(timer);
    waste = time_elapsed * 1000;
    lr_wasted_time(waste);

    //wait_time=lr_get_attrib_double("time");
    wait_time=30758400;
    secInYear = lr_get_attrib_long ("secondsInYear");

    mrsCollins =lr_get_attrib_string ("MrsCollins");

    if ( wait_time <= 0 )
    {
       lr_message("Illegal time value = %f \n", wait_time);
       return;
    } else
    {
       lr_message("Wait time value = %f", wait_time);
       lr_message("The number of seconds in a year is %ld", secInYear);
       lr_message("Mr. Collins' wife is named %s Lucas", mrsCollins);
    }
    for (i=0; i < loops; ++i)
    {
       time(&t);
       lr_message("Time and date: %s", ctime(&t));
       lr_think_time(wait_time);
       time(&t);
       lr_message("time and date: %s", ctime(&t));
    }
    return 0;
}
作者: fishy    时间: 2008-4-23 11:29
是根据论坛内的破解方法破解的吗、
作者: devil_xxg    时间: 2008-4-24 10:47
是的阿,我找到原因了呵呵,是没有调用某些头文件




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2