This week's giveaway is in the Java/Jakarta EE forum.
We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line!
See welcome thread
Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

getMapableChildren undefined in Java (method/package)  RSS feed

Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could someone help me? I am fairly new to Java and I'm having problems identifying the right package to use for the below code. Or maybe there is something else wrong with my code. Any help would be appreciated! I apologize if this is a more advanced topic - I felt it was a basic question and that is why I'm posting here.

Here is what I'm trying to do.

I have a XDE script (that is Java code). This script checks various things on a report. In my script, I need to read a list of report names (from a web page/Table), iterate through to find Revenue per Day reports and then pass in one report name to my script and then run the script. I then need to rerun the script for each revenue Per Day report found.

My code is telling me that getMapableChildren is "undefined for the type -com.rational.test.ft.object.interfaces.StatelessGuiSubItemTestObject".

import com.rational.test.ft.*;
import com.rational.test.ft.object.interfaces.*;
import com.rational.test.ft.script.*;
import com.rational.test.ft.value.*;
import com.rational.test.ft.vp.*;
import com.rational.test.ft.vp.impl.TestDataText;
import com.rational.test.ft.object.*

Object children;
children = Table_HtmlTable_0_4().getMapableChildren();

for (int i=0; i < children; ++i);
linktext = (children.getProperty(".text"));
if (linktext.IndexOf("Revenue Per Day") > 0)
else {
System.out.println("Can't find any Revenue Per Day reports to open.");
author and iconoclast
Posts: 24217
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From the error message, we can infer that the function "Table_HtmlTable_0_4()" returns an object of type StatelessGuiSubItemTestObject . Do you have documentation for this class that suggests it should have a method named "getMappableChildren()?" Of course, the immediate problem is that it doesn't; if we can figure out why you think it should be there, then maybe we can figure out where this method is actually defined.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!