Ask a Question

Recording keyword test for the installation of an application

SOLVED
hiepwork08
Contributor

Recording keyword test for the installation of an application

Hi,

 

I am trying to record a test whereby the keyword test will automate the installation of a software application.

However, what I am observing is that the recorded test does not recognise the dialog popups during the installation process, hence the recorded test isnt able to replay the recorded test.

I would have thought the popup dialogs will be treated just as any dialog which TestComplete should recognise.

 

Cheers

1 ACCEPTED SOLUTION

Accepted Solutions
sonya_m
Community Manager

Re: Recording keyword test for the installation of an application

Hi @hiepwork08 , since none of the above pieces of advice helped, I think connecting support might be a good idea to investigate this deeper - https://support.smartbear.com/message/?prod=TestComplete

 


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

9 REPLIES 9
Marsha_R
Community Hero

Re: Recording keyword test for the installation of an application

Recorded tests frequently use screen coordinates to find objects rather than object names.  This is pretty fragile and will not always create a repeatable test.  Check your recorded test to see if it's doing that, and if so, the recommended fix is to change those test items to find the object by name or some other property rather than using coordinates.

Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
hiepwork08
Contributor

Re: Recording keyword test for the installation of an application

The thing is Testcomplete isnt capturing any of the screens clicked on during the installation, all it captures is the Run TestedApp, and this is when installer executable (.exe) is clicked on. After this despite the user clicking on multiple installation related popup dialogs they are not recorded by TestComplete.

Marsha_R
Community Hero

Re: Recording keyword test for the installation of an application

A screenshot of your recorded test would be helpful.  Also a screenshot of the extended version of the object spy for that dialog box.

Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
hiepwork08
Contributor

Re: Recording keyword test for the installation of an application

Unfortunately I cannot post screenshots. The object for the dialog does exist in the object explorer.

Marsha_R
Community Hero

Re: Recording keyword test for the installation of an application

Have you tried name mapping the dialog boxes manually?

Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
hkim5
Staff

Re: Recording keyword test for the installation of an application

I am guessing that enabling MSAA properties may help identify these (windows) dialogues appearing from the software installation process. 

also, configuring the testcomplete playback behavior upon unexpected windows may be required, since apart from humans, who can really expect download dialogues to pop up (get rid of checkboxes for press esc, close command, etc.)

https://support.smartbear.com/testcomplete/docs/working-with/managing-projects/properties/open-apps/...

https://support.smartbear.com/testcomplete/docs/testing-with/running/handling-errors/unexpected-wind...

Best,
Justin Kim
sonya_m
Community Manager

Re: Recording keyword test for the installation of an application

Thanks a lot Marsha and Justin.

 

Hi @hiepwork08! Were you able to create reliable tests using the suggested approaches?


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
hiepwork08
Contributor

Re: Recording keyword test for the installation of an application

Still haven't found a reliable solution to the problem.

One think to note is that the recorded test was done from a remote desktop session.

Although recording from other types of applications via remote desktop did not have the same issue.

 

Cheers

sonya_m
Community Manager

Re: Recording keyword test for the installation of an application

Hi @hiepwork08 , since none of the above pieces of advice helped, I think connecting support might be a good idea to investigate this deeper - https://support.smartbear.com/message/?prod=TestComplete

 


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

cancel
Showing results for 
Search instead for 
Did you mean: