-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.robot
50 lines (38 loc) · 1.47 KB
/
test.robot
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
41
42
43
44
45
46
47
48
49
50
*** Variables ***
${HOSTNAME} 127.0.0.1
${PORT} 8080
${SERVER} http://${HOSTNAME}:${PORT}/
${BROWSER} chrome
*** Settings ***
Documentation Jenkins Pipeline Job Acceptance Test
Library SeleniumLibrary timeout=30 implicit_wait=0
Test Setup Test Setup
Test Teardown Close Browser
*** Test Cases ***
Scenario: Jenkins is up and running
Go to ${SERVER}
Wait until page contains Jenkins
Page Should Contain Jenkins
Wait until page contains element css=#header
Page should not contain log in
Wait until page contains element css=#tasks
Page should contain element xpath=//a[@href='/manage']
# Scenario: Install Jenkins Plugins
# Go to ${SERVER}/pluginManager/available
# Wait until page contains element xpath=//input[@name='plugin.github.default']
# Wait until element is visible xpath=//input[@name='plugin.github.default']
# Select checkbox plugin.github.default
# Select checkbox plugin.workflow-aggregator.default
# Click button css=#yui-gen1-button
# Wait until page contains element css=#scheduleRestart
# Select checkbox css=#scheduleRestartCheckbox
Scenario: Create Pipeline Job
Go To ${SERVER}/view/All/newJob
Wait until page contains element css=#name
Input Text css=#name Pipeline
Click Element css=.org_jenkinsci_plugins_workflow_job_WorkflowJob
Click button OK
*** Keywords ***
Test Setup
Open Browser ${SERVER} ${BROWSER}
Set Window Size 1024 768