beautypg.com

9 vse verification, Vse verification – Teledyne LeCroy ST Automated Test Suite User Manual User Manual

Page 23

background image

23

4.9 VSE Verification

After a trace file is generated and its trace object is accessed, you can do VSE verification on that
trace file. Call the RunVerificationScript function, with parameter the VSE script, to verify the trace
file based and return the result of verification. The return value shows whether the result passes or
fails:

0 = FAIL
1 = PASS
2 = Done

Use the following code to run verification:


'--------- Open trace file ---------
Set SASTracer = MySASAutomation.OpenFile("C:\Cascading-3 Board.scs")
If Err.Number <> 0 Then

MySTATS.ReportError Err.number, Err.Description

Else

MySTATS.ReportText ("Sample file is opened")

End If

'--------- Run Verification with SASVS script ---------
VSEResult = SASTracer.RunVerificationScript ("C:\sample_ssp_protocol.sasvs")
If Err.Number <> 0 Then

MySTATS.ReportError Err.number, Err.Description

Else

MySTATS.ReportText ("Run Verification finished")

End If

'--------- Report result ---------
MySTATS.ReportText ("VSE Result - " & CSTR(VSEResult))
If VSEResult = 0 Then

MySTATS.ReportText ("VSE Result - FAILED")

End If

If VSEResult = 1 Then

MySTATS.ReportText ("VSE Result - PASSED")

End If

If VSEResult = 2 Then

MySTATS.ReportText ("VSE Result - DONE")

End If