Error on trying to run property checkpoint on an object in kwtests
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The error also says to use GetUnderlyingObject()
Try that instead of Call Object. You can run it in a kdt using Run Code Snippet.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
[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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
