停止更新,更多信息关注微博 http://t.qq.com/cloudits 性能测试i进阶指南相关信息请见http://bbs.51testing.com/thread-1020883-1-1.html

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

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

~3nRc.w D2X@0该次沙龙的PPT

Z8BoK:AA/[a I051Testing软件测试网 `xS^w6CX@

flex性能测试.rar(432 KB)

XpwA&G:L[E0

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

i|2~!p)[:K5]2o%@0

wkt^&g-|0Action()51Testing软件测试网GH/}X_DZL%J
{

6_ B6Z E:V!}3j_{051Testing软件测试网iq [&bjs-^

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

Em)RVMOZT*Z051Testing软件测试网|/_f,T7RM#jra{

 flex_ping("1",
kLd~_0  "URL=http://localhost:8009/Gateway.aspx",
Dj3t\2B1G U6b0  "Snapshot=t7.inf",
GW%GD.T0  "DSId=nil",
u.i/mj0|8gA0  LAST);51Testing软件测试网l/OUJpE0e

51Testing软件测试网K:j'?!c$O+AV0BX

 flex_remoting_call("SampleService::Echo",
? i,i;}-H1C?0ONugK0  "URL=http://localhost:8009/Gateway.aspx",
q!_j!wF0XZ]|;AV0  "Snapshot=t8.inf",51Testing软件测试网*d'vFdZ)kq
  INVOCATION,
#Fd(~"Z-J W@)^:_ RG0  "Target=/2",
rLP3CI$azXD0  "Operation=Echo",51Testing软件测试网A(T;Pl5Vk$E9M~i
  "Destination=SampleService",
%G?a$I)dRq/a!S0  "DSId=552936afd23a48bf8e56f5757b00d33a",51Testing软件测试网o _;Ct o%vRp
  "Argument=<arguments><string>hello</string></arguments>",51Testing软件测试网 t D#~MKa$b+M
  LAST);

%V|-^4|!T F3{uK ] TK_051Testing软件测试网-t4iB}(o

 return 0;51Testing软件测试网s @C)r ?r8X5X
}51Testing软件测试网 y_f]p7\

g L,[G1_,{U051Testing软件测试网m"p|qf5H3m[)k

insert()
'e6dG`)k&~'}5B]0{51Testing软件测试网oI7{ilI*W

51Testing软件测试网Gx/}|Y vN/I

 web_add_auto_header("x-flash-version",51Testing软件测试网 TB}'`BB-})P4Q
  "10,0,45,2");51Testing软件测试网 }pAT:eUr+F

51Testing软件测试网 slD8a$p |

 lr_think_time(17);51Testing软件测试网Yz%I&XK a

51Testing软件测试网Q3Q5G3w k3B

 flex_ping("2",51Testing软件测试网Ii!]x6NaJ`
  "URL=http://localhost:8009/Gateway.aspx",51Testing软件测试网 C3Z8i(@ SB5l w
  "Snapshot=t9.inf",
7G}l]0Mrq?0  "DSId=552936afd23a48bf8e56f5757b00d33a",51Testing软件测试网3nRVFjq&}l
  LAST);51Testing软件测试网;qI0a*}_Wjo$N

51Testing软件测试网t?l$g)Jb aD

   51Testing软件测试网0eLlp`/A~iY
 lr_start_transaction("insert");

_%vK1G+Y0

