From bb725fcd4cf3c69640037a0574475cba4bb4e8e4 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: Sat, 14 Oct 2023 09:28:27 +0200
Subject: [PATCH] Test Google
---
RobotSelenium/Mentor/.idea/.gitignore | 3 +
RobotSelenium/Mentor/.idea/Mentor.iml | 10 +
.../inspectionProfiles/profiles_settings.xml | 6 +
RobotSelenium/Mentor/.idea/misc.xml | 4 +
RobotSelenium/Mentor/.idea/modules.xml | 8 +
RobotSelenium/Mentor/.idea/vcs.xml | 6 +
RobotSelenium/Mentor/Results/log.html | 2199 +++++++++++++++
RobotSelenium/Mentor/Results/output.xml | 35 +
RobotSelenium/Mentor/Results/report.html | 2462 +++++++++++++++++
.../FunctionalTestSuite/GoogleSearch.robot | 15 +
RobotSelenium/Techie/TestCases/Inputbox.robot | 27 +
.../Techie/TestCases/Radiobuttons.robot | 8 +
RobotSelenium/Techie/TestCases/TC1.robot | 15 +-
RobotSelenium/Techie/log.html | 10 +-
RobotSelenium/Techie/output.xml | 87 +-
RobotSelenium/Techie/report.html | 10 +-
.../Techie/selenium-screenshot-1.png | Bin 39808 -> 72227 bytes
.../Techie/selenium-screenshot-2.png | Bin 39824 -> 72227 bytes
.../Techie/selenium-screenshot-3.png | Bin 39835 -> 0 bytes
.../Techie/selenium-screenshot-4.png | Bin 39863 -> 0 bytes
20 files changed, 4864 insertions(+), 41 deletions(-)
create mode 100644 RobotSelenium/Mentor/.idea/.gitignore
create mode 100644 RobotSelenium/Mentor/.idea/Mentor.iml
create mode 100644 RobotSelenium/Mentor/.idea/inspectionProfiles/profiles_settings.xml
create mode 100644 RobotSelenium/Mentor/.idea/misc.xml
create mode 100644 RobotSelenium/Mentor/.idea/modules.xml
create mode 100644 RobotSelenium/Mentor/.idea/vcs.xml
create mode 100644 RobotSelenium/Mentor/Results/log.html
create mode 100644 RobotSelenium/Mentor/Results/output.xml
create mode 100644 RobotSelenium/Mentor/Results/report.html
create mode 100644 RobotSelenium/Mentor/Tests/Google/FunctionalTestSuite/GoogleSearch.robot
create mode 100644 RobotSelenium/Techie/TestCases/Inputbox.robot
create mode 100644 RobotSelenium/Techie/TestCases/Radiobuttons.robot
delete mode 100644 RobotSelenium/Techie/selenium-screenshot-3.png
delete mode 100644 RobotSelenium/Techie/selenium-screenshot-4.png
diff --git a/RobotSelenium/Mentor/.idea/.gitignore b/RobotSelenium/Mentor/.idea/.gitignore
new file mode 100644
index 0000000..26d3352
--- /dev/null
+++ b/RobotSelenium/Mentor/.idea/.gitignore
@@ -0,0 +1,3 @@
+# Default ignored files
+/shelf/
+/workspace.xml
diff --git a/RobotSelenium/Mentor/.idea/Mentor.iml b/RobotSelenium/Mentor/.idea/Mentor.iml
new file mode 100644
index 0000000..74d515a
--- /dev/null
+++ b/RobotSelenium/Mentor/.idea/Mentor.iml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/RobotSelenium/Mentor/.idea/inspectionProfiles/profiles_settings.xml b/RobotSelenium/Mentor/.idea/inspectionProfiles/profiles_settings.xml
new file mode 100644
index 0000000..105ce2d
--- /dev/null
+++ b/RobotSelenium/Mentor/.idea/inspectionProfiles/profiles_settings.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/RobotSelenium/Mentor/.idea/misc.xml b/RobotSelenium/Mentor/.idea/misc.xml
new file mode 100644
index 0000000..5646b67
--- /dev/null
+++ b/RobotSelenium/Mentor/.idea/misc.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/RobotSelenium/Mentor/.idea/modules.xml b/RobotSelenium/Mentor/.idea/modules.xml
new file mode 100644
index 0000000..342d7b5
--- /dev/null
+++ b/RobotSelenium/Mentor/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/RobotSelenium/Mentor/.idea/vcs.xml b/RobotSelenium/Mentor/.idea/vcs.xml
new file mode 100644
index 0000000..b2bdec2
--- /dev/null
+++ b/RobotSelenium/Mentor/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/RobotSelenium/Mentor/Results/log.html b/RobotSelenium/Mentor/Results/log.html
new file mode 100644
index 0000000..e9270fb
--- /dev/null
+++ b/RobotSelenium/Mentor/Results/log.html
@@ -0,0 +1,2199 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Opening Robot Framework log failed
+
+ - Verify that you have JavaScript enabled in your browser.
+ - Make sure you are using a modern enough browser. If using Internet Explorer, version 11 is required.
+ - Check are there messages in your browser's JavaScript error log. Please report the problem if you suspect you have encountered a bug.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/RobotSelenium/Mentor/Results/output.xml b/RobotSelenium/Mentor/Results/output.xml
new file mode 100644
index 0000000..ebab982
--- /dev/null
+++ b/RobotSelenium/Mentor/Results/output.xml
@@ -0,0 +1,35 @@
+
+
+
+
+
+${url}
+${browser}
+Opens a new browser instance to the optional ``url``.
+Opening browser 'chrome' to base url 'https://www.google.com/'.
+
+
+
+Closes the current browser.
+
+
+Google test
+regression
+
+
+
+
+
+
+All Tests
+
+
+regression
+
+
+GoogleSearch
+
+
+
+
+
diff --git a/RobotSelenium/Mentor/Results/report.html b/RobotSelenium/Mentor/Results/report.html
new file mode 100644
index 0000000..2d3953a
--- /dev/null
+++ b/RobotSelenium/Mentor/Results/report.html
@@ -0,0 +1,2462 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Opening Robot Framework report failed
+
+ - Verify that you have JavaScript enabled in your browser.
+ - Make sure you are using a modern enough browser. If using Internet Explorer, version 11 is required.
+ - Check are there messages in your browser's JavaScript error log. Please report the problem if you suspect you have encountered a bug.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/RobotSelenium/Mentor/Tests/Google/FunctionalTestSuite/GoogleSearch.robot b/RobotSelenium/Mentor/Tests/Google/FunctionalTestSuite/GoogleSearch.robot
new file mode 100644
index 0000000..4499d95
--- /dev/null
+++ b/RobotSelenium/Mentor/Tests/Google/FunctionalTestSuite/GoogleSearch.robot
@@ -0,0 +1,15 @@
+*** Settings ***
+Library SeleniumLibrary
+
+*** Variables ***
+${browser} chrome
+${url} https://www.google.com/
+
+*** Test Cases ***
+This is sample test case
+ [documentation] Google test
+ [tags] regression
+ open browser ${url} ${browser}
+ close browser
+*** Keywords ***
+# pro slova můžem vytvořit samostatný soubor
diff --git a/RobotSelenium/Techie/TestCases/Inputbox.robot b/RobotSelenium/Techie/TestCases/Inputbox.robot
new file mode 100644
index 0000000..aa4ddd1
--- /dev/null
+++ b/RobotSelenium/Techie/TestCases/Inputbox.robot
@@ -0,0 +1,27 @@
+*** Settings ***
+Library SeleniumLibrary
+
+*** Variables ***
+${browser} chrome
+${url} https://demo.nopcommerce.com/
+*** Test Cases ***
+TestingInputBox
+ open browser ${url} ${browser}
+ maximize browser window
+ # komtrola viditelnosti titulku
+ title should be nopCommerce demo store
+ click link xpath://a[@class="ico-login"]
+ ${"email_txt"} set variable id:Email
+ # zadaný email je vidět
+ element should be visible ${"email_txt"}
+ # email je povolený
+ element should be enabled ${"email_txt"}
+ # vyplníme proměnou email
+ input text ${"email_txt"} superborec@gmail.com
+ # počkáme 5 sekund
+ sleep 5
+ # vymažeme email
+ clear element text ${"email_txt"}
+ sleep 3
+ close browser
+*** Keywords ***
diff --git a/RobotSelenium/Techie/TestCases/Radiobuttons.robot b/RobotSelenium/Techie/TestCases/Radiobuttons.robot
new file mode 100644
index 0000000..4105a6b
--- /dev/null
+++ b/RobotSelenium/Techie/TestCases/Radiobuttons.robot
@@ -0,0 +1,8 @@
+*** Settings ***
+Library SeleniumLibrary
+
+*** Variables ***
+${browser} chrome
+# web už je nefunkční
+${url} https://www.practiceselenium.com/practice-form.html
+# test na zaškrtávací políčka
diff --git a/RobotSelenium/Techie/TestCases/TC1.robot b/RobotSelenium/Techie/TestCases/TC1.robot
index 1b27a04..9cfa635 100644
--- a/RobotSelenium/Techie/TestCases/TC1.robot
+++ b/RobotSelenium/Techie/TestCases/TC1.robot
@@ -1,17 +1,22 @@
*** Settings ***
Library SeleniumLibrary
+Test Timeout 2 minute
*** Variables ***
+${browser} chrome
+${url} https://demo.nopcommerce.com/
*** Test Cases ***
LoginTest
- open browser https://demo.nopcommerce.com/ chrome
- click link xpath://a[@class="ico-login"]
- input text id:Email testing@gmail.com
- input text id:Password Test@123
- click element xpath://input[@class='button-1 Login-button']
+ open browser ${url} ${browser}
+ loginToApplication
close browser
*** Keywords ***
+ loginToApplication
+ click link xpath://a[@class="ico-login"]
+ input text id:Email testing@gmail.com
+ input text id:Password Test@123
+ click element xpath://button[@class='button-1 login-button']
\ No newline at end of file
diff --git a/RobotSelenium/Techie/log.html b/RobotSelenium/Techie/log.html
index f0b5d7e..5a9da85 100644
--- a/RobotSelenium/Techie/log.html
+++ b/RobotSelenium/Techie/log.html
@@ -1806,25 +1806,25 @@ function stopPropagation(event) {
window.output = {};