Executing Tasks

Paul J.
Thousand Oaks, CA

Jun 16, 2015
16 Posts

0  |  0  

Re: Executing Tasks

Hi,
      I don't want the user to be able to remove tests from a task so I want to execute complete tasks. Using TestExec I cant' stop the user from de-selecting tests so I am writing my own Test Executive that lists only Tasks to execute. It's based it on the TestExecMini example. When the Task is selected and the cbTask button is pressed, I can get the task but how do I execute all of the tests in the task?

So far I have this, will this work? Will the For loop wait till the test is executed?...or should each test call the next one?

iTask = itemData
tsk = prg.Tests(iTask)
for ITest = 0 to tsk.TestsCount-1
        tst=tsk.Tests(iTest)
       Task iTask+1  ITest+1
next

Thanks,
Paul

DrATEasy (Ron Y.)
Mission Viejo, CA

Jun 16, 2015
368 Posts

0  |  0  

Re: Executing Tasks

This code will not work since the task statement does not return after executing the task/test. You will need to cjheck the next test in an event such OnEnd Test or better use the option described here.

You need to use the TestExe option to prevent the user from selecting or un-checking tests. The option is called: "Run Selection Level ". You can get to the option from The test EXecutive Tools menu, Customize, Options. Set the option to None, to prevent users from checking/unchecking tests.

Ronnie

Paul J.
Thousand Oaks, CA

Jun 16, 2015
16 Posts

0  |  0  

Re: Executing Tasks

Perfect!
Thank You for your help!!



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]