-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathlogic.robot
54 lines (49 loc) · 2.21 KB
/
logic.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
51
52
53
54
*** Settings ***
Documentation Verify participant creation scenarios
Library Collections
Library Selenium2Library
Resource ../../auth.steps.robot
Suite Setup Before Test Suite
Suite Teardown After Test Suite
Test Setup Before Test
Force Tags participant logic
*** Test Cases ***
Create participant with name only
[Documentation] Verify creation of participant by filling only mandatory fields
Input Text id=name participant1
Select Checkbox id=seller
Submit Form id=add-participant-form
Location Should Be ${SITE_URL}/
Go To ${SITE_URL}/series/1
${availableSellers}= Get List Items id=seller
${availableBuyers}= Get List Items id=buyer
List Should Contain Value ${availableSellers} participant1
List Should Not Contain Value ${availableBuyers} participant1
Create participant by filling all fields
[Documentation] Verify creation of participant by filling all fields
Input Text id=name participant2
Select From List By Label id=group Movies characters
Select Checkbox id=buyer
Select Checkbox id=seller
Input Text id=url http://participant2.example.org
Submit Form id=add-participant-form
Location Should Be ${SITE_URL}/
Go To ${SITE_URL}/series/1
# TODO: check that buyer and seller listed in the "Movies characters" group
${availableSellers}= Get List Items id=seller
${availableBuyers}= Get List Items id=buyer
List Should Contain Value ${availableSellers} participant2
List Should Contain Value ${availableBuyers} participant2
*** Keywords ***
Before Test Suite
[Documentation] Open browser, register fail hook and login as admin
Open Browser ${SITE_URL} ${BROWSER}
Register Keyword To Run On Failure Log Source
Log In As login=admin password=test
Before Test
[Documentation] Open add participant page
Go To ${SITE_URL}/participant/add
After Test Suite
[Documentation] Log out and close browser
Log Out
Close Browser