Announcement

Collapse
No announcement yet.

Scripting question about SETPOSTTEST

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Scripting question about SETPOSTTEST

    Hi,
    i have a question, i do in my scripting file like somtihing this below. So if the last test failed it shows the failed window if a test failed bevor the batch is executed. why? and how can i do it so stop testing if 1 test failed and show the failed window?


    Code:
    SETPOSTTEST AUTO_STOP_P runapp MAN_STOP_P normal RESULT_P no RUN_P "c:\dosomething.bat"
    
    LOG "Running Parallel for 1 minute"
    SETDURATION 1
    SETCYCLES 0
    SETDUTYCYCLE PARALLEL 100
    RUN PARALLEL
    LOG "Running Serial for 1 minute"
    SETDURATION 1
    SETCYCLES 0
    SETDUTYCYCLE SERIAL 100
    RUN SERIAL
    LOG "Running USB for 1 minute"
    SETDURATION 1
    SETCYCLES 0
    SETDUTYCYCLE USB 100
    RUN USB

  • #2
    So if the last test failed it shows the failed window if a test failed bevor the batch is executed. why?
    I don't fully understand what you are asking, but I assume that you need to set the Post Test Fail actions (e.g. AUTO_STOP_F) to take different action on failure, as your script is only setting the Post Test Pass actions.

    how can i do it so stop testing if 1 test failed and show the failed window?
    Add this to your script before running any tests:
    SETPOSTTEST RESULT_F YES
    SETERRORS ACTION STOP

    Comment

    Working...
    X