Forum Discussion

jromie's avatar
New Contributor
9 years ago

set StopOnError via script

I am trying to write a simple script that runs each time a project starts. It is to loop through the test items and shut off the StopOnError property.


Here is the code I have right now that doessn't work (JScript):


var i;

for(i = 0; i < Project.TestItems.ItemCount; i++) {

    Project.TestItems.TestItem(i).StopOnError = 0;



This throws and error: "Invalid number of arguments or invalid property assignment"

Is this specific task even possible?