<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>石无言 &#187; LR</title>
	<atom:link href="http://www.hugstone.com/index.php/archives/tag/lr/feed" rel="self" type="application/rss+xml" />
	<link>http://www.hugstone.com</link>
	<description>三生石前问一声，人间哪里修正果！</description>
	<lastBuildDate>Wed, 28 Jul 2010 02:11:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>[LR] 无线**系统的WS模块测试过程记录</title>
		<link>http://www.hugstone.com/index.php/archives/306</link>
		<comments>http://www.hugstone.com/index.php/archives/306#comments</comments>
		<pubDate>Mon, 01 Jun 2009 07:50:45 +0000</pubDate>
		<dc:creator>stone</dc:creator>
				<category><![CDATA[Note]]></category>
		<category><![CDATA[LR]]></category>
		<category><![CDATA[web services]]></category>

		<guid isPermaLink="false">http://www.hugstone.com/?p=306</guid>
		<description><![CDATA[无线**系统的WS模块测试过程记录
测试环境:
WIN2003 + WINXP  + ASP.net(asmx/*.cs) + IIS + Oracle10G
IBM 3400 (Xeon E5420 2.50G 四核 ,8G RAM / Server,WIN2003) +  Lenovo R61 [......]<p class='read-more'><a href='http://www.hugstone.com/index.php/archives/306'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p>无线**系统的WS模块测试过程记录</p>
<p>测试环境:<br />
WIN2003 + WINXP  + ASP.net(asmx/*.cs) + IIS + Oracle10G<br />
IBM 3400 (Xeon E5420 2.50G 四核 ,8G RAM / Server,WIN2003) +  Lenovo R61 (Core 2.1G , 2G RAM /Client,WIN2003) + Lenovo R61(Core 2.2G,3G RAM /Client,WINXP)</p>
<p>WS测试：<br />
1.Import WSDL: 搭建好测试环境后，在LR的manage services中以URL方式导入WSDL文件，导入成功后，会在界面最下方提示"The WSDL file associated with this service passed validation with on errors."<br />
2.Add Service Call:  Click Add Service Call 按钮，在弹出的窗口中选择WEB 服务以及要对该服务进行的操作(web method)，可以在这里对输入输出参数进行设置，也可以在添加完成后对输入输出进行参数化。<br />
3.Replay: Click RUN.<br />
4.Create Scenario.</p>
<p>问题记录：<br />
Q1:<br />
Action.c(4): Error: C interpreter run time error: Action.c (4):  Error -- memory violation : Exception ACCESS_VIOLATION received.<br />
A:该问题有不同的解决方法：<br />
  （一）、查看参数设置是否正确，传入参数不匹配，或非空的参数为空，都会造成该问题。<br />
  （二）、run time settings->Miscellaneous中将thread（线程）换成process（进程）。</p>
<p>Q2:R612003机器上录制脚本没问题，同样的录制方法在R61XP机器上录制，脚本死活通不过，报以下错误：<br />
错误一：<br />
Microsoft Visual C++ Runtime Library<br />
Runtime Error!<br />
Program:<br />
This application has request the Runtime to terminate it in an unusual way.<br />
Please contact the application's support team for more information.</p>
<p>错误二：<br />
mmdrv.exe遇到问题需要关闭。我们对此引起的不便表示抱歉。<br />
如果你正处在进程当中，信息可能丢失。</p>
<p>A：对比脚本的WSDL，发现XP当前的用户为中文名，于是换一英文用户登陆，再录制WS脚本，回放通过，该脚本在2003中回放也顺利通过。在录制的过程中最好使用administrator帐户录制。</p>
<p>Q3: 一台机器上录制的脚本，回放通过，在另一台机器上回放通不过。<br />
A：由于录制时使用localhost录制，虽然另一台机器上也有相同的环境，回放是通不过的，所以要想共享脚本，最好使用将localhost换成IP。应该是录制时脚本中会加入唯一识别的标识。</p>
<p>PS:<br />
关于录制协议的选择，WS可以采有Web services 协议进行录制，也可以采用WEB(http/html)方式录制(不需添加WS CALL)，只要有类似如aps.net中的.asmx文件提供对WS的支持，并且能通过WEB方式访问得到，业务能成功就是正确的协议。<br />
附代码：<br />
//WEB协议<br />
Action()<br />
{</p>
<p>	web_url("localhost:801",<br />
		"URL=http://localhost:801/",<br />
		"Resource=0",<br />
		"RecContentType=text/html",<br />
		"Referer=",<br />
		"Snapshot=t1.inf",<br />
		"Mode=HTTP",<br />
		LAST);</p>
<p>	lr_think_time(14);</p>
<p>	web_url("DataWebSrv.asmx",<br />
		"URL=http://localhost:801/DataWebSrv.asmx",<br />
		"Resource=0",<br />
		"RecContentType=text/html",<br />
		"Referer=http://localhost:801/",<br />
		"Snapshot=t2.inf",<br />
		"Mode=HTTP",<br />
		LAST);</p>
<p>	web_url("GetPdaDbTableList",<br />
		"URL=http://localhost:801/DataWebSrv.asmx?op=GetPdaDbTableList",<br />
		"Resource=0",<br />
		"RecContentType=text/html",<br />
		"Referer=http://localhost:801/DataWebSrv.asmx",<br />
		"Snapshot=t3.inf",<br />
		"Mode=HTTP",<br />
		LAST);</p>
<p>	lr_think_time(5);</p>
<p>	web_submit_data("GetPdaDbTableList_2",<br />
		"Action=http://localhost:801/DataWebSrv.asmx/GetPdaDbTableList",<br />
		"Method=POST",<br />
		"RecContentType=text/xml",<br />
		"Referer=http://localhost:801/DataWebSrv.asmx?op=GetPdaDbTableList",<br />
		"Snapshot=t4.inf",<br />
		"Mode=HTTP",<br />
		ITEMDATA,<br />
		"Name=dtLastUpdate", "Value=2008.09.05", ENDITEM,<br />
		LAST);</p>
<p>	return 0;<br />
}</p>
<p>//WS协议<br />
Action()<br />
{</p>
<p>	web_service_call( "StepName=GetPdaDbTableList_101",<br />
		"SOAPMethod=DataWebSrv.DataWebSrvSoap.GetPdaDbTableList",<br />
		"ResponseParam=response",<br />
		"Service=DataWebSrv",<br />
		"Snapshot=t1243912498.inf",<br />
		BEGIN_ARGUMENTS,<br />
		"dtLastUpdate=2008.09.05",<br />
		END_ARGUMENTS,<br />
		BEGIN_RESULT,<br />
		END_RESULT,<br />
		LAST);</p>
<p>	lr_think_time(3);</p>
<p>	return 0;<br />
}</p>
<p>感谢ZEE老师和坛里的OK兄,在这个过程中给了我很多的帮助和意见。。。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hugstone.com/index.php/archives/306/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[LR] file no longer available</title>
		<link>http://www.hugstone.com/index.php/archives/115</link>
		<comments>http://www.hugstone.com/index.php/archives/115#comments</comments>
		<pubDate>Thu, 05 Feb 2009 01:50:52 +0000</pubDate>
		<dc:creator>stone</dc:creator>
				<category><![CDATA[Note]]></category>
		<category><![CDATA[LR]]></category>

		<guid isPermaLink="false">http://www.hugstone.com/?p=115</guid>
		<description><![CDATA[今天同事在使用LoadRunner中的compare with Vuser的WDiff比较工具时出现 file no longer available(文件不再可用) 的错误提示.  将同事的LR脚本COPY到石头自己的本机上一试,能够正常比较.奇怪...
在网上找一下相关的解决方法,51testi[......]<p class='read-more'><a href='http://www.hugstone.com/index.php/archives/115'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p>今天同事在使用LoadRunner中的compare with Vuser的WDiff比较工具时出现 file no longer available(文件不再可用) 的错误提示.  将同事的LR脚本COPY到石头自己的本机上一试,能够正常比较.奇怪...</p>
<p>在网上找一下相关的解决方法,51testing的ZEE版说是脚本目录的路径中有空格引起的.于是将脚本COPY到一个有空格的目录中,一试,本机还是能够正常比较.说明同事出现的问题并不是由空格引起的.</p>
<p>最后同事在WDiff工具的select Files/Directories菜单中发现了问题的所在,select Files/Directories窗口中的Left和Right中的内容是乱码,正常情况下应该是action.c/vuser_init.c/vuser_end.c,由于是乱码,所以LR脚本的目录中当然找不到对应的文件了,因此产生了 file no longer available的错误提示,手动设置LEFT和RIGHT中的文件,能够正常比较出来.</p>
<p>至于 select Files/Directories中为什么会有乱码,可能跟机器环境和LR安装有一定的关系,石头的机器里的LR中就没有乱码...</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hugstone.com/index.php/archives/115/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
