iamraj09's avatar
iamraj09
Contributor
8 years ago
Status:
New Idea

New feature to control the execution of Test Items from Scripts (during Test execution)

Hello Team TestComplete,

 

It would be great if there is an in built feature to control the execution of Test Items from Scripts i.e., to skip to a required Test Item using Timeout event, if the Test Item hangs for some reasons or issues in the background. 

 

Ex:  Project.TestItems.TestItem(i).Run(); or Project.TestItems.TestItem(i).Start();

 

Best Regards

Guru.

3 Comments

  • NisHera's avatar
    NisHera
    Valued Contributor

    Hi,

    Haven't you try with runner object? it has methods to start and stop tests.

     If your AUT hangs can use...

    Sys.Process("Application").Terminate()
  • NisHera's avatar
    NisHera
    Valued Contributor

    Hi,

    Haven't you try with runner object? it has methods to start and stop tests.

     If your AUT hangs can use...

    Sys.Process("Application").Terminate()

     if your all system stuck you can use..

    Sys.Shutdown()

    even you can restart your machine using restart method in sys object

     

    If a window or application object seems too hung up ....you can use a waiting loop until it activate and continue .

    depending on your situation there are many ways to handle that.

     

    If explain what's your situation we can help.

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    An alternative is, rather than using TestItems to run the different parts of your tests, build your own execution harness in code to add your conditional logic.