cancel
Showing results for 
Search instead for 
Did you mean: 

ComboBox item selected ok but get an error anyway

SOLVED
Occasional Contributor

ComboBox item selected ok but get an error anyway

Hello I have recorded the steps of a test that should do a select value of 4 different fields.   Here is a snaphot of the application. 2019-04-24_10-04-33.jpg

 

Here is what the TestComplete version 14 recorded in the steps.  TestComplete does not recognize the fields as object but more as images.  

2019-04-24_10-09-13.jpg

 

Here is what the log is showing after i have tried to run the test : 

2019-04-24_10-38-49.jpg

1 ACCEPTED SOLUTION

Accepted Solutions
Community Hero

Re: ComboBox item selected ok but get an error anyway

Also, evaluate your usage of the "Extended Find" option.  This is on by default when you install TC.  WIth it checked, it does a search on the mapping try.  

https://support.smartbear.com/testcomplete/docs/reference/options/engines/name-mapping.html?q=extend...

 

My recommendation: turn the option off.  And then work on remapping what was automatically mapped.  Basically, the more layers in the tree that Extended Find "collapses", the longer the search for the object takes.

I'd also suggest turning off "Search visible items first".  This will speed up the search, with that option on, it searches visible items... and then searches the rest of the tree.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
8 REPLIES 8
Super Contributor

Re: ComboBox item selected ok but get an error anyway

The screen shot you show seems to indcate that the objects captured during recording WERE images. Take a look at the name mapping for those objects to see what is being clicked. You likely will have to find the actual combobox object to use in your test.

Community Hero

Re: ComboBox item selected ok but get an error anyway

Also, evaluate your usage of the "Extended Find" option.  This is on by default when you install TC.  WIth it checked, it does a search on the mapping try.  

https://support.smartbear.com/testcomplete/docs/reference/options/engines/name-mapping.html?q=extend...

 

My recommendation: turn the option off.  And then work on remapping what was automatically mapped.  Basically, the more layers in the tree that Extended Find "collapses", the longer the search for the object takes.

I'd also suggest turning off "Search visible items first".  This will speed up the search, with that option on, it searches visible items... and then searches the rest of the tree.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
Occasional Contributor

Re: ComboBox item selected ok but get an error anyway

I have modified the settings and tried to record a new test. Here's a snapshot of my current settings. 

2019-04-24_11-55-20.jpg

But still ended up with this after I record the test.  

2019-04-24_13-27-56.jpg

Community Hero

Re: ComboBox item selected ok but get an error anyway

Because the items were already mapped, you will need to go into the NameMapping itself and make the necessary adjustments.  To be honest, if you don't have a lot of time invested in your project, I would delete the existing mappings and start over with the new settings.

 

Just a note... and this is something you will find in multiple post up here.  Recording tests is a good starting point but, by no means, should they be your end product.  After recording, you should review, manually, any mappigns created and adjust them for using proper property criteria for identification.   You should also work on your actual coding and work through it.

It IS entirely possible that the objects you click on ARE actually images... it depends upon how the object is identified by TestComplete.  AGain, reviewing your namemapping will help.

 

you need to, also, familiarize yourself with the Object Browser and the Object Spy.  These, combined with NameMapping, are the core of the object identification algorithms of TestComplete.  THis is how TestComplete views the objects of your application.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
Highlighted
Super Contributor

Re: ComboBox item selected ok but get an error anyway

Perhaps to Robert's point, I will give you an example from my application under test. When I go to map buttons (which I do manually. I do not care for recording as I feel the default mappings often obfuscate what I am trying to do) the object that the pointer glyph (is that the right term?) finds is a textnode. But when I get into the tree, the parent object of the textnode is the button I desire. If I click on the textnode, the application responds with nothing. But when I map the button (parent to the textnode) I get the click event that I am looking for.

 

Hope this helps.

Community Manager

Re: ComboBox item selected ok but get an error anyway

Thanks for your help, tristaanogre, vthomeschoolmom.

@lbouchar, did you find the solution to the issue? If you did, please mark the best answer as a solution.

---------
Tanya Gorbunova
SmartBear Community Manager

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

Re: ComboBox item selected ok but get an error anyway

Unfortunately, I am very new at this.  I have no previous experience of any testing software.   And I am not a programmer therefore, playing with name mapping is not easily done on my part.  

Community Hero

Re: ComboBox item selected ok but get an error anyway

NameMapping is not a programming function.

Start with this.

https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/abou...


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
New Here?
Join us and watch the welcome video:
Top Kudoed Authors