Chinaunix首页 | 论坛 | 博客
  • 博客访问: 178602
  • 博文数量: 39
  • 博客积分: 1548
  • 博客等级: 上尉
  • 技术积分: 410
  • 用 户 组: 普通用户
  • 注册时间: 2010-11-28 19:16
文章分类

全部博文(39)

文章存档

2011年(34)

2010年(5)

我的朋友

分类: 项目管理

2011-03-17 10:06:11

流程需要和工具结合,只有好的工具才能有力推动我们的流程实施起来。我们在实际工作中当bug状态修改的时候让我们的开发人员添加研发的评论在里面,针对这个功能我们来进行实现?针对该功能进行实现,打开qc9.2,登陆项目进行自定义,选择Workflow,打开scrīpt editor,编写代码
本文来自: 天天软件测试社区 详细文章参考:
  Dim PreviousStatus
  Dim StatusChanged
  Dim RDCommentChanged
  Sub Bug_New
  End Sub
  Sub Bug_MoveTo
  'Enter code to be executed after another bug receives focus
  ' save the status into PreviousStatus
  PreviousStatus = Fields("BG_STATUS").Value
  StatusChanged = False
  RDCommentChanged = False
  End Sub
  Sub Bug_FieldChange (FieldName)
  'Enter code to be executed after a bug field is changed
  'if Status changed, then StatusChanged is TRUE
  If FieldName = "BG_STATUS" Then
  StatusChanged = True
  'if R&D Comment is changed, then RDCommendChanged is TRUE
  ElseIf FieldName = "BG_DEV_COMMENTS" Then
  RDCommentChanged = True
  End If
  'if Status is changed from Open/Researching to Rejected and no R&D Comment is entered, then prompt user to enter R&D Comment
If StatusChanged And (PreviousStatus = "Open" Or PreviousStatus = "Researching") And (Fields("BG_STATUS").Value = "Rejected") And (Not RDCommentChanged) Then
  MsgBox ";Please enter reasons in "
  'if Status is changed from MGR Action to Reschedule and no R&D Comment is entered, then prompt user to enter R&D Comment
  ElseIf StatusChanged And (PreviousStatus = "MGR Action") And (Fields("BG_STATUS").Value="Reschedule") And (Not RDCommentChanged) Then
  MsgBox ";Please enter scheduled release version in "
  End If
阅读(974) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~