执行vuser录制的脚本到一半时提示“该用户没有登录”?
我是新手,请大家帮帮忙!!!谢谢!!!用LR对JAVA开发的数据中心系统进行性能测试,录制了一个简单的登录并打开一个报表的脚本,放在action,什么都没有改,执行到打开报表的时候提示“该用户没有登录”。
请问是什么原因? 呵呵!你这个问题问得也太粗了吧!我相信的你脚本应该有登录部分了!你就加个检查点确认一下,这个登录动作是否成功了1 我选择的是双协议DB2 CLI和Web(HTTP/HTML), 登录部分如下,执行是通过的。
web_submit_data("login",
"Action=http://10.76.1.8:9080/login",
"Method=POST",
"RecContentType=text/html",
"Referer=http://10.76.1.8:9080/SignOnServlet",
"Snapshot=t2.inf",
"Mode=HTTP",
ITEMDATA,
"Name=userid", "Value=a", ENDITEM,
"Name=password", "Value=1", ENDITEM,
LAST);
[ Last edited by elisly on 2005-10-24 at 14:30 ] 当我把登录、打开报表操作、退出分别录制到vuser_init、action、vuser_end时,在vuser运行到action才有出错提示:
Action.c(423): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://10.76.1.8:9080/stmadc/services/AppWebSrv"
Action.c(423): web_custom_request highest severity level was "ERROR", 459 body bytes, 172 header bytes, 12 chunking overhead bytes
Ending action Action.
而在controller里观看虚拟用户操作轨迹看到提示“该用户没有登录”。
action的部分脚本如下:
web_url("AppWebSrv",
"URL=http://10.76.1.8:9080/stmadc/services/AppWebSrv?wsdl",
"Resource=0",
"RecContentType=text/xml",
"Referer=",
"Snapshot=t14.inf",
"Mode=HTTP",
LAST);
web_url("AppWebSrv_2",
"URL=http://10.76.1.8:9080/stmadc/services/AppWebSrv?wsdl",
"Resource=0",
"RecContentType=text/xml",
"Referer=",
"Snapshot=t15.inf",
"Mode=HTTP",
LAST);
/*web_custom_request("AppWebSrv_3",
"URL=http://10.76.1.8:9080/stmadc/services/AppWebSrv",
"Method=POST",
"Resource=0",
"RecContentType=text/xml",
"Referer=",
"Snapshot=t16.inf",
"Mode=HTTP",
"EncType=text/xml",
"Body=<?xml version=\"1.0\"?>\r\n"
"<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:SOAP-ENC=\"http://schemas.xmlsoap.org/soap/encoding/\"><SOAP-ENV:Body SOAP-ENV:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><NS1:appService xmlns:NS1=\"http://10.76.1.8:9080/stmadc/services/AppWebSrv\"><tool xsi:type=\"xsd:string\">BI</tool><xml xsi:type=\"xsd:string\"><?xml version=\"1.0\" encoding=\"gb2312\"?>\r\n"
"<request><tool>BI</tool><compressor><name>BIUTIL</name><param></param></compressor><encryptor><name></name><param></param></encryptor><content><datalen>188</datalen><trandata>789CB3294A2D2C4D2D2EB1B3492C28C8C94C4E2CC9CCCF53C84CB155323434323332353535343536B288373733345752D0B7B3292D4E2D82909929768936FA50964D716A7131502B9099ED5E591499136962E291E4686E1690E2ECE9E251165C6CA38F5002D106B43319649D9D4D496541AA1D8463A30FE6D8E8C3E492F3737341B43E9C0173320037CE40D1</trandata></content></request>\r\n"
"</xml></NS1:appService></SOAP-ENV:Body></SOAP-ENV:Envelope>",
LAST);*/
web_url("AppWebSrv_4",
"URL=http://10.76.1.8:9080/stmadc/services/AppWebSrv?wsdl",
"Resource=0",
"RecContentType=text/xml",
"Referer=",
"Snapshot=t17.inf",
"Mode=HTTP",
LAST);
web_url("AppWebSrv_5",
"URL=http://10.76.1.8:9080/stmadc/services/AppWebSrv?wsdl",
"Resource=0",
"RecContentType=text/xml",
"Referer=",
"Snapshot=t18.inf",
"Mode=HTTP",
LAST);
web_custom_request("AppWebSrv_6",
"URL=http://10.76.1.8:9080/stmadc/services/AppWebSrv",
"Method=POST",
"Resource=0",
"RecContentType=text/xml",
"Referer=",
"Snapshot=t19.inf",
"Mode=HTTP",
"EncType=text/xml",
"Body=<?xml version=\"1.0\"?>\r\n"
"<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:SOAP-ENC=\"http://schemas.xmlsoap.org/soap/encoding/\"><SOAP-ENV:Body SOAP-ENV:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><NS1:appService xmlns:NS1=\"http://10.76.1.8:9080/stmadc/services/AppWebSrv\"><tool xsi:type=\"xsd:string\">BI</tool><xml xsi:type=\"xsd:string\"><?xml version=\"1.0\" encoding=\"gb2312\"?>\r\n"
"<request><tool>BI</tool><compressor><name>BIUTIL</name><param></param></compressor><encryptor><name></name><param></param></encryptor><content><datalen>17666</datalen><trandata>789CC59CFD6F13C919C7FF95C8BF57D979DF959C48C6D9064B499CDA3EDAF4979549F6A8758E93FA8596FE37885640AF3FC08580202FBC1C3D202424BC5C40A04AF4AED5A9A557B5D7A382AB4EEA8CDFD6BB3BBBDE9990E31770ECF5CEE77966E6799EEFCC78D375F7972DB7D11C4F979797AB95F972B3B2541BA92C8CA500801412420041D07418052C35323A9E6E35DC7AE7DFCAC278393DDA7D956EB88D06FF2A7FF9D1E4A9FA5C750EE3A3C7338CCE2E647313474F161BE951EF92CED7789BF3A2B9F174F3D4B23BCE39EAA7CAD56A7AB4FD677AB4F7E9FCD2E2A2F87F7169C1ADF6D808A18C526050E83040395BB3D2ACBA63A99B5F6EBD583BFBF46F2BF7D62FACBFD85FBDB2FFE0BFB7CFECEDA44616DCC67CDCE7F3FCF663A952363B95B3674A4E363F7D2C931A4F2F5416DD9AE0EE5E30919B764AB969BBDFE2D6C5F5BFA4065C864D0409A00EC5C4E017715BF827A99146EB78EFF578FA44BD5C6B55CBF54AF354F7B6D376293391296"
"5E6EC4CA17FEBDB7F172FDD7AFB06CBE5BA5B6B8EA5522355F7A45B6DBF1768153387F0EEEAB58AB9D195C52832FE51D0A2C62F967E35966AD65BAE70476DA1223AA0F746A5B6E0FE5AB43A1AC73F9D9BF09970E1956704F48C904177CD8221B398E9206818DA660D98F261B9DA707B8676FFE81AF6A32196FDE4834CA1647B96AD6FF6EC4252BBFAD45DBB50D02EFE9F633164BD67BBA6F333A5A37DAB9EDCEA5985655679CC5DAB70C82A421D0B00F307B16AB43F3BE513359B2FCCF64D5BFDDD83B510AD693AD484966CA242E9449D2DE48FE566B236BFF784ED0C8481D3573FBEBFD9694361CE32841D4610E8014089BB3C489FBB3AC61D6C101CC94D3A057B32979F09DA73E93F77DE3CFEE6E2CB5BAF62A7AFC71F357D7998764C8CD07BB2309B2BCD056D5B7DB6B517EC2DE924F6D8A32631B3986319D6FBEABF6CFE8399B07DBBCFD62F07ED934E678F3E6A3A9B3CF9F36C8BDF977DBD643CE159777D67ED6CCF2A22B3CA63EE5A45425631E22046C90F62D5B020952B3A13B942D68B2477AEFC7BEBF4FEC5EBCF82D896411D6040228B5686345A095A69039DDB2B042A0BF12A10E15897797C3E97F5DB7FC75E9B2B4DCDF58D7AB4B6FDD79B1B8FBE0E7153CB411822759F45DC3EB9CF90C1F31CE24540ACCFFA7C419F75DA7FD723EDE7137D9B2EBFDC3FBBFA65089A17643CE4518D4126B9B78AB778C584298B0"
"B350370A111261A7FA7B54327F474B2A32FF8DC7FBBF5ED9D37A3BB5F7DFE4DD00660F0DE44082B382F59330A7E0418F0A04ECC383F7A9CFEE0E687390477164B05DB2E85ECDCD85FBD11B28307609340A9888AF5656C1B0A8E84C07220F06682D4917D4899237B2487E0C8DC4C71AEE8B371777567E5F6F39D2F426610832B2CA692358637A1E246137025143B1C3D449917BB1C87E0C4591EB9EC4229371736F5C64BB128E0C744C472A8654AD542AC27FBED489A50F024B28043188ACBC1038C3257060D3E049F4ED9C7EC299F9D9F7CF1D98DD5BBEB9783E660081D6052A0ECCEB82614DC8945EA0524AE761F6094B9B30B72085ECC4E658AFE01B9F7C7C79FCABC480C830B6E95743DBC05052772EDC7B3368C1D937D44990FBB1C87E0C3238E3D73CC67E1BDED47AB6B573657424650C8D3A1A53EB1E39A5071A2851D0BE2D818E931CABCD805D1F562797E7EA9556BFA8DCB4C0B75E95B5A15166E7DDFC31445ABFB61B9556DB66A156EE0478611328DF26A0420835F3ADFAAD707AF8B62F52D3742412AA70BF2656EBCD444E4399C00E17D2D44148978248878441791F1048908B33411712462368898D545340174B069E9229248C48920E2843622CF8DC012015F0B9146221ECD4F852857F6F77FDBD96D508314229A42936A42B23064D19E9A7266837CBB1B77DE3CB975F7FEE6DBCDAF1F6EEF7E77F3FA9973DBA"
"FCF9CEFB11A01D6E386115CFD426DF18A906F7277AE4BC46A4A1C2A58B3DCA7762108BCFAD5DA85CBE7D65EEFEFEDDD3E73EEDAB71B7BED57E7B7BEBF795DC1C158A8728A90EE40B5C2D0B3CE747EC69E0B033F7DBCF1E7FB5F2A8E002C84309FECBA211318516E9586F59E5B552901240EB64CDDA809403C652153B2FD8CE7D75EDFDA8A1A9D35C308AE3C63A1CD80C5DD3140D8B92E19A124F7F47A3A40D7E967353AA179A8812D5D3A49DAF9A9DDCB387EC0BBAF76DEEC7EB7F54211D062BC3C06581750927432C7269DE9E0007C726BF3EDD56B1B6FBC599C20F4E0B6CEA18468861E20C9371DBA097B928BF610DDA507DEF408F2C9A60746A64301D19D1D925C339D290801572CDA457FF76EEDAD9CFE7CFDF19E5AF78A7A129B58BB7B2589A6ED40B19D18ECE2ABD71E6E47076959F78A8D46D3A0BA990548524B3B0DCEE44B999F7526B18F6EE35F97FF19C5B728E95E51332283FA62CBA242FF4AB248365F2C05C81E6E7FF227B1912326EFCABD8B9B2A8462670E40883509A1248B4C16F8E873660BF91FE7BCBE7DF0FB1EE5A54B4FFEF1E9C737FE17350AA5943CC898CCB0742965596430CD715ADBBFC37D6FF7B3E75AE5A3982C0EE5E599AE9419AE65E4B4BAC206B7F7630863BAC0C3958D1C5857E65003018732DD92020E9739725E5DCD430DAEDB81E59F632AC0C3458F1C585701F184441D42B5477022052"
"447D6944314F2300611D54DA470981E92D386C591426D4245E564118B69262F984817C9C1DF9148A2A2BC02D084BA6E1FAA92A2F0B5241315CBB414684F44944832C57B5C15B97DF00D03ED55A704FA290658554C511EEB1C06FCF5B642B9888688A9F8E1A086CA0CE4E0C062990AEA706525A7D59259E2182B173200E8D246C9AC813A5C8E1BD65D090A73DA3E5C63195033B6A121BA2B1E55518451D3020E4344B700420954981C584B9251B19CC65DAB2BC95094248B1D067E6D9620BD3151A5214074D31B4AA0CDA25115851A13251AA5A64F482A080C142BD4E49807506D4C146818525DD58687A83639F081241C13C72418C34017398984F39D29DFF983A68263A23033A1A5BB01809329B810ACAE8063ED2A0C6BAF04E364022EC4ABABDF58A70CD3DEBBC0C9045C885757BF3171109D1848DBBFC9F45B885757BE31F1A302A02F907162FD1642D6946F8CB6770974D51B4EA2DE42AC07126F8C32C8E79C7F954721BBE1C4E22DC4FD8EB41B13152522447B1626D26E127A2DE9C6C4BE313498EE102189A55BA4BF95897954468676162109959B9C5755B831B10888896E4D4912E8B6C8A1A008DAAE7E4D5D854992C9B610AC966A33C526323081366C42D516A2D5126DA6F89924F00B628590461268B6485045C9668A93C9109BBA299924946C215E2DC56602912CF4151B49A0D842A4CA82CD6C1F6426A6EE5E294"
"928D8A4A48A7ACD842279597E5605354186EAB510E501E49AF82991C38B32DD6D409A40AE85780FA4D64411E95808525D6249F2F2A26CE8C481526235857C10A135F9DC979D6B8C4C01B18B766AA4E2D42BB4B04289A54A1A99A71441C58F6A948EBC0D079DB5F3B35376E8BCDB99A7A7EFDEBFFE5C854ED4DA96A5B0C9A00817B115A541CAC4220752D939D3400DAB2E1D52B19E0C81C256C87052AF34099D8E09E6F82488A2E4B74C681C2662D442B216AF588631C1A1F34A8A281D5C8B875162580AABDE32DCFEB5E3E9D181D7F3AD467369D1AD732B06DEE11734DD5A937FAD4B77B25C6DB90D71CA3CFC85A5FA825BEFD566BEE75E3496EA9C35D3981700CBE513EE48A3F21B571C69ECF8BED65A1CEB3C8162B95E39596EBADD2792F0462B35B759AE9F709BDDA78B04DE6A3F3CA46D49E76122A3BD079FFC1F45647560</trandata></content></request>\r\n"
"</xml></NS1:appService></SOAP-ENV:Body></SOAP-ENV:Envelope>",
LAST);
出错的位置是web_custom_request("AppWebSrv_3",
如果把这段屏蔽起来,那么出错的位置是web_custom_request("AppWebSrv_6",
请问有哪位知道是什么回事?或者不明白我的问题,可以回帖提出。 你是在脚本回放时出错呢?还是在并发执行时呢? 脚本回放时出错 回放出错他会提示你错误的行数啊,改一下,要不就给他删拉,没关系的 我已经知道是哪些行出错,删了的话不就把我的部分操作删了吗?怎么会没关系? 没人回答,郁闷。。。。。。
问一下
回放时,循环次数是1次么? 回放时的循环次数是不是运行时设置里的迭代次数?是1。以前没怎么作过报表的性能
你试一下录制其他操作的脚本,比如只是登陆、简单查询,如果回放没有问题的话,就和报表没关系。如果还是有问题,可能要找开发人员来确定是否是业务上有什么操作(比如相同用户只能登陆一次)。前面问的循环次数,是怀疑在runing time-browser emulation中选中“simulate a new user” 所导致的。
个人觉得,不应该有这样的问题啊 我曾经将simulate a new user取消再执行,结果是一样的错误提示。
只是录制登录部分(即登录后就退出),回放是没有问题的。
我们这个系统使用了第三方控件BI展现工具,前面我录制的登录系统,然后进入销售分析,里面的数据展现是通过一个OCX控件实现的,而我的脚本执行到数据展现的时候就会提示“该用户没有登录”。嵌入OCX控件的话在录制脚本上有没有什么特殊的设置? 我也遇到这个问题了,你怎么解决的?
页:
[1]