Ask a Question

member not found error is seen.

msap
Frequent Contributor

member not found error is seen.

any suggestions why I am getting this error:

 

Run the below script:

 

var flag = 0;
for(var i= 0;i<Grid.wRowCount;i++){
if(String(Grid.wValue(i,1))== "500322" && String(Grid.wValue(i,2))== "COUNTRY" && String(Grid.wValue(i,3))== "TEST" && String(Grid.wValue(i,4))== "Canada"){
Log.Message("Row exists");
flag = 1;
break;

20 REPLIES 20
msap
Frequent Contributor

hey martin

 

correct wValue is not a supported for this grid.

tristaanogre
Esteemed Contributor

That's could be why you're getting the "member not found" error.  

Double check... at the top of that screenshot you posted, there's a link to see the "Advanced" view of the grid.  If you click that, you'll get additional properties as well.  See if wValue shows up there.

If not, you may need to find other methods and/or properties on the grid to retrieve the data you want...

What type of grid control is this?  


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
msap
Frequent Contributor

I dont see wValue in advanced tab . its devexpress xtra grid control property.

 

msap
Frequent Contributor

What properties or methods can use to replace wValue? any ideas.

tristaanogre
Esteemed Contributor

That grid type SHOULD be supported and include wValue (https://support.smartbear.com/testcomplete/docs/reference/test-objects/controls/desktop/dev-express/... Why it's not showing up... not sure.

What version of DevExpress are you using?  That could be partly the issue.  Also, what version of TC are you using?

It also appears (based upon the wItemCount property) you may have added this grid to Object Mapping since that property is generating an error.  Could you make sure you don't have this grid added to Object Mapping somewhere in your project?  Double check that you have this grid in your object mapping in the proper place and don't have it added in some other section.

ObjectMappingDevExpress.png


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
msap
Frequent Contributor

Yes, I did add to the Object mapping. I removed this grid from the object mapping and was able to see the wvalue but wrowcount , find row are missing. In case I add this grid to the object mapping, I dont see the wvalue property but wrowcount property is seen..how can I fix this where I can see this, my script needs both wrowcount and wvalue.

I am using 12.50 testcomplete version.

 

var flag = 0;
for(var i= 0;i<Grid7.wRowCount;i++){
if((aqConvert.VarToStr(Grid7.wValue(i,1))== "500322") && (aqConvert.VarToStr(Grid7.wValue(i,2))== "COUNTRY") && (aqConvert.VarToStr(Grid7.wValue(i,3))== "TEST") && (aqConvert.VarToStr(Grid7.wValue(i,4))== "Canada")){
Log.Message("Row exists");
flag = 1;
break;
}
}
if(flag ==0){
Log.Message("Row does not exist");
}

 

tristaanogre
Esteemed Contributor

Again... what version of Dev Express?  TestComplete only supports, natively, up to a particular version so you could have a version problem where TC doesn't support your particular version of Dev Express.


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
msap
Frequent Contributor

we use 14.1.3.0 dev express Does test complete support it?

tristaanogre
Esteemed Contributor

Reposting.

https://support.smartbear.com/testcomplete/docs/reference/test-objects/controls/desktop/dev-express/...

 

 


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
msap
Frequent Contributor

version we use is supported, not sure why we see this issue?

cancel
Showing results for 
Search instead for 
Did you mean: