Forum Discussion

stevem222's avatar
stevem222
Occasional Contributor
13 years ago

Project runs

I am using TestComplete 8.6 on an XP box. I have a project
suite that contains 10 projects. I have each project set to run 10
times each. Each script is set in a try/catch/finally set, where the
finally cleans and closes down if an error happens. Here is my issue, I
ran the suite, and one of the projects experienced a "can't find object
error" on the 6th run. It completed the steps, however, it did not go on
to run iterations 7,8,9, and 10. It went on to the next project. Is
there a setting in the configuration to tell it to run all 10 counts,
regardless of errors?

4 Replies

  • stevem222's avatar
    stevem222
    Occasional Contributor
    Nope. If it experiences an error, it actually keeps executing the test, and on completion of the script, moves on to the next project instead of re-running the script.
  • stevem222's avatar
    stevem222
    Occasional Contributor
    Ah, there are hidden fields. Here is what I found.




    The Stop on error and Stop on exception properties can be set to one of the following values:




    • None - If this value is selected and an error or an exception
      occurs during the test item run, TestComplete proceeds with the
      project’s test items execution as if no error or exception has occurred.


    • Project - If this value is selected and an error or an exception
      occurs during the test item run, TestComplete stops execution of the
      whole project.


    • Test Item - (Default) If this value is selected and an error or
      an exception has occurred during the test item run, TestComplete
      continues execution of the current iteration of the test item (if
      possible) but cancels execution of the test item’s further iterations
      and child test items and proceeds with execution of subsequent sibling
      items.







      Note: The total number of test item iterations is specified by the Count column of the Test Items page.



    Remarks

    By default, the
    Stop on error and Stop on exception columns are hidden on the Test Items page. To make these columns visible, right-click within the Test Items page and choose
    Field Chooser from the ensuing
    context menu - the Customization dialog will appear. Using this dialog,
    you can hide or show additional columns of the Test Items page. So, to
    show a column, drag its name from the Customization dialog to the Test
    Items page. After that, you can change the property's value. To do this,
    click the down arrow in the corresponding Stop on error
    or Stop on exception
    cell and select the desired property value from the ensuing drop-down list.