Forum Discussion

tnguyen1's avatar
tnguyen1
Occasional Contributor
9 years ago
Solved

Are there tutorials on how the If Then operation works in keyword tests

Hi,

 

I'm fairly new with TestComplete and would like to see an example of how the If Then operation works.  The support article did not help with what I'm trying to do.  I can't find videos on this topic either so I'm guessing there isn't one.

 

What I'm trying to accomplish is this:

 

If there is a pop up message, then run the child operation. Else, move to the next operation.  I've attached an image of my keyword test.

 

Thank you!

  • Try an If Object Statement from the test actions category.

    If Object Popup Exists

      Do thing. 

     

2 Replies

  • cunderw's avatar
    cunderw
    Community Hero

    Try an If Object Statement from the test actions category.

    If Object Popup Exists

      Do thing. 

     

    • tnguyen1's avatar
      tnguyen1
      Occasional Contributor

      Thanks!  I got it figured out now, I was missing the 'Exists' function at the end of my value.