Ask a Question

mapping and recognition of objects includes the browser name

SOLVED
CSmirl
Contributor

mapping and recognition of objects includes the browser name

I'm trying out TestComplete and probably having a project setting issue I can't fix.  When recording the alias and recognition of my objects includes the browser name.  It doesn't seem to be following the current browser concept.  The keyword step doesn't show a generic browser (globe) symbol but shows the icon for the browser it was recorded in.  Also, the Browser loop will fail out at the newly added browser on the first object it tries to interact with in the new browser.

 

7 REPLIES 7
CSmirl
Contributor

MappedObjects.PNG

The actual browsers are listed under Sys intstead of a generic browser.

tristaanogre
Esteemed Contributor

Browsers WILL show up under Sys.... but what it looks like is that, when they were mapped, they were mapped specifically for the indicated browser.

In my NAmeMapping, I have Sys.browser and browser is mapped simply with one property of ObjectType of "browser". Then everything is put under taht fr pages, etc.


Robert Martin
[Hall of Fame]
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
Vegas Thrill Rider
Extensions available

What you described is supposed to be the default behavior for mapping but that is not the case in my TestComplete.  I need it to default to sys -> browser but can't find the settings.

Thanks,

Chris

tristaanogre
Esteemed Contributor

Did someone manually map those browsers?  If that's the case, then everytime you record, it will use what's already mapped.

What you can do is manually map the generic browser object and then click-drag all your pages and such to that generic object.

 

I just tried it in TC 14.0 and it mapped correcly as a generic browser.


Robert Martin
[Hall of Fame]
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
Vegas Thrill Rider
Extensions available

Think I figured it out.  That was the first project I started up.  Then I unchecked the legacy settings per instruction in the project properties.

Long story short: I started a new project which had the correct project settings from the beginning.  Now it works!

tristaanogre
Esteemed Contributor

Ah.  That would do it.   Yeah.... gotta watch out for that.  Good to know you fixed it.


Robert Martin
[Hall of Fame]
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
Vegas Thrill Rider
Extensions available

Thanks for your help!  You cofirmed what I was looking for.  Kind of curious the "legacy" setting is checked as a default.  Anyway,  lesson learned.

Chris

cancel
Showing results for 
Search instead for 
Did you mean: