Quantcast
Channel: Quality Center / ALM Practitioners Forum topics
Viewing all articles
Browse latest Browse all 5491

ALM 11.00 - Add default value to test instance field

$
0
0

ALM 11.00 - Add default value to test instance field

 

Hi everyone,

 

I need to set a default value for a custom field for test instances in a test set. This should be triggered when adding tests to a test set and only applied to the tests being added. I tried to search for an event procedure in the script editor but the closest one I found was "Function TestSet_CanAddTests (Tests_List)".

 

Doing a "msgbox actionName" in "actionCanExecute" the two events that appear when adding tests are "act_add_to_cover" and "TestLabTestsEntitiySelection.AddTestsToTestSet".

 

I tried entering this code in the "TestSet_CanAddTests (Tests_List)" but no luck.

 

For each test in Tests_List
    TestSetTest_Fields("TC_USER_01") = "abc"
Next

 

 

I found something in another post which involves the following code, but no results.

 

Dim CurrentTSTestSet
Set CurrentTSTestSet = QCUtil.CurrentTestSetTest
CurrentTSTestSet.Field("TC_USER_01") = "xyz"

 

See attachment for field in question. Thank you for your time.

 

Greetings.


Viewing all articles
Browse latest Browse all 5491

Trending Articles



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