51Testing软件测试论坛

标题: loadrunner测C/S模式 [打印本页]

作者: lqwstar    时间: 2007-10-11 14:37
标题: loadrunner测C/S模式
公司最近开发了一新产品,采用dephil语言和oracle数据库 两层结构

对它的性能测试采用哪种协议,望指教!
作者: lqwstar    时间: 2007-10-11 15:02
采用 oracle (2-Tier)
录制不到,return 0;
作者: haiyanfei    时间: 2007-10-11 15:17
WINSOCK协议吧。
作者: lqwstar    时间: 2007-10-12 17:20
这种模式测性能应该就是SQL语句吧?
  望指点
作者: 1qazse4    时间: 2007-10-12 17:55
关注中,支持下楼主!~!
作者: lqwstar    时间: 2007-10-17 15:58
/*********************************************************************
* Created by Mercury Interactive Windows Sockets Recorder
*
* Created on: Wed Oct 17 15:39:41
*********************************************************************/

#include "lrs.h"


Action()
{
    lrs_create_socket("socket0", "TCP", "RemoteHost=TEST2:1521",  LrsLastArg);

    lrs_send("socket0", "buf0", LrsLastArg);

    lrs_receive("socket0", "buf1", LrsLastArg);

    lrs_send("socket0", "buf2", LrsLastArg);

    lrs_receive("socket0", "buf3", LrsLastArg);

    lrs_send("socket0", "buf4", LrsLastArg);

    lrs_receive("socket0", "buf5", LrsLastArg);

    lrs_send("socket0", "buf6", LrsLastArg);

    lrs_receive("socket0", "buf7", LrsLastArg);

    lrs_send("socket0", "buf8", LrsLastArg);

    lrs_receive("socket0", "buf9", LrsLastArg);

    lrs_send("socket0", "buf10", LrsLastArg);

    lrs_receive("socket0", "buf11", LrsLastArg);

    lrs_send("socket0", "buf12", LrsLastArg);

    lrs_receive("socket0", "buf13", LrsLastArg);

    lrs_send("socket0", "buf14", LrsLastArg);

    lrs_receive("socket0", "buf15", LrsLastArg);

    lrs_send("socket0", "buf16", LrsLastArg);

    lrs_receive("socket0", "buf17", LrsLastArg);

    lrs_send("socket0", "buf18", LrsLastArg);

    lrs_receive("socket0", "buf19", LrsLastArg);

    lrs_send("socket0", "buf20", LrsLastArg);

    lrs_receive("socket0", "buf21", LrsLastArg);

    lrs_send("socket0", "buf22", LrsLastArg);

    lrs_receive("socket0", "buf23", LrsLastArg);

    lrs_send("socket0", "buf24", LrsLastArg);

    lrs_receive("socket0", "buf25", LrsLastArg);

    lrs_send("socket0", "buf26", LrsLastArg);

    lrs_receive("socket0", "buf27", LrsLastArg);

    lrs_send("socket0", "buf28", LrsLastArg);

    lrs_receive("socket0", "buf29", LrsLastArg);

    lrs_send("socket0", "buf30", LrsLastArg);

    lrs_receive("socket0", "buf31", LrsLastArg);

    lrs_send("socket0", "buf32", LrsLastArg);

    lrs_receive("socket0", "buf33", LrsLastArg);

    lrs_send("socket0", "buf34", LrsLastArg);

    lrs_receive("socket0", "buf35", LrsLastArg);

    lrs_send("socket0", "buf36", LrsLastArg);

    lrs_receive("socket0", "buf37", LrsLastArg);

    lrs_send("socket0", "buf38", LrsLastArg);

    lrs_receive("socket0", "buf39", LrsLastArg);

    lrs_send("socket0", "buf40", LrsLastArg);

    lrs_receive("socket0", "buf41", LrsLastArg);

    lrs_send("socket0", "buf42", LrsLastArg);

    lrs_receive("socket0", "buf43", LrsLastArg);

    lrs_send("socket0", "buf44", LrsLastArg);

    lrs_receive("socket0", "buf45", LrsLastArg);

    lrs_send("socket0", "buf46", LrsLastArg);

    lrs_receive("socket0", "buf47", LrsLastArg);

    lrs_send("socket0", "buf48", LrsLastArg);

    lrs_receive("socket0", "buf49", LrsLastArg);

    lrs_send("socket0", "buf50", LrsLastArg);

    lrs_receive("socket0", "buf51", LrsLastArg);
作者: lqwstar    时间: 2007-10-17 15:58
标题: 接着
lrs_send("socket0", "buf52", LrsLastArg);

    lrs_receive("socket0", "buf53", LrsLastArg);

    lrs_send("socket0", "buf54", LrsLastArg);

    lrs_receive("socket0", "buf55", LrsLastArg);

    lrs_send("socket0", "buf56", LrsLastArg);

    lrs_receive("socket0", "buf57", LrsLastArg);

    lrs_send("socket0", "buf58", LrsLastArg);

    lrs_receive("socket0", "buf59", LrsLastArg);

    lrs_send("socket0", "buf60", LrsLastArg);

    lrs_receive("socket0", "buf61", LrsLastArg);

    lrs_send("socket0", "buf62", LrsLastArg);

    lrs_receive("socket0", "buf63", LrsLastArg);

    lrs_send("socket0", "buf64", LrsLastArg);

    lrs_receive("socket0", "buf65", LrsLastArg);

    lrs_send("socket0", "buf66", LrsLastArg);

    lrs_receive("socket0", "buf67", LrsLastArg);

    lrs_send("socket0", "buf68", LrsLastArg);

    lrs_receive("socket0", "buf69", LrsLastArg);

    lrs_send("socket0", "buf70", LrsLastArg);

    lrs_receive("socket0", "buf71", LrsLastArg);

    lrs_send("socket0", "buf72", LrsLastArg);

    lrs_receive("socket0", "buf73", LrsLastArg);

    lrs_send("socket0", "buf74", LrsLastArg);

    lrs_receive("socket0", "buf75", LrsLastArg);

    lrs_send("socket0", "buf76", LrsLastArg);

    lrs_receive("socket0", "buf77", LrsLastArg);

    lrs_send("socket0", "buf78", LrsLastArg);

    lrs_receive("socket0", "buf79", LrsLastArg);

    lrs_send("socket0", "buf80", LrsLastArg);

    lrs_receive("socket0", "buf81", LrsLastArg);

    lrs_send("socket0", "buf82", LrsLastArg);

    lrs_receive("socket0", "buf83", LrsLastArg);

    lrs_send("socket0", "buf84", LrsLastArg);

    lrs_receive("socket0", "buf85", LrsLastArg);

    lrs_send("socket0", "buf86", LrsLastArg);

    lrs_receive("socket0", "buf87", LrsLastArg);

    lrs_send("socket0", "buf88", LrsLastArg);

    lrs_receive("socket0", "buf89", LrsLastArg);

    lrs_send("socket0", "buf90", LrsLastArg);

    lrs_receive("socket0", "buf91", LrsLastArg);

    lrs_send("socket0", "buf92", LrsLastArg);

    lrs_receive("socket0", "buf93", LrsLastArg);

    lrs_send("socket0", "buf94", LrsLastArg);

    lrs_receive("socket0", "buf95", LrsLastArg);

    lrs_send("socket0", "buf96", LrsLastArg);

    lrs_receive("socket0", "buf97", LrsLastArg);

    lrs_send("socket0", "buf98", LrsLastArg);

    lrs_receive("socket0", "buf99", LrsLastArg);

    lrs_send("socket0", "buf100", LrsLastArg);

    lrs_receive("socket0", "buf101", LrsLastArg);

    lrs_send("socket0", "buf102", LrsLastArg);

    lrs_receive("socket0", "buf103", LrsLastArg);

    lrs_send("socket0", "buf104", LrsLastArg);

    lrs_receive("socket0", "buf105", LrsLastArg);

    lrs_send("socket0", "buf106", LrsLastArg);

    lrs_receive("socket0", "buf107", LrsLastArg);

    lrs_send("socket0", "buf108", LrsLastArg);

    lrs_receive("socket0", "buf109", LrsLastArg);

    lrs_send("socket0", "buf110", LrsLastArg);

    lrs_receive("socket0", "buf111", LrsLastArg);

    lrs_send("socket0", "buf112", LrsLastArg);

    lrs_receive("socket0", "buf113", LrsLastArg);

    lrs_send("socket0", "buf114", LrsLastArg);

    lrs_receive("socket0", "buf115", LrsLastArg);

    lrs_send("socket0", "buf116", LrsLastArg);

    lrs_receive("socket0", "buf117", LrsLastArg);

    lrs_send("socket0", "buf118", LrsLastArg);

    lrs_receive("socket0", "buf119", LrsLastArg);

    lrs_send("socket0", "buf120", LrsLastArg);

    lrs_receive("socket0", "buf121", LrsLastArg);

    lrs_send("socket0", "buf122", LrsLastArg);

    lrs_receive("socket0", "buf123", LrsLastArg);

    lrs_send("socket0", "buf124", LrsLastArg);

    lrs_receive("socket0", "buf125", LrsLastArg);

    lrs_send("socket0", "buf126", LrsLastArg);

    lrs_receive("socket0", "buf127", LrsLastArg);

    lrs_send("socket0", "buf128", LrsLastArg);

    lrs_receive("socket0", "buf129", LrsLastArg);

    lrs_send("socket0", "buf130", LrsLastArg);

    lrs_receive("socket0", "buf131", LrsLastArg);

    lrs_send("socket0", "buf132", LrsLastArg);

    lrs_receive("socket0", "buf133", LrsLastArg);

    lrs_send("socket0", "buf134", LrsLastArg);

    lrs_receive("socket0", "buf135", LrsLastArg);

    lrs_send("socket0", "buf136", LrsLastArg);

    lrs_receive("socket0", "buf137", LrsLastArg);

    lrs_send("socket0", "buf138", LrsLastArg);

    lrs_receive("socket0", "buf139", LrsLastArg);

    lrs_send("socket0", "buf140", LrsLastArg);

    lrs_receive("socket0", "buf141", LrsLastArg);

    lrs_send("socket0", "buf142", LrsLastArg);

    lrs_receive("socket0", "buf143", LrsLastArg);

    lrs_send("socket0", "buf144", LrsLastArg);

    lrs_receive("socket0", "buf145", LrsLastArg);

    lrs_send("socket0", "buf146", LrsLastArg);

    lrs_receive("socket0", "buf147", LrsLastArg);

    lrs_send("socket0", "buf148", LrsLastArg);

    lrs_receive("socket0", "buf149", LrsLastArg);

    lrs_send("socket0", "buf150", LrsLastArg);

    lrs_receive("socket0", "buf151", LrsLastArg);

    lrs_send("socket0", "buf152", LrsLastArg);

    lrs_receive("socket0", "buf153", LrsLastArg);

    lrs_send("socket0", "buf154", LrsLastArg);

    lrs_receive("socket0", "buf155", LrsLastArg);

    lrs_send("socket0", "buf156", LrsLastArg);

    lrs_receive("socket0", "buf157", LrsLastArg);

    lrs_send("socket0", "buf158", LrsLastArg);

    lrs_receive("socket0", "buf159", LrsLastArg);

    lrs_send("socket0", "buf160", LrsLastArg);

    lrs_receive("socket0", "buf161", LrsLastArg);

    lrs_send("socket0", "buf162", LrsLastArg);

    lrs_receive("socket0", "buf163", LrsLastArg);

    lrs_send("socket0", "buf164", LrsLastArg);

    lrs_receive("socket0", "buf165", LrsLastArg);

    lrs_send("socket0", "buf166", LrsLastArg);

    lrs_receive("socket0", "buf167", LrsLastArg);

    lrs_send("socket0", "buf168", LrsLastArg);

    lrs_receive("socket0", "buf169", LrsLastArg);

    lrs_send("socket0", "buf170", LrsLastArg);

    lrs_receive("socket0", "buf171", LrsLastArg);

    lrs_send("socket0", "buf172", LrsLastArg);

    lrs_receive("socket0", "buf173", LrsLastArg);

    lrs_send("socket0", "buf174", LrsLastArg);

    lrs_receive("socket0", "buf175", LrsLastArg);

    lrs_send("socket0", "buf176", LrsLastArg);

    lrs_receive("socket0", "buf177", LrsLastArg);

    lrs_send("socket0", "buf178", LrsLastArg);

    lrs_receive("socket0", "buf179", LrsLastArg);

    lrs_send("socket0", "buf180", LrsLastArg);

    lrs_receive("socket0", "buf181", LrsLastArg);

    lrs_send("socket0", "buf182", LrsLastArg);

    lrs_receive("socket0", "buf183", LrsLastArg);

    lrs_send("socket0", "buf184", LrsLastArg);

    lrs_receive("socket0", "buf185", LrsLastArg);

    lrs_send("socket0", "buf186", LrsLastArg);

    lrs_receive("socket0", "buf187", LrsLastArg);

    lrs_send("socket0", "buf188", LrsLastArg);

    lrs_receive("socket0", "buf189", LrsLastArg);

    lrs_send("socket0", "buf190", LrsLastArg);

    lrs_receive("socket0", "buf191", LrsLastArg);

    lrs_send("socket0", "buf192", LrsLastArg);

    lrs_receive("socket0", "buf193", LrsLastArg);

    lrs_send("socket0", "buf194", LrsLastArg);

    lrs_receive("socket0", "buf195", LrsLastArg);

    lrs_send("socket0", "buf196", LrsLastArg);

    lrs_receive("socket0", "buf197", LrsLastArg);

    lrs_send("socket0", "buf198", LrsLastArg);

    lrs_receive("socket0", "buf199", LrsLastArg);

    lrs_send("socket0", "buf200", LrsLastArg);

    lrs_receive("socket0", "buf201", LrsLastArg);

    lrs_send("socket0", "buf202", LrsLastArg);

    lrs_receive("socket0", "buf203", LrsLastArg);

    lrs_send("socket0", "buf204", LrsLastArg);

    lrs_receive("socket0", "buf205", LrsLastArg);

    lrs_send("socket0", "buf206", LrsLastArg);

    lrs_receive("socket0", "buf207", LrsLastArg);

    lrs_send("socket0", "buf208", LrsLastArg);

    lrs_receive("socket0", "buf209", LrsLastArg);

    lrs_send("socket0", "buf210", LrsLastArg);

    lrs_receive("socket0", "buf211", LrsLastArg);

    lrs_send("socket0", "buf212", LrsLastArg);

    lrs_receive("socket0", "buf213", LrsLastArg);

    lrs_send("socket0", "buf214", LrsLastArg);

    return 0;
}
简单的一个登录,产生这么多语句,是不是协议不行呢?
(dephil开发,oracle数据库)
作者: maihua258    时间: 2007-10-20 11:50
你用sockets协议就只能录制到这么多消息包哦
作者: qq0879    时间: 2007-10-20 12:57
关注中。。。




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