停止更新,敏捷测试及TestOps解决体系,关注订阅号TestOps

Flex性能测试沙龙PPT及案例代码

上一篇 / 下一篇  2010-07-26 08:51:48 / 个人分类:性能测试

51Testing软件测试网doAk.uyjM

该次沙龙的PPT51Testing软件测试网At.n2xq9~E6}

9W2dv8tS ng7bY0flex性能测试.rar(432 KB)51Testing软件测试网F"nJ-a{&X jS

51Testing软件测试网6{f{ ]%E)p7^3fa

附带的代码由于比较简单就直接贴出代码了

$}.zz;}eMtO{051Testing软件测试网)~I @*x/w(w!Zv

Action()
\Z:i)uw p9Vc0{51Testing软件测试网$OC@g8B@*v:o

51Testing软件测试网?{1` Wr(`Q

 web_add_auto_header("x-flash-version", "10,0,45,2");

4VSG3]2oU051Testing软件测试网(P]6\ TK0Sovc

 flex_ping("1",51Testing软件测试网l&~PmA W9f H-L a
  "URL=http://localhost:8009/Gateway.aspx",51Testing软件测试网cAo9L7klr
  "Snapshot=t7.inf",
.}r8~[ jKJ%h0  "DSId=nil",
9a&tbn}i0  LAST);51Testing软件测试网 q4EW1~ kxE

51Testing软件测试网b0u3@r-Gg

 flex_remoting_call("SampleService::Echo",51Testing软件测试网j o;Q/_p
  "URL=http://localhost:8009/Gateway.aspx",51Testing软件测试网_ s6Re J6@*n&bw?
  "Snapshot=t8.inf",
(["i$e5~-xtg0  INVOCATION,
X{P FJe1k0  "Target=/2",
wp)a,wQ,y?LDA0  "Operation=Echo",51Testing软件测试网pIqsU5RY@(?k
  "Destination=SampleService",
i#U"r.Zv?0  "DSId=552936afd23a48bf8e56f5757b00d33a",51Testing软件测试网EHV^ [ GJz
  "Argument=<arguments><string>hello</string></arguments>",
h+}e+` |6ql0  LAST);51Testing软件测试网/A0H1hCFq"J'|(M

/L{ yNa d5@7A2_0 return 0;51Testing软件测试网])yCc/poP M
}51Testing软件测试网Z%Ll%li"s

WS-p6]6i9v051Testing软件测试网0O Y#H'hy

insert()51Testing软件测试网)vqGO^ b"_
{

%D` L6V'^Z|0

a?*S5~llg@0 web_add_auto_header("x-flash-version",
_ L uyX(r0  "10,0,45,2");51Testing软件测试网9~P9Xp'fM7x/}

W(T4X B&KVF0 lr_think_time(17);

.Fxv"MThz+{n051Testing软件测试网 Ju[N1pu3W2^

 flex_ping("2",51Testing软件测试网(mW O6aR)}A5~|4L
  "URL=http://localhost:8009/Gateway.aspx",
U5r0U)`8C(vA$s0  "Snapshot=t9.inf",
:}`"t$V,~j'[S.V0  "DSId=552936afd23a48bf8e56f5757b00d33a",
:_mK(H;`c0  LAST);51Testing软件测试网8dXUUwn

{,HUzc#VY0   51Testing软件测试网j9x{E qn _
 lr_start_transaction("insert");51Testing软件测试网H:|P!du?j[Yp

51Testing软件测试网c t-? mR0hT7^P

 flex_remoting_call(51Testing软件测试网{ kn8} c5[
  "DemoService::InsertEmployees",
s5G O1~!Cn.]??:uF0  "URL=http://localhost:8009/Gateway.aspx",
dk8Z8It6VO6g+x.a PH0  "Snapshot=t10.inf",
])H `f%k!w'T9}0  INVOCATION,
@NGN1P f&c(v0  "Target=/2",51Testing软件测试网1Z] U*_:m)s
  "Operation=InsertEmployees",
b,QR@D3H0  "Destination=DemoService",
1nsce%w;Cn2~A_0  "DSId=552936afd23a48bf8e56f5757b00d33a",51Testing软件测试网q*E _RM"bS
  "Argument="
)O$C8Gd4\0   "<arguments>"
"WPv R9R"F.ui0    "<string>{insertparam}</string>"
h!a PLG4f0   "</arguments>",51Testing软件测试网"hM%I u2\kq)j
  "ResponseParameter=insertst",
TRn~?.~4ht0  LAST);51Testing软件测试网Ok,w1Yr9X`@u

3Y8V(NFAw/v r'k0 lr_convert_string_encoding(lr_eval_string("{insertst}"),LR_ENC_UTF8,LR_ENC_SYSTEM_LOCALE,"temp");51Testing软件测试网!}9[j't?"Zj5E
 lr_save_string(lr_eval_string("{temp}"),"temp");51Testing软件测试网IRj%A;_)Y J}

51Testing软件测试网 eq A-hZ$wo3i

 if(strcmp(lr_eval_string("{temp}"),"<string>插入成功</string>")==0)51Testing软件测试网6u"f%}R.HJ&Mz t
  lr_end_transaction("insert", LR_PASS);51Testing软件测试网QT#g,y'z^5_
 else51Testing软件测试网a:Q{(y#I? ]Q
  lr_end_transaction("insert",LR_FAIL);51Testing软件测试网qpp'|Yx&^rCF

51Testing软件测试网R+s'v `v HZ7wf

51Testing软件测试网ro G.T:U
return 0;
XqGOlt U-R7Y9a$C0}51Testing软件测试网%s f#QYf

51Testing软件测试网/yhfM2ej q]9M

 

