| || |
Workflow to require a Test Set\'s test custom field
Does anyone have insight how I can require a field to be entered in the testset_tests when the test being added is a certain value?
Basically I want:
If TestSetTest_Fields("TC_TEST_ID").Value = "800" then
TestSetTest_Fields("TC_USER_01").IsRequired = True
what I can't figure out is where to place this code in the workflow.
Re: Workflow to require a Test Set\'s test custom field
Seems too complicated to be worth it. Think QC upgrades. If >1 tests are added in 1 go - the required fields prompt applies to all tests.
Setting required for all tests in moveto may work for adds right now but the tests added are not known at that time.
For interest, some <font class="small">Code:</font><hr /><pre>Function TestSet_CanAddTests(Tests)
TestSet_CanAddTests = DefaultRes
If Not AllowReentrancy Then
If CStr(Tests(0)) = "800" Then
AllowReentrancy = True
AllowReentrancy = False
TestSet_CanAddTests = False
If AllowReentrancy Then _
TestSetTest_Fields("TC_USER_01").IsRequired = True</pre><hr />