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

+ +
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + 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

+ +
+ + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 = {};