Search code examples
javarft

How to get value out of .getProperty('style")


.getProperty("style") outputs TestObject(Ref:RemoteProxyReference{testContext:af4e390002a336, objectId:3171, testObjectClass:TestObject})

while to[0].getProperties() outputs text hash where key "style" is presented {... , style=DISPLAY: none, oncontrolselect=null Object, rowSpan=1, .....}

How can I get the value of the property with key style?

here's sample of my code ...

TestObject[] to=null;
RegularExpression findRegExp1 = new RegularExpression(find_arguments[1], false) ;
RootTestObject root = getRootTestObject();
to = root.find(atDescendant(find_arguments[0],findRegExp1),false);

System.out.println(to[0].getProperty("style"));
System.out.println( to[0].getProperties()); 

Both methods are standard RFT methods. More info at IBM Rational Functional Tester API Reference


Solution

  • I opened a ticket with IBM support and this is the final answer:

    "I have done the test in your website and confirmed the getProperty("style") output. It was a bug and has been fixed in RFT8.2.1.1. I confirmed that the getProperty method in RFT 8.2.1.1 works well."