Commit 2c29322a9028be88d55f98313711a6997c497263

Authored by mykhaly
1 parent 572ca279

Rename suite variable `${number_of_items}` into `${NUMBER_OF_ITEMS}`

Also remove redundant rows with getting length of items list.
... ... @@ -8,10 +8,10 @@ Resource resource.robot
8 8 *** Keywords ***
9 9 Можливість оголосити тендер
10 10 ${number_of_lots}= Convert To Integer ${number_of_lots}
11   - ${number_of_items}= Convert To Integer ${number_of_items}
  11 + ${NUMBER_OF_ITEMS}= Convert To Integer ${NUMBER_OF_ITEMS}
12 12 ${tender_parameters}= Create Dictionary
13 13 ... mode=${MODE}
14   - ... number_of_items=${number_of_items}
  14 + ... number_of_items=${NUMBER_OF_ITEMS}
15 15 ... number_of_lots=${number_of_lots}
16 16 ... tender_meat=${${tender_meat}}
17 17 ... lot_meat=${${LOT_MEAT}}
... ... @@ -112,8 +112,7 @@ Resource resource.robot
112 112
113 113
114 114 Звірити відображення поля ${field} усіх предметів для користувача ${username}
115   - ${number_of_items}= Get Length ${USERS.users['${tender_owner}'].initial_data.data['items']}
116   - :FOR ${item_index} IN RANGE ${number_of_items}
  115 + :FOR ${item_index} IN RANGE ${NUMBER_OF_ITEMS}
117 116 \ Звірити відображення поля ${field} ${item_index} предмету для користувача ${username}
118 117
119 118
... ... @@ -123,8 +122,7 @@ Resource resource.robot
123 122
124 123
125 124 Звірити відображення дати ${field} усіх предметів для користувача ${username}
126   - ${number_of_items}= Get Length ${USERS.users['${tender_owner}'].initial_data.data['items']}
127   - :FOR ${item_index} IN RANGE ${number_of_items}
  125 + :FOR ${item_index} IN RANGE ${NUMBER_OF_ITEMS}
128 126 \ Звірити відображення дати ${field} ${item_index} предмету для користувача ${username}
129 127
130 128
... ... @@ -134,8 +132,7 @@ Resource resource.robot
134 132
135 133
136 134 Звірити відображення координат усіх предметів для користувача ${username}
137   - ${number_of_items}= Get Length ${USERS.users['${tender_owner}'].initial_data.data['items']}
138   - :FOR ${item_index} IN RANGE ${number_of_items}
  135 + :FOR ${item_index} IN RANGE ${NUMBER_OF_ITEMS}
139 136 \ Звірити відображення координат ${item_index} предмету для користувача ${username}
140 137
141 138
... ...
... ... @@ -7,7 +7,7 @@ Suite Teardown Test Suite Teardown
7 7 ${MODE} belowThreshold
8 8 @{USED_ROLES} tender_owner provider provider1 viewer
9 9
10   -${number_of_items} ${1}
  10 +${NUMBER_OF_ITEMS} ${1}
11 11 ${number_of_lots} ${1}
12 12 ${tender_meat} ${1}
13 13 ${ITEM_MEAT} ${1}
... ...
... ... @@ -8,7 +8,7 @@ Suite Teardown Test Suite Teardown
8 8 ${MODE} negotiation.quick
9 9 @{USED_ROLES} tender_owner viewer
10 10
11   -${number_of_items} ${2}
  11 +${NUMBER_OF_ITEMS} ${2}
12 12 ${number_of_lots} ${0}
13 13 ${tender_meat} ${False}
14 14 ${LOT_MEAT} ${False}
... ...
... ... @@ -8,7 +8,7 @@ Suite Teardown Test Suite Teardown
8 8 ${MODE} negotiation
9 9 @{USED_ROLES} tender_owner viewer
10 10
11   -${number_of_items} ${2}
  11 +${NUMBER_OF_ITEMS} ${2}
12 12 ${number_of_lots} ${0}
13 13 ${tender_meat} ${False}
14 14 ${LOT_MEAT} ${False}
... ...
... ... @@ -10,7 +10,7 @@ ${MODE} openeu
10 10 @{USED_ROLES} tender_owner provider provider1 provider2 viewer
11 11 ${DIALOGUE_TYPE} EU
12 12
13   -${number_of_items} ${1}
  13 +${NUMBER_OF_ITEMS} ${1}
14 14 ${number_of_lots} ${1}
15 15 ${tender_meat} ${True}
16 16 ${LOT_MEAT} ${True}
... ...
... ... @@ -8,7 +8,7 @@ Suite Teardown Test Suite Teardown
8 8 ${MODE} reporting
9 9 @{USED_ROLES} tender_owner viewer
10 10
11   -${number_of_items} ${2}
  11 +${NUMBER_OF_ITEMS} ${2}
12 12 ${number_of_lots} ${0}
13 13 ${tender_meat} ${False}
14 14 ${LOT_MEAT} ${False}
... ...
1 1 -v MODE:belowThreshold
2 2
3   --v number_of_items:1
  3 +-v NUMBER_OF_ITEMS:1
4 4 -v number_of_lots:1
5 5
6 6 -v tender_meat:True
... ...
1 1 -v MODE:belowThreshold
2 2
3   --v number_of_items:1
  3 +-v NUMBER_OF_ITEMS:1
4 4 -v number_of_lots:1
5 5
6 6 -v tender_meat:False
... ...
... ... @@ -2,7 +2,7 @@
2 2
3 3 -v MODE:open_competitive_dialogue
4 4
5   --v number_of_items:1
  5 +-v NUMBER_OF_ITEMS:1
6 6 -v number_of_lots:1
7 7
8 8 -v tender_meat:True
... ...
... ... @@ -6,7 +6,7 @@
6 6 -v api_host_url:http://localhost:6543/
7 7
8 8
9   --v number_of_items:1
  9 +-v NUMBER_OF_ITEMS:1
10 10 -v number_of_lots:1
11 11
12 12 -v tender_meat:False
... ...
1 1 -v MODE:openeu
2 2
3   --v number_of_items:1
  3 +-v NUMBER_OF_ITEMS:1
4 4 -v number_of_lots:1
5 5
6 6 -v tender_meat:True
... ...
1 1 -v MODE:openeu
2 2
3   --v number_of_items:1
  3 +-v NUMBER_OF_ITEMS:1
4 4 -v number_of_lots:1
5 5
6 6 -v tender_meat:False
... ...
1 1 -v MODE:openua
2 2
3   --v number_of_items:1
  3 +-v NUMBER_OF_ITEMS:1
4 4 -v number_of_lots:1
5 5
6 6 -v tender_meat:True
... ...
1 1 -v MODE:openua
2 2
3   --v number_of_items:1
  3 +-v NUMBER_OF_ITEMS:1
4 4 -v number_of_lots:1
5 5
6 6 -v tender_meat:False
... ...
Please register or login to post a comment