51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 2876|回复: 1
打印 上一主题 下一主题

[原创] TD的WorkFlow定制,遇到问题之二(设置Defect Details对话框自动弹出问题),请指教

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2006-3-2 20:14:18 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
TD的WorkFlow定制缺陷跟踪流程,遇到问题之二(设置Defect Details对话框自动弹出问题):
我查看TD的帮助文件,其中提供了一个设置BUG记录间切换时,Defect Details对话框自动弹出的方法,如下:
---------------------------------------------
Understanding the Action Object
When writing a script in the Script Editor, you can use the Action object to verify whether a button or command is enabled, checked, or visible. You can also use it to execute actions. For example, suppose you want the Defect Details dialog box to open automatically when you move from one defect to another in the Defects Grid. In the Defects_Bug_MoveTo event, you can use the following code:

NewDefectAction=Actions.Action(“DefectDetailsAction1”)
#Defect Details opens after executing the next line
NewDefectAction.Execute
-----------------------------------------------------------------------------------

但我试验后,却发现系统报错:
A failure has occured in the workflow script(in function <Defects_Bug_MoveTo>)
---------------------
Error at Line 357, (character 5)
"DefectDetailsAction1" is not a valid action.:
====================
    Sub Defects_Bug_MoveTo
==> NewDefectAction=Actions.Action("DefectDetailsAction1")
    'NewDefectAction=Actions.Action("BugAddAction1")
====================

即系统提示DefectDetailsAction1不合法。
下面类似语句
NewDefectAction=Actions.Action(“BugAddAction1”)
NewDefectAction.Execute      可以实现自动弹出新增BUG的对话框

因此说明方法是对的,但帮助中写的Defect Details对话框对应的Action名DefectDetailsAction1不对。
请问,那位知道Defect Details对话框对应的Action名应该是什么?
最好能给予彻底的帮助,告诉我哪里能查到TD中各对话框对应的Action名(授我以渔)。
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2011-7-19 09:47:09 | 只看该作者
所有的action名字可以使用这样的方法获得,就是到脚本编辑器中的  Requirements_ActionCanExecute(ActionName)   事件里写入 msgbox  ActionName 如:
Function Requirements_ActionCanExecute(ActionName)
  On Error Resume Next
   MsgBox ActionName
End If

保存后,你再去点击你想知道的按钮,你就可以知道这个按钮对应的actionname是什么。用完后,把这个msgbox写法去掉。
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-10-4 15:24 , Processed in 0.081851 second(s), 28 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表