I O|Y_p!C0 flex_remoting_call(
.p oF{2fiE6l V'P0  "DemoService::InsertEmployees",
'U Kn!}qY P0  "URL=http://localhost:8009/Gateway.aspx",
&~#~bs:f*g0  "Snapshot=t10.inf",51Testing软件测试网?&mq@RRF!D6z
  INVOCATION,
n:`7wVSy.e4[uz @0  "Target=/2",
d'[ nbdtG0  "Operation=InsertEmployees",
Li-]!W$d1[0  "Destination=DemoService",
%g|[O"CJX0  "DSId=552936afd23a48bf8e56f5757b00d33a",51Testing软件测试网/b1s Ts#~6lr0~-KK
  "Argument="51Testing软件测试网9b;|?9?y:I
   "<arguments>"51Testing软件测试网i8lq9BMEI7u
    "<string>{insertparam}</string>"
-x;?`d6L%c d0   "</arguments>",
uTmI.j wi*CM0  "ResponseParameter=insertst",
\sWG:F9y `0  LAST);

H1Jvo7Y2l0

{n ^,@'w Wm)n0 lr_convert_string_encoding(lr_eval_string("{insertst}"),LR_ENC_UTF8,LR_ENC_SYSTEM_LOCALE,"temp");
"nl1k[mXc5A-t0 lr_save_string(lr_eval_string("{temp}"),"temp");51Testing软件测试网3b5p)T5Q N,wz

51Testing软件测试网Cn?/_eT@zT7X

 if(strcmp(lr_eval_string("{temp}"),"<string>插入成功</string>")==0)
5g3D4Wz%kZf0  lr_end_transaction("insert", LR_PASS);
pWO4| x4a&Ae9|I \l0 else51Testing软件测试网LMztR JnmzV
  lr_end_transaction("insert",LR_FAIL);

sS-Z1FK%s051Testing软件测试网-HJ[S@)b(a}O


:~!U;T h3kto;y0return 0;
&L jBu/n)Pp~0}

7p$farU:SY!C5y@0

|'S?(@4VU*S4@0 

c7r2K6i6D/b[l?051Testing软件测试网r$y*~"HE&w/K&i+} H

search()
2A:AV@&e0{

o!H3B)mt"W eoEIO051Testing软件测试网8GC8~a jx

 lr_think_time(14);51Testing软件测试网G~#e^0u:Np

51Testing软件测试网&q%}9`#g2^J

   51Testing软件测试网 a\O0v)~ L*Sh
 lr_rendezvous("find");51Testing软件测试网 \7`!^P a,^ h#D(j

gAO B:TSe0   51Testing软件测试网2z1o7}Q7r4jZ
 lr_start_transaction("search");

`"] @U8x Z{B,p k0

.Cf p!F"]^0 flex_remoting_call(51Testing软件测试网?_u%D/aN0f
  "DemoService::FindAllEmployees",
1_:Pm4_u W0  "URL=http://localhost:8009/Gateway.aspx",51Testing软件测试网rGW~_ r,al
  "Snapshot=t11.inf",
r1R-p9V| N0  "ResponseParameter=findresult",
#QWO%Qku.b2J2_i0  INVOCATION,51Testing软件测试网 [GR&} G*~.j2B
  "Target=/3",51Testing软件测试网J;[ x ~L)?;E
  "Operation=FindAllEmployees",
}f&t J!|1DI%R0  "Destination=DemoService",51Testing软件测试网%Hb3Bc'X6jY
  "DSId=552936afd23a48bf8e56f5757b00d33a",51Testing软件测试网b+X1{+[K#v\`|v
  "Argument="51Testing软件测试网9o.]/E7c(?D AW$z
   "<arguments>"
a4R/_yA!zIq0    "<string>abcd</string>"51Testing软件测试网rr'Y^&Hv
   "</arguments>",51Testing软件测试网zHuB W piy
  LAST);
:?Rd\3F0   
f.{_&zj~y,q!C0 lr_end_transaction("search", LR_AUTO);

mgfK#T0

Wb,o^~&[Q0  lr_xml_get_values("XML={findresult}",
,p4jE Bz O0                    "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",
9R%zX CB D0                    "ValueParam=FNValue_string",
:e/p&V'g.s G"ckU0                    "SelectAll=yes",51Testing软件测试网s^y] gv*m
                    LAST);51Testing软件测试网(ma{JM
  lr_xml_get_values("XML={findresult}",
-Z9U-MI_K{k7Y:^0                    "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",
NEt7aN.[+@!p4_0                    "ValueParam=LNValue_string",
t"w hG%T(N;`U9j0                    "SelectAll=yes",
)T,? o1e)`;G[H!^g0                    LAST);

C7h2JsP] }8gu051Testing软件测试网Xyl/^#n%X~

return 0;51Testing软件测试网4R8T_aBR
}51Testing软件测试网1G&A~+O8f@*O
51Testing软件测试网.o-T.Z!G'xxIQ0W#o%m
51Testing软件测试网 f{ PO2u{"@

51Testing软件测试网2jf~j'rS

视频较大,稍后上传补上51Testing软件测试网'W(| LsU-z-]


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

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

Open Toolbar