cancel
Showing results for 
Search instead for 
Did you mean: 

Error on trying to run property checkpoint on an object in kwtests

SOLVED
Highlighted
Frequent Contributor

Error on trying to run property checkpoint on an object in kwtests

Hi

 

I'm getting an error when a kwtest is checking a property of an object. The error is "You are trying to call the "cell" method or property of the following name mapping object:..." - see attached for full detail.

 

 

I've had a read of this link (https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/common-for-all/getund...)

 

....and have followed the detail in the remark etc but it's still not finding the object. As the article only gives detail on resolving in a script I've used my own knowledge and thinking on how to resolve in a kwtest. I've tried using Call Object Method to obtain the reference to the underlying test object - see attached for screenshot of how I've implemented it.

 

When I run the Call Object Method on that object (....tableGridswapsmasterDxmaintable.cell) I get "Invalid number of arguments" and the same detail in Additional Info. It's like I'm missing something...

 

 

What am I doing something wrong?

 

Any advice is much appreciated, thanks!

Jenny

3 REPLIES
Community Hero

Re: Error on trying to run property checkpoint on an object in kwtests

The error also says to use GetUnderlyingObject()

https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/common-for-all/getund...

 

Try that instead of Call Object.  You can run it in a kdt using Run Code Snippet.

Community Hero

Re: Error on trying to run property checkpoint on an object in kwtests

We've run into this problem.

 

Take a look at your mapping.  There is a mapped object of tableGridswapsmasterDxmaintable.cell.  This is intereferering with the Cell (note the case) method of the table object itself.  Rename the lowercase "cell" to something else and try again.  We usually name our individual cells (if we need to) using the row and column like cell12 for a cell with row 1 column 2.

 

This should resolve your problem.


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

Re: Error on trying to run property checkpoint on an object in kwtests

Thank you @tristaanogre!

 

I have resolved this issue now following your advice.

 

Thanks so much! Smiley Happy

Watch a new Video
Top Kudoed Authors