cancel
Showing results for 
Search instead for 
Did you mean: 

Name mapping

SOLVED
Contributor

Name mapping

I have two variables that are in the same area in a dashboard and when I look at their name mapping they both get the exact same name mapping exept that one is QtIndex 1 and the other is QtIndex 2. How can I say give me the data for the individual indexes? Whenever I use text or QtText it only ever gives me the value for one of the variables. I am using Javascript. 

 

I want to do something like but this doesn't work

 

var1 = someNameMapping

var2 = exact same name mapping as var1

 

BuiltIn.ShowMessage(var1.QtIndex("1").QtText)

BuiltIn.ShowMessage(var2.QtIndex("2").QtText)

 

2 REPLIES
Contributor

Re: Name mapping

So what I had to do was go into namemapping and create a spicific Alias name mapping for that object 

Highlighted
Community Hero

Re: Name mapping

Yup.  You need to make sure you uniquely identify the objects.  What it sounds like is that your mapping for the first object may not be specific enough.  That's why both were being seen as the same one.


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.


I’ll be talking about “Hidden Treasures – TestComplete Script Extensions” at #SBConnect in October! Who’s joining me? Click here for tickets
Extensions available
Share Your Stories
Read Latest News
Top Kudoed Authors