-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUI_TestCases.robot
More file actions
40 lines (32 loc) · 1.18 KB
/
UI_TestCases.robot
File metadata and controls
40 lines (32 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
*** Settings ***
Documentation A test suite to test some features of provided webpage.
...
... The workflow of this test is is created using keywords in
... imported resource file below.
Library ${CURDIR}/test_main.py
*** Variables ***
${PAGE_LINK}= #Link Of The Website
${Browser}= Chrome
${expected_Title}= #Title of the Website
${grade_range}= 0
*** Tasks ***
Go To Site
${page}= Test Initialize Page ${PAGE_LINK} ${Browser}
Set Global Variable ${page}
Validate Title
${title_same}= Test Validate Title ${page} ${expected_Title}
Should Be True ${title_same}
Validate Grade Displayed And Has Value
${grade_present} ${msg}= Validate Grade ${page} ${grade_range}
Should Be True ${grade_present} ${msg}
Validate The Info Icon
${icon_present}= Validate Info Icon ${page}
Should Be True ${icon_present}
Validate Review On The Page
${all_review_one}= Validate Reviews ${page}
Should Be True ${all_review_one}
Validate The Sum Of Percentage
${is_sum_as_expected}= Calculate Percent Sum ${page}
Should Be True ${is_sum_as_expected}
Quit Browser After Tests
Close Window ${page}