Files
crm/Tests/crm.robot
Eric SYLVIUS a53ff461ed Gitea005
Signed-off-by: Eric SYLVIUS <eric.sylvius@z-server.me>
2026-02-12 03:46:54 +01:00

60 lines
2.8 KiB
Plaintext

*** Settings ***
Documentation This is some basic info about the whole suite
Resource ../Resources/Common.robot
Resource ../Resources/crmApp.robot
Test Setup Begin Web Test
Test Teardown End Web Test
#robot -d results Tests/crm.robot
*** Variables ***
${BROWSER}= chrome
${URL}= https://automationplayground.com/crm/
${VALID_LOGIN_EMAIL}= contact@gmail.com
${VALID_LOGIN_PASSWORD}= password12345
${INVALID_LOGIN_EMAIL}= contactgmail.com
*** Test Cases ***
Should be able to Load the Home Page
[Documentation] Test the Home Page
[Tags] 1001 Home Smoke
crmApp.Go to "Home" Page
Should be able to Login With Valid Credentials
[Documentation] Test the Login
[Tags] 1002 Login Smoke
crmApp.Go to "Home" Page
crmApp.Login With Valid Credentials ${VALID_LOGIN_EMAIL} ${VALID_LOGIN_PASSWORD}
Should not be able to Login With Invalid Email
[Documentation] This is some basic info about the test
[Tags] 1002 notLogin Smoke
crmApp.Go to "Home" Page
crmApp.Login With Invalid Credentials ${INVALID_LOGIN_EMAIL}
Sleep 3
Should be able to select the remember Checkbox
[Documentation] Test the remember Checkbox
[Tags] 1003 Select Smoke
crmApp.Go to "Home" Page
crmApp.Login With remember checkbox ${VALID_LOGIN_EMAIL} ${VALID_LOGIN_PASSWORD}
Sleep 3
Should be able to log out
[Documentation] Test the Log out
[Tags] 1004 Logout Smoke
crmApp.Go to "Home" Page
crmApp.Login With Valid Credentials ${VALID_LOGIN_EMAIL} ${VALID_LOGIN_PASSWORD}
crmApp.Sign Out
Should be able to add new customer
[Documentation] Test the Log out
[Tags] 1004 Logout Smoke
crmApp.Go to "Home" Page
crmApp.Login With Valid Credentials ${VALID_LOGIN_EMAIL} ${VALID_LOGIN_PASSWORD}
crmApp.Add New Customer
Sleep 3
crmApp.Sign Out