Forum Discussion

Daniellovesmith's avatar
Daniellovesmith
Contributor
7 years ago

Unable to perform Data driven testing with Drop down list?

Please tell the process how to do Data driven testing with drop down list. I tried with sample application ORDERS.EXE by test complete but taking only first value from the list(My Money always) and my test case fails.Please find the attached screenshot. 

  • baxatob's avatar
    baxatob
    7 years ago

    Log data says, that you tried to click on item named "My Money", however actual item name is "MyMoney" (without space). The same issue for "FamilyAlbum". Probably that is the reason of failure.

  • baxatob's avatar
    baxatob
    Community Hero

    Can you provide the steps (code), you have implemented to operate with the dropdown?

  • I have attached Order.exe /Code/ Log file screenshots . Please look into it.

    • baxatob's avatar
      baxatob
      Community Hero

      Log data says, that you tried to click on item named "My Money", however actual item name is "MyMoney" (without space). The same issue for "FamilyAlbum". Probably that is the reason of failure.

    • baxatob's avatar
      baxatob
      Community Hero
      Thank you for the movie!

      As I can see, you are still using (in your Excel file) item names with spaces. Try to remove spaces (MyMoney, ScreenSaver etc) to make item names equal to actual values.