Forum Discussion

cunderw's avatar
cunderw
Community Hero
8 years ago

Re: Unable to run a test script that contains more than one test.

As far as I know you cannot and have never been able to run an entire script unit in Test complete, just individual functions / routines. Are you sure that each test inside the unit was not originally added as individual test items or that they weren't called by each other in the unit? 

 

Are you using any kind of version control system? If so I would revert back to a commit where it was working and compare the difference to what it is currently. 

10 Replies

  • steve_clarke's avatar
    steve_clarke
    Contributor

    Hi cunderw,

     

    "As far as I know you cannot and have never been able to run an entire script unit in Test complete, just individual functions / routines."...seriously?

     

    Perhaps it wasn't clear, what I said before, I'll try to elaborate:

    I have a Project Suite. The Suite contains 4 Projects. Each of the 4 Projects contains a number of scripts that, in turn, contain tests. Some of the scripts contain more than one test.

    The tests can be run individually, by Project or altogether from Project Suite level. It has been this way since we first starting using Test Complete in 2013.

    It remained so until the new version when, for whatever reason, the scripts that had more than one test didn't run fully. Only the first test in those particular scripts was run.

    Now, I know I can get around this, what I was trying to find out is why this sudden change and what caused it.

     

    Cheers,

    Steve.

     

    • cunderw's avatar
      cunderw
      Community Hero

      Right that's what I'm saying, when you add something from a script unit to your project's test items, you have to specify the test/function/routine that you want to run from the unit. It does not and never has (as far as I know) just ran the entire unit without  adding each test/function/routine as a test item. Maybe if you could provide a screenshot?

       

      Also, like I said before I would revert your assets in source control back to a time when you know for sure it worked and see if there are any differences. 

      • steve_clarke's avatar
        steve_clarke
        Contributor

        Hi Cunderw,

         

        I haven't added anything to the scripts, they were created and have run, successfully, as detailed above, no issues.

        They are as they have always been.

         

        The differences are, that the current version does not succeed in running the scripts in the order stated as all previous versions have done, without fail.

        All I'm trying to find out is what has changed in this version, compared to the previous version I've successfully run with these scripts, that causes this sudden failure.

         

        Cheers,

        Steve.