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
Marsha_R
Champion Level 2

How are you starting the second application?  Are you using the TestedApps feature?

https://support.smartbear.com/testcomplete/docs/testing-with/tested-apps/running.html

mircea_florian
Occasional Contributor

The second application is started by the initial application. Practically the app calls for a data import to be performed by the 2nd app into a db from the 1st app.

So the second app starts up but then TestComplete isn't seeing it?

cunderw
Community Hero

My guess is that your second application is launched with some kind of dynamic identifier that Test Complete used to auto name map it. What does your name mapping look like compared to what you see in the object browser? 


Thanks,
Carson

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

Yes. And also the 1st app is waiting for the 2nd app to be done, before it can resume. 

mircea_florian
Occasional Contributor


@Marsha_R wrote:

So the second app starts up but then TestComplete isn't seeing it?



Yes. And also the 1st app is waiting for the 2nd app to be done, before it can resume. 

mircea_florian
Occasional Contributor


@cunderw wrote:

My guess is that your second application is launched with some kind of dynamic identifier that Test Complete used to auto name map it. What does your name mapping look like compared to what you see in the object browser? 


So they look the same 🙂 that's the strangest part. Also if I do a recording of the actions, all actions get identified correctly, but when I play it again, it doesn't run. It waits for the app2 window to appear in order to press the import button, but doesn't find it - and I can see it's there

There has to be something different then that is changing betwen your recording and the playback. The auto generate name mapping is a great start, but will never be 100% complete so to speak. Can you provide screen shots of the object it can't find in the object browser, and then the properties being used in the name mapping? I would bet money there is something different. 


Thanks,
Carson

Click the Accept as Solution button if my answer has helped

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.

cancel
Showing results for 
Search instead for 
Did you mean: