Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Using the same example above - your project has Full and BugFix modes.  You know (because you've run the Full mode enough times) that Full mode will run 469 actions, and that BugFix runs only 210 actions.  Your project will have some logic at the start which figures out if Full or BugFix is required, and using that same logic it can call the script function to set the Estimated progress total (in JavaScript): .

Code Block
languagejs
titleEstimated Progress Total (Javascript)
linenumberstrue
   if (FullBuild){
     SetEstimatedProgressTotal(469)
   } else {
     SetEstimatedProgressTotal(210)
   }

...