Page 1 of 1

WIN 8 METRO app automation! HELP!

Posted: Fri Mar 15, 2013 5:41 pm
by asangahtang
Test case explanation.

The picture (ranorex testing) has the prices, the star rating and the number of reviews.
Once I click on the product it brings me to the product information page (ranorex testing 2).
On that page, the price and number of reviews should match. (as in on the product page the price is 99.99. Once I click on the product and it brings me to the product details, the price should be 99.99 on product details page)

Additional information "Ranorex was able to capture the elements like "Innertext : 99.99" "

Hi I am trying to figure out if Ranorex has the capability to compare values?
If the prices, or number of reviews doesn't match when comparing the product page vs. product information page. The test would fail. Is it possible to automate this?

I am trying to write a test case that would be reusable.

Thank you for your help.

Re: WIN 8 METRO app automation! HELP!

Posted: Mon Mar 18, 2013 2:56 pm
by Support Team
Hi,

Yes, this can be easily done.
You just have to add a "Validate - AttributeEqual" action to your action table. After you added it you have to select one of the available attributes, I suppose you want to validate the "InnerText" attribute, so select "InnerText" as "Match Name" of your element.
As "Match Value" you could select a Module Variable, in order to set this Variable to the value which is shown on the first page you could use a "GetValue" action.
This blog could be of interest for you: Did you know… that you can manually generate a recording?.

Regards,
Markus