When testcomplete will auto refresh the test object?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When testcomplete will auto refresh the test object?
When I use testcompete 12 to test desktop App, sometimes it need me refresh the object and it can still run the next script. Sometimes it don't need me to refresh. So my question is when testcomplete will auto refresh the test object? Trigger the click event? Add checkpoint ... The help doc of refresh method can't give me this answer. So I ask for your help. Thanks!
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
I will add refresh method in my project now.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks! I will think out how to work in TC cases.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Bingo,
Did you come to some solution you can share with us?
Tanya Yatskovskaya
SmartBear Community and Education Manager

- « Previous
-
- 1
- 2
- Next »
- « Previous
-
- 1
- 2
- Next »