<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[我欲成仙，快乐齐天]]></title> 
<link>http://www.playanybody.com/index.php</link> 
<description><![CDATA[我用第三只眼睛看世界]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[我欲成仙，快乐齐天]]></copyright>
<item>
<link>http://www.playanybody.com/read.php?32</link>
<title><![CDATA[[原创]初识TestDirector]]></title> 
<author>playanybody &lt;playanybody@163.com&gt;</author>
<category><![CDATA[测试工具]]></category>
<pubDate>Fri, 04 Aug 2006 12:02:41 +0000</pubDate> 
<guid>http://www.playanybody.com/read.php?32</guid> 
<description>
<![CDATA[ 
	今天开始正式接触了TestDirector，之前听说这是一款很难得的可以管理整个测试流程的工具软件。满怀期待的迎来了第一天的学习之路，今天使用下来有以下的感受。<br/><br/>............<br/><br/>Tags - <a href="http://www.playanybody.com/tag.php?tag=testdirector" rel="tag">testdirector</a> , <a href="http://www.playanybody.com/tag.php?tag=%25E6%25B5%258B%25E8%25AF%2595" rel="tag">测试</a> , <a href="http://www.playanybody.com/tag.php?tag=%25E6%258A%2580%25E6%259C%25AF" rel="tag">技术</a>
]]>
</description>
</item><item>
<link>http://www.playanybody.com/read.php?19</link>
<title><![CDATA[[原创]WinRunner Call()函数（二）]]></title> 
<author>playanybody &lt;playanybody@163.com&gt;</author>
<category><![CDATA[测试工具]]></category>
<pubDate>Sun, 30 Jul 2006 07:48:39 +0000</pubDate> 
<guid>http://www.playanybody.com/read.php?19</guid> 
<description>
<![CDATA[ 
	接上文，在使用我们需要对你要进行的操作或者说是对Call()函数要调用的各个过程进行分别录制，然后分别保存为一个个的测试脚本，然后再建立一个Main函数脚本来调用这些子过程。我们建议将这些分别录制的脚本保存在一个目录下，这样在调用时可以不用数据路径而采用相对路径的方式来进行调用。<br/><br/>对于每一个被Call()调用到的过程我们的要求是：<br/><br/>1、都可以不依赖其他过程而单独执行<br/><br/>2、在这些过程中不包含任何控制结构，只是一个主线过程的录制<br/><br/>3、对于每个过程都要求有始有终，也就是说对于同步点的设置一定要正确，这样是为了保证在Main函数中对其的循环可以顺利进行。<br/><br/>............<br/>
]]>
</description>
</item><item>
<link>http://www.playanybody.com/read.php?12</link>
<title><![CDATA[[原创]WinRunner Call()函数（一）]]></title> 
<author>playanybody &lt;playanybody@163.com&gt;</author>
<category><![CDATA[测试工具]]></category>
<pubDate>Wed, 26 Jul 2006 14:31:06 +0000</pubDate> 
<guid>http://www.playanybody.com/read.php?12</guid> 
<description>
<![CDATA[ 
	在写WinRunner脚本时是不是常常众多的录制流程都集中在一个测试文件中？是不是发现整页整页的代码非常的长，维护修改起来也极为的不方便。这个时候我们应该学会使用Call()函数。<br/><br/>这个函数VB中使用来调用一个sub子过程的，当我们在主函数中调用一个个继承各个功能的子过程时是不是也感觉到程序的逻辑性，维护性变得非常强？我们来看看一下两种情况相信大家会有直观的认识。<br/><br/>............<br/>
]]>
</description>
</item><item>
<link>http://www.playanybody.com/read.php?11</link>
<title><![CDATA[[原创]WinRunner中去字符串右侧空格函数]]></title> 
<author>playanybody &lt;playanybody@163.com&gt;</author>
<category><![CDATA[测试工具]]></category>
<pubDate>Wed, 26 Jul 2006 10:31:13 +0000</pubDate> 
<guid>http://www.playanybody.com/read.php?11</guid> 
<description>
<![CDATA[ 
	WinRunner中的函数相对其它语言来数少了很多，如常见的Trim函数用来去掉字符串两边的空格函数在WinRunner中就没有提供，因此我们只能自己来写Function来实现这些功能。一下书写的是RTrim函数，顾名思义也就是去掉字符串右侧空格的函数。<br/><br/>在程序中用到了常见的substr()函数，这个函数大家应该不陌生在前面的程序中也有提到，大家也可以看一下前面的文章。函数的关键是在于取到字符串中不是空格的位置。<br/><br/>............<br/>
]]>
</description>
</item><item>
<link>http://www.playanybody.com/read.php?10</link>
<title><![CDATA[[原创]Flight 4A 登陆验证程序（二）]]></title> 
<author>playanybody &lt;playanybody@163.com&gt;</author>
<category><![CDATA[测试工具]]></category>
<pubDate>Wed, 26 Jul 2006 10:02:23 +0000</pubDate> 
<guid>http://www.playanybody.com/read.php?10</guid> 
<description>
<![CDATA[ 
	关于Flight 4A 登陆验证程序，有了一个比较好的方案，在测试中将所有的数据放到xls表格中，做成一个比较全面的DataDriver系统。由于判断内容在数据库中都已经就位。这样就可以利用更少的代码，更简洁的结构完成对于登陆系统验证的完全测试。<br/><br/>测试表格字段结构如下：<br/><br/><p align="center"><span style="color: #008000;">Agent_Name</span> &#124; <span style="color: #008000;">Login_Password</span> &#124; <span style="color: #008000;">Ver_Content</span> &#124; <span style="color: #008000;">Ver_Type</span></p><br/><br/>............<br/>
]]>
</description>
</item><item>
<link>http://www.playanybody.com/read.php?9</link>
<title><![CDATA[[原创]Flight 4A 登陆验证程序（一）]]></title> 
<author>playanybody &lt;playanybody@163.com&gt;</author>
<category><![CDATA[测试工具]]></category>
<pubDate>Tue, 25 Jul 2006 13:11:48 +0000</pubDate> 
<guid>http://www.playanybody.com/read.php?9</guid> 
<description>
<![CDATA[ 
	以下写得部分是我做的，感觉还是比较复杂，稍后应该会有更简单的程序。<br/><br/>DataDriver表中，只有两个字段，用于输入用户名和密码的，对于结果的判断在程序中读取。<br/><br/>代码如下：<br/><br/>#自动启动flight4a程序<br/>app="D:&#92;&#92;WinRuner8.0&#92;&#92;samples&#92;&#92;flight&#92;&#92;app";<br/>exe="flight4a.exe";<br/>invoke_application(exe,"",app,SW_SHOW);<br/><br/><br/>............<br/>
]]>
</description>
</item><item>
<link>http://www.playanybody.com/read.php?5</link>
<title><![CDATA[[整理]WinRunner经验总结]]></title> 
<author>playanybody &lt;playanybody@163.com&gt;</author>
<category><![CDATA[测试工具]]></category>
<pubDate>Mon, 24 Jul 2006 15:10:33 +0000</pubDate> 
<guid>http://www.playanybody.com/read.php?5</guid> 
<description>
<![CDATA[ 
	1.1 脚本录制规范：<br/>基本原则是录制脚本要分开、gui文件要合并、批调用回放验证、可移植回放验证。<br/>1.1.1 录制脚本要分开：<br/>脚本太大，不仅不利于以后的维护，并且会导致WinRunner的不可预测的错误产生（具体可以参考WinRunner 的Readme文档）。录制时，可以根据测试用例的流程，拆分为几个小流程，对每个小流程分别录制成不同的脚本。<br/><br/>............<br/>
]]>
</description>
</item><item>
<link>http://www.playanybody.com/read.php?4</link>
<title><![CDATA[[整理]TSL DataDriver Train]]></title> 
<author>playanybody &lt;playanybody@163.com&gt;</author>
<category><![CDATA[测试工具]]></category>
<pubDate>Mon, 24 Jul 2006 11:58:39 +0000</pubDate> 
<guid>http://www.playanybody.com/read.php?4</guid> 
<description>
<![CDATA[ 
	今天的训练科目，利用TSL和DateDriver来对通讯录自动添加组和数据。我写的代码虽然思路正确但是偏复杂了。老师花了很短的时间写出了以下代码，大家可以拿来借鉴一下。<br/><br/>题目要求自动判断是否包含数据库中的组资料，存在则添加该组资料，没有在添加该组别然后再添加资料。<br/><br/>代码如下：<br/><br/>static group_exists = FALSE;<br/><br/>table = "contact.xls"; <br/>rc = ddt_open(table, DDT_MODE_READ);<br/>if (rc!= E_OK && rc != E_FILE_OPEN)<br/> &nbsp;pause("Cannot open table.");<br/>ddt_get_row_count(table,table_RowCount);<br/>for(table_Row = 1; table_Row <= table_RowCount; table_Row ++)<br/>&#123;<br/><br/>............<br/>
]]>
</description>
</item><item>
<link>http://www.playanybody.com/read.php?3</link>
<title><![CDATA[[原创]关于File_printf使用实例]]></title> 
<author>playanybody &lt;playanybody@163.com&gt;</author>
<category><![CDATA[测试工具]]></category>
<pubDate>Mon, 24 Jul 2006 10:25:58 +0000</pubDate> 
<guid>http://www.playanybody.com/read.php?3</guid> 
<description>
<![CDATA[ 
	对于在文本中输入内容的实例，我们采用编写乘法口诀表到txt文件的方式来向大家展示使用的方法。<br/><br/>代码如下：<br/><br/>myFile = "output.txt";<br/>for(t=1;t<10;t++)<br/>&#123;<br/> &nbsp;file_open(myFile, FO_MODE_APPEND);<br/> &nbsp;file_printf(myFile, "%s","&#92;t" & t);<br/>&#125;<br/>file_printf(myFile,"&#92;r&#92;n");<br/>file_close(myFile);<br/>for(i=1;i<10;i++)<br/>&#123;<br/><br/>............<br/>
]]>
</description>
</item><item>
<link>http://www.playanybody.com/read.php?2</link>
<title><![CDATA[[原创]WinRunner VbFlight 1A 数字截取问题方案（二）]]></title> 
<author>playanybody &lt;playanybody@163.com&gt;</author>
<category><![CDATA[测试工具]]></category>
<pubDate>Mon, 24 Jul 2006 10:18:48 +0000</pubDate> 
<guid>http://www.playanybody.com/read.php?2</guid> 
<description>
<![CDATA[ 
	今天在论坛看技术贴，看到了以前的一个技术贴，给了解决VbFlight 1A“逗号”问题的新方法。次方法和我原来方法相比，具有更加好的兼容性，完全解除了对于不确定数字位数的“逗号”去除问题<br/><br/>次方法是使用到了sprit()函数，来根据要求切割数字到一个数组中，然后从数组中读取数字的方案。<br/><br/>函数如下：<br/><br/># # # # # # # # # # # # # # # # # # # # # # # # # # # # &nbsp; <br/># 函 数 名： normal_num(money)<br/># 说 &nbsp; 明： 将用“，”分隔符表示数字转换成无分隔符的数字<br/># 输入参数： money<br/># &nbsp; 用“，”分隔符表示的数字<br/># 输出参数： 无<br/># 输 &nbsp; 出： 返回无分隔符的数字<br/># # # # # # # # # # # # # # # # # # # # # # # # # # # # &nbsp; <br/><br/>............<br/>
]]>
</description>
</item>
</channel>
</rss>