Test Google

This commit is contained in:
Lukáš Kaňka
2023-10-14 09:28:27 +02:00
parent f0d30941ed
commit bb725fcd4c
20 changed files with 4864 additions and 41 deletions

View File

@ -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 ***

View File

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

View File

@ -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']