How can I evaluate two test result in the same test

Anthony B.
Baltimore, MD

Sep 12, 2011
6 Posts

0  |  0  

Re: How can I evaluate two test result in the same test

I am trying to evaluate two TestResult the same test. Ateasy only evaluate the last TestResult.




TestResult=4.1

TestResult=4.0

Solution Available
DrATEasy (Ron Y.)
Mission Viejo, CA

Sep 12, 2011
358 Posts

1  |  0  

Re: How can I evaluate two test result in the same test

TestResult=4.1
GetLogString(aLogStringCalcTestStatus)

if TestStatus=PASS ! in this example if failed don't need to evaluate the second, You can change to =FAIL depends on the logic you need
    TestResult=4.0
endif

if you also need to print test results to the log you can add print before the GetLogString() call.

There is also another way if you want just to repeat the test. See TestExec.prj - when you run the SelfTest.prg (test 1.1 DMM) it will repeat the test several times and displays in the test log test # column .1/ .2 etc for each repeat. This example in v8.



Please Note
You need to have a M@GIC account to participate in the Forums.
Not yet registered on our website? Click here to register today!

All content, information and opinions presented on the Marvin Test Solutions User Forums are those of the authors of the posts and messages and not Marvin Test Solutions'. All attachments and files are downloaded at your own risk. [Read More]