From 2d5d21c8e2d816f1be1c837770567f9d260e50e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Ka=C5=88ka?= <124378142+LukasKanka@users.noreply.github.com> Date: Sun, 15 Oct 2023 21:56:06 +0200 Subject: [PATCH] keywords --- RobotSelenium/Mentor/Results/log.html | 2199 +++++++++++++++ RobotSelenium/Mentor/Results/output.xml | 71 + RobotSelenium/Mentor/Results/report.html | 2462 +++++++++++++++++ .../Mentor/Tests/eBay/BasicSearch.robot | 21 +- 4 files changed, 4747 insertions(+), 6 deletions(-) create mode 100644 RobotSelenium/Mentor/Results/log.html create mode 100644 RobotSelenium/Mentor/Results/output.xml create mode 100644 RobotSelenium/Mentor/Results/report.html diff --git a/RobotSelenium/Mentor/Results/log.html b/RobotSelenium/Mentor/Results/log.html new file mode 100644 index 0000000..9de6f4a --- /dev/null +++ b/RobotSelenium/Mentor/Results/log.html @@ -0,0 +1,2199 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

Opening Robot Framework log failed

+ +
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/RobotSelenium/Mentor/Results/output.xml b/RobotSelenium/Mentor/Results/output.xml new file mode 100644 index 0000000..222820a --- /dev/null +++ b/RobotSelenium/Mentor/Results/output.xml @@ -0,0 +1,71 @@ + + + + + + +${url} +${browser} +Opens a new browser instance to the optional ``url``. +Opening browser 'chrome' to base url 'https://www.ebay.com/'. + + + +Maximizes current browser window. + + + + + + +//*[@id="gh-ac"] +mobile +Types the given ``text`` into the text field identified by ``locator``. +Typing text 'mobile' into text field '//*[@id="gh-ac"]'. + + + +xpath://*[@id="gh-btn"] +RETURN +Simulates the user pressing key(s) to an element or on the active browser. +Sending key(s) ('RETURN',) to xpath://*[@id="gh-btn"] element. +Pressing special key RETURN to element. +Releasing special key RETURN. + + + +výsledků mobile +Verifies that current page contains ``text``. +Current page contains text 'výsledků mobile'. + + + + + + +Closes the current browser. + + + + +This test case verifins the basic search +Functional + + +Basic Search Funcianality + + + + +All Tests + + +Functional + + +BasicSearch + + + + + diff --git a/RobotSelenium/Mentor/Results/report.html b/RobotSelenium/Mentor/Results/report.html new file mode 100644 index 0000000..7550c8e --- /dev/null +++ b/RobotSelenium/Mentor/Results/report.html @@ -0,0 +1,2462 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

Opening Robot Framework report failed

+ +
+ + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/RobotSelenium/Mentor/Tests/eBay/BasicSearch.robot b/RobotSelenium/Mentor/Tests/eBay/BasicSearch.robot index 294944e..80a5de9 100644 --- a/RobotSelenium/Mentor/Tests/eBay/BasicSearch.robot +++ b/RobotSelenium/Mentor/Tests/eBay/BasicSearch.robot @@ -10,12 +10,21 @@ ${url} https://www.ebay.com/ Verify basic search functionality foe eBay [Documentation] This test case verifins the basic search [Tags] Functional + Start test + Verify Search Results + Finnish TestCase + +*** Keywords *** +Start test open browser ${url} ${browser} - input text //*[@id="gh-ac"] mobile - click button xpath://*[@id="gh-btn"] - # ověříme že se na stránce zobrzí ve filtru mobily - page should contain výsledků mobile - close browser + maximize browser window -*** Keywords *** \ No newline at end of file +Verify Search Results + input text //*[@id="gh-ac"] mobile + #click button xpath://*[@id="gh-btn"] + press keys xpath://*[@id="gh-btn"] RETURN + page should contain výsledků mobile + +Finnish TestCase + close browser \ No newline at end of file