| || |
workflow script error
what am I doing wrong?
I want to be able to make it mandatory that if a generic user runs a test, they are required to enter their name. Otherwise, the name of the person that runs the test is the fullname derived from the log on.
This is the code - it doesn't make "Tester Name" required, but does enter the user.fullname.
On Error Resume Next
If Run_Fields("RN_TESTER_NAME").Value = "Tester 1" then
Run_Fields("RN_USER_01").isrequired = true
else Run_Fields("RN_USER_01").Value = User.FullName
On Error GoTo 0
Re: workflow script error
my fault - the value was "tester1" d'oh!
however - another thing i'm attempting is that when run has completed, the RUN_USER_01 value is populated to a test in test set field called TC_USER_01
so the code is
TestSetTest_Fields("TC_USER_01").value = Run_Fields("RN_USER_01").Value
But this doesn't seem to work - do I need to enter that bit of code in another action somewhere?