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

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

Question

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.

 

 

Answer

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

else

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

Comments
by 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

by romsta 2 weeks ago

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?

Search
Showing results for 
Search instead for 
Do you mean 
Follow Us


HP Blog

HP Software Solutions Blog

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation