This repository was archived by the owner on Aug 1, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.robot
More file actions
56 lines (42 loc) · 1.41 KB
/
test.robot
File metadata and controls
56 lines (42 loc) · 1.41 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
*** Variables ***
${HOSTNAME} 127.0.0.1
${PORT} 3000
${SERVER} http://${HOSTNAME}:${PORT}/
${BROWSER} firefox
*** Settings ***
Documentation Webpack Starter Angular Acceptance Tests
Library Process
Library DebugLibrary
Library Selenium2Library timeout=10 implicit_wait=0
Suite Setup Test Setup
Suite Teardown Test Teardown
*** Keywords ***
Test Setup
${webpack-dev-server}= Start Process webpack-dev-server --bail --inline --port 3000 --content-base ${CURDIR}/dist cwd=${CURDIR} shell=true
Set Suite Variable ${WEBPACK-DEV-SERVER} ${webpack-dev-server}
Sleep 5s
Open Browser ${SERVER} ${BROWSER}
Set Window Size 1280 1024
Test Teardown
Close Browser
Log ${WEBPACK-DEV-SERVER}
Terminate Process ${WEBPACK-DEV-SERVER}
*** Test Cases ***
Front Page
Go To ${SERVER}
Wait until page contains Webpack Starter
Page Should Contain Webpack Starter
Forms
Go To ${SERVER}
Wait until page contains Webpack Starter
Click Link Forms
Wait until page contains Forms
Page should contain element name
Page should contain element title
Input Text name John Doe
Select From List By Label title mr
Input Text email john@doe.com
Input Text comment Hi World
Click Element css=.btn-primary
Wait until page contains element css=.alert
Page should contain Form submitted successfully