Ask a Question

TestComplete recording incorrect button

SOLVED
mbarbworldtrips
Contributor

TestComplete recording incorrect button

I have recorded successfully 153 other tests on a software. The next few tests, I record the same way as before, except TestComplete plays back the wrong button even though the visualizer displays correctly. Instead of enacting the Next Step function, it enacts the Previous Step button. Visualizer and script do not match.

15 REPLIES 15
Marsha_R
Community Hero

What version of TestComplete are you running?  Did you upgrade it recently?

 

Did your application under test change lately?

 

Do your older tests still run the way they did before?


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

I'm running version Version: 15.40.421.7 x64.

There have been no changes in the code for the software I am testing.

Older tests still run as before with no problem.

Sorry, clicked the wrong button, I know you don't have a solution yet!

 

Are you clicking the button by coordinates or by object name?


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

I hope this helps to further explain the situation.

I am clicking buttons most likely by object name, the same as I have done on the other 153 tests on this specific software. I used object spy on the particular field in question.

 

mbarbworldtrips_0-1655920749795.png

 

The specific button is the "Next Step" button on the bottom right. That is where I positioned the object spy.

What happens is one of the following:

1.  If no other travelers are listed, then playback clicks the "Previous Step".

2.  If Traveler 2 Information has been added, the playback clicks "-Remove Traveler"

Both scenarios record a failure.

 

mbarbworldtrips_1-1655921083182.png

 

It's frustrating when you hit a roadblock like this after so many tests work, but it happens to all of us at one time or another!  Congrats on getting to 153!

 

Let's see the object spy results for all three of the buttons please.

 

 


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

The object spy captures seem to be generic and the same.

 

mbarbworldtrips_0-1655926660204.png

 

Here's an example of one prior to this one that recorded the specific name of the button correctly.

It is difficult to understand why it records the correct button name on previous recordings, but here it does not. I am now having the similar problem on another product where I select a "No" radio button, but SmartBear records and plays back the "Yes" button. Frustrating.

 

mbarbworldtrips_1-1655926752658.png

 

So, if I should feel lucky that I got 153 tests on a single software recorded, should I be equally satisfied that I have a total of 162 across 8 other software products? Is there a limit to the amount of recording I can do?

 

 

There is not a limit of tests. The number of tests you do has no effect on when you might need help getting one to work, that's all.

 

Do you have any previous test where these specific buttons were working?

 

For Object Spy, I was looking for the results on this screen on the three buttons 

Marsha_R_0-1655928194598.png

 

 

 


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

Glad to hear there are no limits.

Yes, I have 153 previous tests on this same software where everything is working.

Is there possibly another Property that should be enabled or disabled in the Object Spy? See the last one for Next Step Button. Some aspects are called 'Button", some are called "Next Step".

 

For the Remove Traveler button

mbarbworldtrips_0-1655988359253.png

For the Previous Step button

mbarbworldtrips_1-1655988442360.png

For the Next Step button

mbarbworldtrips_3-1655988794863.png

 

 

 

Is this the first time you are using these three buttons in a test?

 

It looks like you are using Property Checkpoint in the screenshots?  Here's what I meant by Object Spy

Marsha_R_0-1655995467870.png

 


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
cancel
Showing results for 
Search instead for 
Did you mean: