Forum Discussion

mustafayol's avatar
mustafayol
Contributor
3 years ago

same kind of event handlers for different events

Hi,  Here is the imaginary scenario that resembles the issue that I have in a simpler explanation. 1) I created a desktop test, it has Test1, Test2 and Test3. Each test case handles different tasks...
  • Marsha_R's avatar
    3 years ago

    Since it's all the same response, I would use one event handler for all three.  I think that will get you one response per test and only from the tests that are running.

     

    I don't believe that TestComplete understands that you mean those three event handlers to line up with the tests.  It is just seeing an unexpected window and oh look here are the events I need to do when that happens and you get three messages no matter what.

  • sonya_m's avatar
    sonya_m
    3 years ago

    Thank you, Marsha!

    Hi mustafayol, does this help?