cancel
Showing results for 
Search instead for 
Did you mean: 

When testcomplete will auto refresh the test object?

Highlighted
Contributor

Re: When testcomplete will auto refresh the test object?

Back to my origin question,

   There are two windows, and they are the same wndclass : #32770 and I use this property for dlg's namemaping,

My case like it:

     Dlg.btnOK.Click   ' another window will appear

     Dlg.btnCancel.Click   'Cancel this window. But it will failed because it will show "btnCancel" is invisible. It still use last window structure.

      But if I use these script,

      Dlg.btnOK.Click

      Dlg.refresh

      Dlg.btnCancel.Click

 It will work normally.

But most when a dlg disappear and another dlg appear, i don't need refresh the window in script.

So my question is,

When and where i need use reresh? When and where TC will auto refresh the tested object?

There have a simple explain:

https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/common-for-all/refres...

I will add refresh method in my project now.

 

 

 

 

 

    

 

Highlighted
Community Leader

Re: When testcomplete will auto refresh the test object?

Then I don't know the answer to your questions.

 

Maybe someone else know the answer.

 

But I personally wouldn't base my scripts on automatic object refreshing by TestComplete engine. Robot wink

Highlighted
Contributor

Re: When testcomplete will auto refresh the test object?

Thanks! I will think out how to work in TC cases.

Highlighted
Community Manager

Re: When testcomplete will auto refresh the test object?

Hi @Bingo,

Did you come to some solution you can share with us?

 

 

---------
Tanya Gorbunova
SmartBear Community Manager

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!


Challenge Status

Compare images using the Region Checkpoint

See replies!

Converting UTC TimeDate in an Excel file

See replies!

Compare HTML table with Excel file and correct data in Excel file

Participate!

How to execute remote test and obtain results via Test Runner REST API

Participate!