HP ALM QC workflow script modify copy/paste
Hi everyone !
Here is my question: Is it possible to change the copy paste especially in test plan using workflow script ?
I need to make a script to copy and paste tests from one folder to another but the amount of information is too big to transfer (it seems to be a bug and it was reported to HP but we got no answer). I'm trying to split the information and copy paste them by blocks with acceptable number of information to allow the copy.
I was trying to prevent the regular copy paste events from triggering and make my own but then i would like to call the action multiple times with less information but i can't figure how to call the actions or how to access the copied information. I didn't find either how to get the sourcefolder and destination folder paths.
Do you think it is possible to do it with the workflow script editor or do i have to add regular scripts to alm ?
Thank you !
Re: HP ALM QC workflow script modify copy/paste
I don't know how you would get the paths from a copy/paste to do it yourself, but I do know how to block it using workflow.
Under the Common Script, add the following into the ActionCanExecute function. Perhaps this will point you in a direction that will help.
Function ActionCanExecute(ActionName) On Error Resume Next if ActionName = "TestPlan.Copy" Then msgbox "Attempt to Copy blocked by workflow" ActionCanExecute = False End if if ActionName = "TestPlanTree.Paste" Then msgbox "Attempt to Paste blocked by Workflow" ActionCanExecute = False End if On Error GoTo 0 End Function