WIN 8 METRO app automation! HELP!

Ask general questions here.
asangahtang
Posts: 4
Joined: Thu Mar 14, 2013 11:03 pm

WIN 8 METRO app automation! HELP!

Post by asangahtang » Fri Mar 15, 2013 5:41 pm

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.
Attachments
ranorex testing 3.jpg
Validation
ranorex testing 3.jpg (52.9 KiB) Viewed 900 times
ranorex testing 2.jpg
Product information page
ranorex testing 2.jpg (248.79 KiB) Viewed 900 times
ranorex testing.jpg
Product page
ranorex testing.jpg (49.42 KiB) Viewed 900 times

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: WIN 8 METRO app automation! HELP!

Post by Support Team » Mon Mar 18, 2013 2:56 pm

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
.
Image