Customization to lock screenshots/attachments in the test runs
Question ID: 106690
0
0

We are looking to lock the screenshots that the testers take to not allow others to see the data. Has anyone had the same problem and know of a way to lock the the attachments in the test runs.

Marked as spam
Posted by (Questions: 122, Answers: 3)
Asked on February 8, 2016 2:16 pm
59 views
Answers (1)
0
Private answer

You may want to take a look at the Attachment_CanOpen workflow event trigger. Something like this should get you started in the right direction. You should find the Attachment_CanOpen function in the Common Script section of the Script Editor.

Function Attachment_CanOpen(Attachment)
'Use ActiveModule and ActiveDialogName to get the current context.
On Error Resume Next

'Checking if the attachment is in the Run Details window.
If ActiveDialogName = ''Run Details'' Then

'Define who CAN open the attachments.
If User.IsInGroup(''Developer'') Then
Attachment_CanOpen = True
Else
'Deny anyone else
Attachment_CanOpen = False
MsgBox ''No permissions to open attachment.''
Exit Function
End If
End If

'maintain default attachment processing for other modules.
Attachment_CanOpen = DefaultRes

On Error GoTo 0
End Function

Marked as spam
Posted by (Questions: 3, Answers: 168)
Answered on February 8, 2016 2:19 pm
EyeOnTesting

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

X
Scroll to Top