Projekt

Obecné

Profil

Stáhnout (1.45 KB) Statistiky
| Větev: | Tag: | Revize:
1
*** Settings ***
2
Documentation	A test suite with tests of navbar actions.
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 Teardown	Reload Diagram Screen
9
Suite Teardown	Close Browser
10
Resource		common.robot
11

    
12
*** Variables ***
13
${navbar}	//div[@id='navigation']
14
${graphWrapper}	//*[name()='g'][@id='graph']
15

    
16
${mostEdgeButton}	//button[@id='mostEdge']
17
${vertexToGroupButton}	//button[@id='vertexToGroup']
18
${backToUploadButton}	//a[@id='view_back_to_upload']
19

    
20
${excludedNodeList}	//div[@id='excludedNodeListComponent']
21

    
22
${group1}	//*[name()='svg'][contains(@class, 'group')][@data-id='1']
23
${vertex6}	//*[name()='svg'][contains(@class, 'vertex')][@data-id='6']
24
${excludedVertex6}	//li[contains(@class, 'vertex')][@data-id='6']
25

    
26
*** Test Cases ***
27
Exclude Vertex With Most Edges
28
	Click Element	${mostEdgeButton}
29
	# vertex with most edges should be excluded
30
	Page Should Not Contain Element	${graphWrapper}${vertex6}
31
	Page Should Contain Element		${excludedNodeList}${excludedVertex6}
32

    
33
Exclude Vertex With Most Edges To Group
34
	Click Element	${vertexToGroupButton}
35
	# vertex with most edges should be in a group
36
	Page Should Not Contain Element	${graphWrapper}${vertex6}
37
	Page Should Contain Element		${graphWrapper}${group1}
38

    
39
Back To Upload
40
	Click Element	${backToUploadButton}
41
	${location}=	Get Location
42
	Should Be Equal As Strings	${location}	${UPLOAD FILES URL}
43

    
44
*** Keywords ***
(9-9/14)