02-22-2007, 06:38 PM
;;Configurations:
def num_of_tests 3
def result_filepath "c:\result.txt"
;;Declarations:
ARRAY(str) pass.create(num_of_tests)
str bin
int i
for(i 0 pass.len)
,pass[i] = "Not passed"
i = 0
;;Tests:
if(1=1) pass[i] = "Passed"
bin.from(bin "Test " i+1 ": " pass[i] "[]")
i = i + 1
if(1=0) pass[i] = "Passed"
bin.from(bin "Test " i+1 ": " pass[i] "[]")
i = i + 1
if(0=0) pass[i] = "Passed"
bin.from(bin "Test " i+1 ": " pass[i] "[]")
i = i + 1
;;Result OSD:
OnScreenDisplay bin 4 0 0 0 30 255 2
;;Result file:
bin.setfile(result_filepath)
EDIT: Better code and result file added.
EDIT2: Updated again
EDIT3: Code optimized