解释:
Ø “事务”统计的时间为
web_url("Folder.jsp_4", "URL=http://172.17.16.5/xpc71/jsp/com/folder/Folder.jsp", "Resource=0", "RecContentType=text/html", "Referer=http://172.17.16.5/xpc71/LoginAction.do", "Snapshot=t10.inf", "Mode=HTML", LAST); |
所执行的时间;
Ø “事务1”统计的时间为:
web_url("Folder.jsp_4", "URL=http://172.17.16.5/xpc71/jsp/com/folder/Folder.jsp", "Resource=0", "RecContentType=text/html", "Referer=http://172.17.16.5/xpc71/LoginAction.do", "Snapshot=t10.inf", "Mode=HTML", LAST); web_url("TemplateAdminAction.do", "URL=http://172.17.16.5/xpc71/TemplateAdminAction.do?forwardID=1", "Resource=0", "RecContentType=text/html", "Referer=http://172.17.16.5/xpc71/LoginAction.do", "Snapshot=t11.inf", "Mode=HTML", LAST); |
所执行的时间;
Ø “事务2”统计的时间为:
web_url("Folder.jsp_4", "URL=http://172.17.16.5/xpc71/jsp/com/folder/Folder.jsp", "Resource=0", "RecContentType=text/html", "Referer=http://172.17.16.5/xpc71/LoginAction.do", "Snapshot=t10.inf", "Mode=HTML", LAST); web_url("TemplateAdminAction.do", "URL=http://172.17.16.5/xpc71/TemplateAdminAction.do? forwardID=1", "Resource=0", "RecContentType=text/html", "Referer=http://172.17.16.5/xpc71/LoginAction.do", "Snapshot=t11.inf", "Mode=HTML", LAST); web_submit_form("ScheduleCreationAction.do", "Snapshot=t12.inf", ITEMDATA, "Name=PTName", "Value=test", ENDITEM, "Name=headerTempID", "Value=ttte", ENDITEM, "Name=selectHeader", "Value=1", ENDITEM, "Name=schTempID", "Value=preProductionDetailTemplate", ENDITEM, LAST); |
所执行的时间;
从上文我们可以看出事务之间可以嵌套使用,相互之间没有影响,事务计时仅仅以事务名称为标识。
总结:
• 使用LoadRunner transactions可以度量:
– 业务流程中每一步所花费的时间
– 整个业务流程所花费的时间
– 业务流程中每一步的性能指标可以自动度量
• 可以在录制过程中和录制完成后增加LoadRunner transactions
• 利用“automatic LoadRunner transactions”可以很方便的度量每一步的性能指标。