Need workflow solution to upate a path field when dragging and dropping test cases from one folder to another.
Tags:
Question ID: 106098
4
0

We have created a test plan folder patch user defined field in test plan where we store the full folder path of the test case.
When we move the test case from one folder to another, we need the path to be updated with the new path.
Need workflow solution.

Marked as spam
Posted by (Questions: 70, Answers: 111)
Asked on April 30, 2015 9:02 pm
57 views
Answers (1)
4
Private answer

This will do what you described. In this example TS_USER_05 is the user defined path field.

Sub Test_AfterPost
'On Error Resume Next

Dim td
Dim tFact
Dim tItem

Set td = TDConnection
Set tFact = TestFactory
Set tItem = tFact.Item(Test_Fields.Field(''TS_TEST_ID'').Value)

'After the drag and drop, update the user field with the path
tItem.Field(''TS_USER_05'') = Test_Fields(''TS_SUBJECT'').Value.Path
tItem.Post

'Refresh the screen
Actions.Action(''act_filter_refresh'').Execute

Set tItem = Nothing
Set tFact = Nothing
Set td = Nothing

'On Error GoTo 0
End Sub

Marked as spam
Posted by (Questions: 0, Answers: 613)
Answered on April 30, 2015 9:09 pm
0
Thanks Sammy for the quick response. Works like a charm.
( at April 30, 2015 9:10 pm)
EyeOnTesting

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

X
Scroll to Top