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.
WIN 8 METRO app automation! HELP!
-
- Posts: 4
- Joined: Thu Mar 14, 2013 11:03 pm
WIN 8 METRO app automation! HELP!
You do not have the required permissions to view the files attached to this post.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: WIN 8 METRO app automation! HELP!
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
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