1
|
*** Settings ***
|
2
|
Documentation A test suite with tests of node excluding functionality.
|
3
|
...
|
4
|
... This test has a workflow that is created using keywords in
|
5
|
... the imported resource file.
|
6
|
...
|
7
|
Suite Setup Open Browser To Demo Diagram
|
8
|
Test Setup Select Radio Button actionMove exclude
|
9
|
Test Teardown Reload Diagram Screen
|
10
|
Suite Teardown Close Browser
|
11
|
Resource common.robot
|
12
|
|
13
|
*** Variables ***
|
14
|
${vertexToGroupButton} //button[@id='vertexToGroup']
|
15
|
|
16
|
${excludedNodeList} //div[@id='excludedNodeListComponent']
|
17
|
|
18
|
${includeAllButton} //button[contains(@class, 'include-all-button')]
|
19
|
|
20
|
${vertex5} //*[name()='svg'][contains(@class, 'vertex')][@data-id='5']
|
21
|
${excludedVertex5} //li[contains(@class, 'vertex')][@data-id='5']
|
22
|
${vertex6} //*[name()='svg'][contains(@class, 'vertex')][@data-id='6']
|
23
|
${excludedVertex6} //li[contains(@class, 'vertex')][@data-id='6']
|
24
|
|
25
|
${group1} //*[name()='svg'][contains(@class, 'group')][@data-id='1']
|
26
|
${excludedGroup1} //li[contains(@class, 'group')][@data-id='1']
|
27
|
|
28
|
*** Test Cases ***
|
29
|
Exclude Vertex
|
30
|
Click Element ${vertex6}
|
31
|
Element Should Not Be Visible ${vertex6}
|
32
|
Element Should Be Visible ${excludedNodeList}${excludedVertex6}
|
33
|
|
34
|
Exclude Group
|
35
|
Click Element ${vertexToGroupButton}
|
36
|
Click Element ${group1}
|
37
|
Element Should Not Be Visible ${group1}
|
38
|
Element Should Be Visible ${excludedNodeList}${excludedGroup1}
|
39
|
|
40
|
Include All Excluded Nodes
|
41
|
Click Element ${vertex5}
|
42
|
Click Element ${vertex6}
|
43
|
Click Element ${excludedNodeList}${includeAllButton}
|
44
|
Element Should Be Visible ${vertex5}
|
45
|
Element Should Not Be Visible ${excludedNodeList}${excludedVertex5}
|
46
|
Element Should Be Visible ${vertex6}
|
47
|
Element Should Not Be Visible ${excludedNodeList}${excludedVertex6}
|
48
|
|
49
|
*** Keywords ***
|