send email on click upload button in QC attachment
I need your suggestions. In our project we are using keyword driven framework and everything is maintained in excel files and library files and in QC we are keeping them as an attachment in different folders based on the module. As our these data files are used globally at different geographical boundaries so there are n number of users and it would become very difficult to maintain the track of those who changes the data file or the library file in the QC. My query here is that...Is there any way that We can track the changes in the attachment and if we capture the user ID of the person who makes the changes.
I was getting one idea if we found the way in which whenever user click on the upload button in QC section a mail is sent to the team (Who is actually responsible for the modifications) with the user ID and the file name that has been modified. In that case atleast we can track the person who made the changes.
Your suggestions and solutions are really appreciated.
Re: send email on click upload button in QC attachment
Friends I got the solution....In QC go to
Then click Attachment_CanPost under Project Scripts->Common Scripts and write the following code.
strSubject = "File " & Attachment.name & " is CHANGED by " & Ucase(User.username) & vbcrlf & vbcrlf _
& "for project " & TDConnection.ProjectName & vbcrlf & vbcrlf _
& "in domain " & TDConnection.DomainName & vbcrlf & vbcrlf _
& "On " & Time
SendMail "<Email ID(On which the mail will be sent)>", "", "File: " & Attachment.name, strSubject, NULL , "TEXT"
For this you must be having the Project admin rights in the QC.
Now I want the Quality Centre path for the saved or updated attachment. If anyone has any clue then please let me know.