Forum Discussion
> The same test works fine in TestComplete.
I assume you mean that there is no difference between TestComplete and TestExecute on the same machine.
> The same test (using TestExecute) are launched on the different machines. There are not the same error, but it is the same type : the DELPHI object is not present, but it is displayed on screen.
What are the different errors? Pictures help.
You say the problem is aleatory (good word!). In what way? Does the problem sometimes appear and other times not appear? Or does is always appear but show different errors?
What application are you testing? How is it built?
It seems that there is a problem of TestComplete/TestExecute cache. So, some objets are not present, because no refresh is done.
What is the code in JSscript to refresh TestComplete/TestExecute cache?
- Colin_McCrae9 years agoCommunity Hero
- ChrisPro9 years agoContributor
Thanks.
1/
I do :
Sys.WaitProcess("MyProcess", 1000, MyIndex).Refresh
It works better, but there is again problem sometimes.
Is it better to do :
Sys.Refresh()
?
2/
In list of objet, there are :
Sys.Process("MyProcess").Window("TfrmMain", "***", 1)
instead of :
Sys.Process("MyProcess").VCLObject("frmMain")
Why the difference?
- Colin_McCrae9 years agoCommunity Hero
Not sure.
I tend to use the generic sys.refresh as it doesn't seem to come with any discernable overhead.
I notice you're using a Delphi application? I'm working on Delphi stuff at the moment and I'm finding that a lot of it is data driven and takes a second or two to retreive, populate, and render (especially grids, trees and popup menus). You may need to use some helper functions that loop over the object checking for population or something along those lines?
Related Content
- 4 years agoMadGrb
Recent Discussions
- 5 minutes agosimonaferrara
- 11 minutes agoSubhraDas