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

Re: create a dummy/empty test when a folder is created automatically

$
0
0

Here is a way to do it:

 

  • Declare a global variable in the Test Plan workflow (outside the procedures:
Dim isNewFolder     
  • Set it to True in TestFolder_New:

 

Sub TestFolder_New
    isNewFolder = True
End Sub

 

  •  Add this code to TestFolder_MoveTo:
    Sub TestFolder_MoveTo
          If  isNewFolder Then
              Set currentFolder = TDConnection.TreeManager.NodeById(TestFolder_Fields("AL_ITEM_ID").Value)
              currentFolder.TestFactory.AddItem("Dummy Test")
              Set currentFolder = Nothing
              isNewFolder = False
          End If
    End Sub

     

 


Viewing all articles
Browse latest Browse all 14708

Trending Articles



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