h%?n lqmI0

3Mk1I(I [,O.F(dD0search()51Testing软件测试网qv){ `0iI0d-sm
{

4T*j3G:iy*v ^051Testing软件测试网x;F7_e+m/uW

 lr_think_time(14);

"Br2UXF!Y8p p%MZ0

#h.B'kF7z NV4o_0   51Testing软件测试网,E7w]F5_0l"D
 lr_rendezvous("find");51Testing软件测试网$UY@ mI_!n

51Testing软件测试网3D E3L;K.c9}h

   
k X b/w.{)X0 lr_start_transaction("search");

:C9s5]k+w^,xu6RE051Testing软件测试网A(e)Z&C]f

 flex_remoting_call(51Testing软件测试网T#^4Fi Vq4oF#L YVX
  "DemoService::FindAllEmployees",
"|!cX0p5A h,L0  "URL=http://localhost:8009/Gateway.aspx",
pf'ZS/C!|H l0  "Snapshot=t11.inf",
4q2@.t}I#^$B,oL0  "ResponseParameter=findresult",51Testing软件测试网|)T V+D1\(D*UW.V
  INVOCATION,
f/h(iY B}O"u]0  "Target=/3",
h%ii!j#^5A6_0  "Operation=FindAllEmployees",
*`.e'yCb,s0  "Destination=DemoService",51Testing软件测试网 L[!N,Qwq.So D
  "DSId=552936afd23a48bf8e56f5757b00d33a",
;j z^ld i \#o|3s0  "Argument="
2x.U2rP~4WxmB0   "<arguments>"51Testing软件测试网({$}'nEE5z N
    "<string>abcd</string>"51Testing软件测试网&{E/Xl\3q ^`
   "</arguments>",51Testing软件测试网#Try8QB
  LAST);51Testing软件测试网y7\C'g4Y [}d
   
2YBpR%{#J/g3]dn$Y0 lr_end_transaction("search", LR_AUTO);

O4Iot*U}6X|0

@wG@t*WQ(f!| w`0  lr_xml_get_values("XML={findresult}",
MWL e7~d0                    "Query=/AMFPacket/Messages/Message/AMF3/object/object-content/object-member[7]/object/object-externalizable-content/object-externalizable-member/array/array-members-part/array-member/object/object-content/object-member[1]/string",51Testing软件测试网n`6E)|t U
                    "ValueParam=FNValue_string",51Testing软件测试网.?-q gU3B1@3i
                    "SelectAll=yes",
#P]&wqFb0                    LAST);51Testing软件测试网4Fh@'GI)B#l)x#T
  lr_xml_get_values("XML={findresult}",
\*_~$K8yTP'p0                    "Query=/AMFPacket/Messages/Message/AMF3/object/object-content/object-member[7]/object/object-externalizable-content/object-externalizable-member/array/array-members-part/array-member/object/object-content/object-member[2]/string",
khLuT9^J0                    "ValueParam=LNValue_string",
y`!I_7vv"mg m0                    "SelectAll=yes",51Testing软件测试网1o*v\ Jd(B5R
                    LAST);

}Y vK"\m Aa,c7]051Testing软件测试网!I ? r6xl},|

return 0;
t9s(d^ QKd5p0}
p+H]z](z he!c051Testing软件测试网'^"itd9] c&r

,s RK#O,VP|*Xe0

[#fX y"}2Z\u5g0视频较大,稍后上传补上51Testing软件测试网'KZAVVW D g:Rr


TAG:

walkersw的个人空间 引用 删除 walkersw   /   2011-12-12 18:43:38
5
云层专版 引用 删除 云层   /   2010-07-26 17:07:22
原帖由dhrbc于2010-07-26 16:59:13发表
可以提供以下被测试系统的AS源代码吗?谢谢

原帖由dhrbc于2010-07-26 16:59:13发表
可以提供以下被测试系统的AS源代码吗?谢谢

在前面的日志里面我已经提供下载了,注意往前看两个日志
dhrbc的个人空间 引用 删除 dhrbc   /   2010-07-26 16:59:13
可以提供以下被测试系统的AS源代码吗?谢谢
流年 引用 删除 awaxiang   /   2010-07-26 16:18:48
Got it, thanks!
 

评分:0

我来说两句

Open Toolbar