• 1 reply
  • Latest Post - ‏2013-09-09T19:57:28Z by Y5QY_gerben_delange
Pranav Prakash
Pranav Prakash
1 Post

Pinned topic How to capture child/indirect objects of Curam application using Rational Functional Tester?

‏2013-09-06T10:52:07Z | automation curam rft

We are trying to automate GUI for Curam Application through Rational Functional Tester 8.2.2. Curam application works on Internet Explorer 9. We are facing problems while capturing objects Manually. In the application we have a pane inside which there are few links which need to click to go further. But with Object Capturing Hand maximum object we are able to capture is that pane object, inside links are not recognized as object by hand. Even to call these inside links as child/descendant of root object we need properties of these objects. After capturing pane object we selected 'capture all sibling objects' option, but it is not giving required objects and whenever we select 3rd option 'capture all inside objects' RFT gets freeze. Also we tried to get properties from 'view source' option on the GUI page and tried to capture link objects but RFT is not recognizing them.
Also we tried to capture these link objects using Record and Playback option, but these objects are getting captured based on cursor position capturing coordinates on the screen. Link objects are not getting captured as Java objects through Record and Playback option also.
Can anybody please help us to capture child/indirect objects of Curam application using RFT?

  • Y5QY_gerben_delange
    34 Posts

    Re: How to capture child/indirect objects of Curam application using Rational Functional Tester?



    Have you tried the Test Object Inspector (Run -> Test Object Inspector) to find recognition properties for the links you want to click? 

    If that wont work you can try digging down the hierarchy manually from the pane object.. pain the the a** but could be your only option. Very ugly code I know..

    TestObject[] kids = paneObject().getChildren();


    for (int i = 0; i < kids.length; i++) {
    TestObject[] grandChildren = kids[i].getChildren();
    for (int j = 0; j < grandChildren.length; j++) {
    // and so on..



    I also suspect the links are so-called unmappable objects. You can find these using the overloaded 'find' method demonstrated below. 

    TestObject[] clickLink = getRootTestObject().find(
    atDescendant("firstProperty", "firstValue", "secondProperty",
    "secondValue"), false);

    (GuiTestObject) clickLink[0].click();


    good luck,