Buttons in Data Driven Testing

Ask general questions here.
[email protected]
Posts: 10
Joined: Tue Jun 09, 2020 3:31 pm

Buttons in Data Driven Testing

Post by [email protected] » Wed Jun 10, 2020 9:42 pm

Is it possible to use the attached buttons (see attached image) in Data Driven testing. So that in my data source file i can specify which button can be clicked while performing the test. Thank you
Attachments
Range Selection Buttons.png
Range Selection Buttons.png (7.99 KiB) Viewed 57 times

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 6036
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Buttons in Data Driven Testing

Post by odklizec » Thu Jun 11, 2020 6:00 am

Hi,

Could you please post a Ranorex snapshot of the panel with buttons? Without, at very least, Ranorex snapshot, it's hard to tell something definitive. But generally speaking, yes, it should be possible.

Basically, you need to create a repo element, with general xpath, pointing to buttons in given dialog, where the button name (ID, inner text, label, etc...) should be represented by variable, connected to data connector of your choice. And in this data connector, you can specify button names. Hope this helps?
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

[email protected]
Posts: 10
Joined: Tue Jun 09, 2020 3:31 pm

Re: Buttons in Data Driven Testing

Post by [email protected] » Thu Jun 18, 2020 6:18 pm

It worked by using control text. Thank you