DevOps Automation

 View Only
  • 1.  Combobox Control Access

    Rational Test- Rising Star
    Posted Thu November 03, 2022 11:30 AM
    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

    Rational Test- Active Member
    Posted Mon November 07, 2022 08:14 AM
    Hi, to clarify,  are you using testing with Rational Functional Tester or another Rational test tool?

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



  • 3.  RE: Combobox Control Access

    Rational Test- Rising Star
    Posted Mon November 07, 2022 09:01 AM
    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

    Posted Mon November 07, 2022 11:57 AM
    If you haven't already, please open a support case to report the documentation issue.

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