Rational Test

 View Only
  • 1.  Combobox Control Access

    Posted 28 days ago
    I have a Visual Basic application under test that has several dropdown lists Implemented as combobox crontrols.  I need to find a way to access the dropdown control so my script can open the list so I can use the .click(atText(dpString("FIELD_NAME")) to select the desired item form the list.  I am trying to avoid using the .click(Point pt) command so it will work on any work station.

    Thanks

    ------------------------------
    Thomas Taylor
    Information Specialist
    Internal Revenue Service
    Grand Junction CO
    970-2543420
    ------------------------------


  • 2.  RE: Combobox Control Access

    InnerCircle
    Posted 24 days ago
    Hi, to clarify,  are you using testing with Rational Functional Tester or another Rational test tool?

    ------------------------------
    Paul Liskay
    ------------------------------



  • 3.  RE: Combobox Control Access

    Posted 24 days ago
    Hi Paul:  Rational Functional Tester.  I think I stumbled on to the solution by accident.  I added the actual list objects to the Object Map using the Test Object Browser function.  I found the actual list objects associated with the Combo boxes only by taking a deep dive into the object map.  My solution:

    damBreedComboBoxcomboBox().waitForExistence();
    damBreedComboBoxcomboBbox().click();
    damBreedComboBoxcomboBox().setText(dpString("DAM_BREED");
    dambreedlist.click(attext(dpString("DAM_BREED")));

    I had to use the setText command in the ComboBox so the valid entry would show up in the list object, the list of dog breeds was pretty long.  Without the setText statement the click(stText() command could not find breed names near the end of the list.  This is a very common control, and I was surprised that there wasn't a discussion and example in either the online documentation or my "Software Test Engineering.." book.

    Maybe this can be added the next time the online documentation is updated.

    ------------------------------
    Thomas Taylor
    Information Specialist
    Internal Revenue Service
    Grand Junction CO
    970-2543420
    ------------------------------



  • 4.  RE: Combobox Control Access

    InnerCircle
    Posted 24 days ago
    If you haven't already, please open a support case to report the documentation issue.

    ------------------------------
    Arllen Acevedo
    ------------------------------