Quality Center / ALM Knowledge Base
Showing results for 
Search instead for 
Do you mean 

Change the defect description field depending from where the new defect is opened

by on ‎10-21-2013 01:26 PM


I am running ALM 11.5 I know in the default product if we open a new defect from the manual runner it loads all the data from the test however I am done some customization with in the BUG_NEW function and since then the defect description fields does not takes the values from the manual runner. I can't change the customization as it is client requirement. However All i need is when I click to open a new defect from the manual runner it should copy the test information as it does in the default product.




It is possible to trigger custom workflow whenever the defect is created from Test Run.


First you need to isolate the action name of the defect button in Manual Runner:


dim val

Function ActionCanExecute(ActionName)


if  actionname   =  "RunView.NewDefect"   then

val = 1


val =0

end if


  ActionCanExecute = DefaultRes

  On Error GoTo 0

End Function


Next in the defects module run the code which alters the value of the Description field:


Sub Bug_New


    if  val   =  1   then

        Bug_Fields.Field("BG_DESCRIPTION").Value =   "Custom text"

    end if


End Sub

TSM on ‎03-21-2014 06:56 AM

Hi ,


 Can anyone help me on this, I need find the defects which are not linked to any test case in qc by OTA

romsta on ‎08-06-2014 04:03 PM

I need to stop a certain user type from creating defects directly from the defects tab and ensure they create them from the manual run in test lab.  Is anyone able to assist with code for this?

Debesh1 on ‎09-27-2015 06:45 AM

I am woring in  a project where I am abale to map end to end scenario in creation mode ex:- create of sales order then creation of delivery and then invoice.My customer requirement is to test all the change cases like change sales order(within sales order many scenarios) then delivery many scenarios etc.


Could you please sugesst be the best approach for this to map it in HP ALM?I am working on version 12.0