QC Automail Message Modification
Question ID: 104298
1
0

Hi,

I’m trying to modify the body of the QC automail feature so that I can add/hide certain fields that’s appropriate for the project. I know it’s possible through the workflow, I’m just not sure how to do it. Any help will be appreciated.

Thanks~

Marked as spam
Posted by (Questions: 1, Answers: 0)
Asked on December 14, 2010 7:05 pm
42 views
Answers (1)
0
Private answer

Hi vilarc,

The version that you are using will have little intricacies to it, but I am including some code suggestions that can be customized by using the TDMAIL tags from within the open test architecture manual. You would need to insert the code either specified for certain modules within their respective workflow entities or it could be possible to create a generalized subroutine and then call it from from the after post section of the workflow. You could then create a basic idea/ template and utilizing selection statements (case, if, etc) decide how to present and customize the email. The included code is only a basic idea and would need more customization:

Sub SendDefect (iObjectId, strTo, strCc, strSubject, strComment) On Error Resume Next
Dim objBugFactory, objBug
Set objBugFactory = TDConnection.BugFactory
Set objBug = objBugFactory.Item(iObjectId)
objBug.Mail strTo, strCc, 2, strSubject, strComment Set objBug = Nothing
Set objBugFactory = Nothing
PrintError ''SendDefect''
On Error GoTo 0
End Sub

The constant 2 within obj.mail statement refers to the history being included, this is where you would need to address the individual needs through the OTA TDMAIL tags references to customize the settings.

I hope this gets you started on the path.

Thanks,
Dan

Marked as spam
Posted by (Questions: 0, Answers: 770)
Answered on March 22, 2013 6:49 pm
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top