Test/test003.ps1

12345678910111213141516171819202122232425262728293031323334

BEGIN{# the definition of Out-TestLog../Common.ps1$TESTNAME=$MyInvocation.MyCommand$STARTTIME=[datetime]::Now}END{try{$a=get-scsmRuleforeach($rulein$a){$b=[smlets.workflowhelper]::GetJobStatus($rule)# once we have a winner, don't continueif($b){if($b[0]-ne$null){Out-TestLog("PASS:"+[datetime]::now+":${TESTNAME}")return0}}}}catch{Out-TestLog("FAIL:"+[datetime]::now+":${TESTNAME}")Out-TestLog(" DETAILS: "+$error[0])return1}}