-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.robot
More file actions
53 lines (46 loc) · 1.83 KB
/
variables.robot
File metadata and controls
53 lines (46 loc) · 1.83 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
*** Variables ***
# ============ Book Cart API ==============
${book_cart_base} https://bookcart.azurewebsites.net/api
${user_name_not} not_zzz
${user_name_new} ralutest
${user_id} 1920
${token} %{BOOK_CART_TOKEN}
&{user_body} userId=${0}
... firstName=${first_name_new}
... lastName=${last_name_new}
... username=${user_name_new}
... password=${password_new}
... gender=${F}
... userTypeId=${0}
${first_name_new} Ralu
${last_name_new} Test API
${password_new} Letmetest2@23
${F} F
# ============ Library API ==============
${library_base} https://postman-library-api.glitch.me
${search_q} ?search=
${checked_out_q} ?checkedOut=
${genre_q} ?genre=
${borges} borges
${author_borges} Jorge Luis Borges
${title_borges} Ficciones
${title_hosseini} A Thousand Splendid Suns
${author_hosseini} Khaled Hosseini
&{add_book_body} title=${add_title}
... author=${add_author}
... genre=${add_genre}
... yearPublished=${1994}
${add_title} The Dispossessed: An Ambiguous Utopia
${add_author} Ursula K. Le Guin
${add_genre} fiction
${search_added_book} Dispossessed
${year_string} 1994
&{update_book_body} checkedOut=${True}
${error_required_title}
... request.body should have required property 'title'
${error_type_year_published}
... request.body.yearPublished should be integer
${error_unexisting_id}
... Book with id: 'unexisting' not found
${error_type_checked_out}
... request.body.checkedOut should be boolean