Test Complete: Switch to a different application
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Test Complete: Switch to a different application
Hello guys,
I have an application which starts another different application and I have issues in switching to the new one.
The record identifies all steps, but when I play it back, it doesn't recognize the second application.
Could someone help me ?
Thanks,
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Marsha_R wrote:
Let's see the name mapping for where you are in App 1 when you want to go to App 2 and also what you want to click in App 2.
Last action from app1:
Aliases.app1.fmDBman.InhaltPanel.ObjectList.TOutlookGroupedList.Drag(5, objectYpos, dbPoint.X, dbPoint.Y-100)
Then I am waiting for the app2 window to show up
Aliases.app2.WaitAliasChild("fmImportTSX", 180000)
and then clicking on import button
Delay(1000)
Aliases.app2.fmImportTSX.bnImport.ClickButton()
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Perhaps you need to SetFocus on App2 before you can proceed
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What about the root app2 object and it's mapping?
Thanks,
Carson
Click the Accept as Solution button if my answer has helped
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello. The SetFocus() doesn't do anything - meaning that it doesn't help. The 2nd app still cannot be found by testcomplete.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I suggest that you contact Support directly about this issue. Here's the link:
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I contacted Support and they suggested I should use the WaitProcess Method and Checking Whether an Object Exists instead of the SetFocus method. The WaitProcess method worked perfectly. Thanks.

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