|
脚本如下:运行场景时提示: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;
} |
|