We are facing issue on duplicate test case move.
Below code is not working proper it returning an output even when the test case is already existing into destination folder.
Used code is:
Function Test_FieldCanChange (FieldName, NewValue)
On Error Resume Next
If FieldName = "TS_SUBJECT" Then
MsgBox "Moving Test '" & Test_Fields("TS_NAME").Value & "' from '" & Test_Fields("TS_SUBJECT").Value.Path & _
"' to '" & TDConnection.TreeManager.NodeById(NewValue).Path & "'"
Test_FieldCanChange = False
Else
Test_FieldCanChange = True
End If
On Error GoTo 0
End Function
Where we can update code so that on moving duplicate test, code will trigger the message "moving test case is duplicate".