51Testing软件测试论坛

标题: 在TestManager中Datapool的使用方法? [打印本页]

作者: 一切的一切    时间: 2010-5-20 16:01
标题: 在TestManager中Datapool的使用方法?
DataPool可以在TestManager和Robot中维护
请教大家:
DataPool在TestManager中的创建流程是怎样的?
Robot中用到的Datapool函数有哪些?
作者: 村上舞!舞!舞    时间: 2010-5-31 15:27
创建流程?打开数据池,创建字段列,选择创建生成的数据方式。生成数据或自己写入数据池数据。就这一系列。
至于用到哪些Datapool函数,我在帮助里找了几个你看看吧
SQADatapoolClose         Close the specified datapool.
SQADatapoolFetch         Move the cursor for the datapool to the next row.
SQADatapoolOpen         Open the specified datapool.
SQADatapoolRewind         Reset the cursor for the specified datapool.
SQADatapoolValue         Retrieve the value of the specified datapool column.
作者: zjslovetyan    时间: 2010-6-5 10:15
TestManager中的Datapool也不外乎增删改。
增:Tools->Manage->Datapools,即可打开Manage Datapools,new 、Edit、Rename、Copy、Delete、这些操作不用说也知道了吧。
简单说下,在GUI脚本中使用到的数据池,定义的名称一定要与这里new的名称一致,注意大小写。
在VU脚本中使用的数据池一般都是在Robot中生成。名称脚本会自动保持与脚本一致。如果想要修改,也可以在TestManager中做修改删除操作。
楼上版主已经回答了关于GUI脚本中使用的相关函数。
我再说几个在VU脚本中经常使用的。还是举例吧。这里容易理解
DP1 = datapool_open("默认为脚本名称");定义数据池
datapool_fetch(DP1); 定位至开始
var = datapool_value(DP1,"字段值") 给定义的变量赋值




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2