Ask a Question

Test Complete: Switch to a different application

SOLVED
mircea_florian
Occasional Contributor

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, 

17 REPLIES 17
mircea_florian
Occasional Contributor


@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()

 

mircea_florian
Occasional Contributor

here you are

What about the root app2 object and it's mapping?


Thanks,
Carson

Click the Accept as Solution button if my answer has helped
mircea_florian
Occasional Contributor

Hello. The SetFocus() doesn't do anything - meaning that it doesn't help. The 2nd app still cannot be found by testcomplete. 

mircea_florian
Occasional Contributor

 

I suggest that you contact Support directly about this issue.  Here's the link:

https://support.smartbear.com/message/?prod=TestComplete

mircea_florian
Occasional Contributor

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. 

cancel
Showing results for 
Search instead for 
Did you mean: