GUI Testing
GUI Testing
1. Install Katalon Recorder as a browser extension for Chrome. Then, create a new
test suite and record your first test case: you should open the website of
Amazon (hCps://www.amazon.com/) and check that the Gtle of the page
(assertTitle) is equal to " Amazon.com. Spend less. Smile more. ". Note that the
expected value must be entered in the "Target" field.
2. Let us create a new test: open the website of Amazon and check that the text
“Today's Deals” appear somewhere within the main page (command
assertTextPresent).
3. Open the website of Amazon and check that the page includes the text “Make
Money with Us” as the header of the second column of links in the footer
(command assertText).
4. Open the website of Amazon and use the dropdown menu at the boCom of the
page to select the Euro currency. Once selected, check that the selected text in
the menu is equal to “EUR - Euro”.
5. Open the website of Amazon and perform a search for products using the
keyword “tablet”. Then, check that the Gtle of the page is “Amazon.com:
tablet”.
6. Repeat the previous test, but this Gme use a variable “keyword” to store the
search keyword before using it. To create the variable you must use the
command Store with Target=“tablet” and Value=”keyword”. A_er this, you
should be able to access the value of the variable using the syntax
${variable_name}.
7. Perform two searches with the same keyword using a different sorGng criterion
on each of them, for example, “Price: Low to High”, and “Price: High to Low”.
The number of results of both searches should be equal.
8. Let’s generalize the previous test using a data-driven approach. Create a CSV file
named “testData.csv” including a single column with 10 random search queries.
The header of the column should be “query”. Next, upload the file to Katalon
Recorder using the buCon “Test Data”. Once loaded, the variable “query”
should be accessible from the test case designer.