人的差别在于业余时间,而一个人的命运决定于晚上8点到10点之间。 北京安全测试精英QQ群:164265622 北京白盒测试精英QQ群:164265999 北京性能测试精英QQ群:164266156 北京自动化测试精英群:212723528 北京软件测试精英QQ群:86920845

关联经常用的函数

上一篇 / 下一篇  2012-04-02 17:47:39 / 个人分类:性能测试

 //实现随机选择节点
 intCountNode=atoi(lr_eval_string("{contentIDs_count}"));//获取节点的个数

 srand(time(NULL));

 intRandNode=rand()%intCountNode+1;//产生1到intCount中的随机数

 sprintf(strNode,"{contentIDs_%d}",intRandNode);//将某个节点的数值赋值给strNode:contentIDs_3

 lr_save_string(lr_eval_string(strNode),"contentID");//取到某个节点的id赋值contentID;


TAG:

 

评分:0

我来说两句

Open Toolbar