Quantcast
Channel: All Quality Center / ALM Practitioners Forum posts
Viewing all articles
Browse latest Browse all 14708

Code is execute on Duplicate test case move.

$
0
0

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".


Viewing all articles
Browse latest Browse all 14708

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>