Page 1 of 1

How to validate radio buttons using existing data?

Posted: Fri Jun 19, 2015 8:54 pm
by Shuai
Hi all,

I am trying to automate some GUI shortcuts and plan to validate their correctness from time to time (eg, some certain options are checked correctly, default numbers are correct...), and I am planning to do the following steps:

1. Automate/record all the shortcuts, and create a database of original values based on what I recorded. For example, country = china, item = shirt, quantity = 50... So these are my original shortcut values.

2. Suppose a week later, I want to check if the shortcut still have the same default values, I'd have to validate my current values against the original values I saved in step 1.

Questions:
- In step 1, how would I save the values? Is there a way to make a data source table (by modifying the user code) in step 1? And then later I would be able to use this table to validate the shortcuts (simply by comparing)?

This is only my second day using Ranorex. If there are easy ways to do this, I am all ears.

Thanks so much!

Re: How to validate radio buttons using existing data?

Posted: Tue Jun 23, 2015 6:49 pm
by Starlord
Hi Shuai,
I think I replied to your other post about the recording to Excel and using the same file to validate. However, I think you will find that there are quite a few ways to implement the data driven testing and you can surely automate the data creation portion of this as well. There are actually quite a few examples for this type of implementations in the forums. I would suggest going through a couple and see which approach will work best with your scenario and conditions.
I tend to run my searches in the main Ranorex page to see all the blog and forum posts in one place.
I personally benefitted from this blog article:
http://www.ranorex.com/blog/data-driven ... with-excel
Let me know if my replies can help guide you through your testing.
Cheers!!

Re: How to validate radio buttons using existing data?

Posted: Mon Jul 20, 2015 4:38 pm
by Shuai
Hi! Sorry I just saw your reply. The article is extremely helpful. Thank you very much! :D