New Ranks & Badges For The Community!
Notice something different? The ranks and associated badges have gone "Star Fleet". See what they all mean HERE
Highlighted
Lieutenant Lieutenant
Lieutenant
259 views

ALM Workflow - Access records related to a new record

Has anyone tried to use workflow code to find which records are (will be) related to a "new" record, before it has been saved to the database (either the *_New or *_FieldChange subs)

Eg. When creating a defect during manual testing (from a step of a test run), workflow code should be able to identify which step it was created from, and trace that back to the test instance. In our situation, we have quite a few required fields, which could be prefilled with values from the test instance.

I can't think of any way of doing this directly - maybe this could be done indirectly in some cases - eg. keep track of when execution is started, and assume a defect created during execution is related to the test instance being executed, or use a toolbar button to create and prefill the defect.

 

 

 

 

 

0 Likes
1 Reply
Highlighted
Fleet Admiral
Fleet Admiral

One way of doing it: from the Run you can access the Test Instance, and from that you are able to save values for various fields to global variables which can be accessed when opening a new defect.

Jan Czajkowski

[Please do not contact me off line for receiving support. Use the forum!]
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.