Showing
1 changed file
with
19 additions
and
27 deletions
... | ... | @@ -108,37 +108,29 @@ Get Broker Property By Username |
108 | 108 | Run Keyword If ${wait_timeout}>0 Sleep ${wait_timeout} |
109 | 109 | |
110 | 110 | Звірити поле тендера |
111 | - [Arguments] ${username} ${field} | |
112 | - ${field_value}= Get_From_Object ${tender_data.data} ${field} | |
113 | - Звірити поле ${username} ${field} ${field_value} | |
114 | - | |
115 | -Звірити поле | |
116 | - [Arguments] ${username} ${field} ${subject} | |
117 | - ${field_response}= Викликати для учасника ${username} Отримати інформацію із тендера ${field} | |
118 | - Should Not Be Equal ${field_response} ${None} | |
119 | - Should Be Equal ${subject} ${field_response} Майданчик ${USERS.users['${username}'].broker} | |
120 | - | |
121 | -Звірити поле створеного тендера | |
122 | - [Arguments] ${initial} ${tender_data} ${field} | |
123 | - ${field_value}= Get_From_Object ${initial} ${field} | |
124 | - ${field_response}= Get_From_Object ${tender_data} ${field} | |
125 | - Should Not Be Equal ${field_response} ${None} | |
126 | - Should Not Be Equal ${field_value} ${None} | |
127 | - Should Be Equal ${field_value} ${field_response} | |
111 | + [Arguments] ${username} ${tender_data} ${field} | |
112 | + ${left}= Get_From_Object ${tender_data.data} ${field} | |
113 | + ${right}= Викликати для учасника ${username} Отримати інформацію із тендера ${field} | |
114 | + Порівняти об'єкти ${left} ${right} | |
115 | + | |
116 | +Порівняти об'єкти | |
117 | + [Arguments] ${left} ${right} | |
118 | + Should Not Be Equal ${left} ${None} | |
119 | + Should Not Be Equal ${right} ${None} | |
120 | + Should Be Equal ${left} ${right} | |
128 | 121 | |
129 | 122 | Звірити дату тендера |
130 | - [Arguments] ${username} ${field} | |
131 | - ${isodate}= Get_From_Object ${tender_data.data} ${field} | |
132 | - Should Not Be Equal ${isodate} ${None} | |
133 | - Звірити дату ${username} ${field} ${isodate} | |
123 | + [Arguments] ${username} ${tender_data} ${field} | |
124 | + ${left}= Get_From_Object ${tender_data.data} ${field} | |
125 | + ${right}= Викликати для учасника ${username} Отримати інформацію із тендера ${field} | |
126 | + Звірити дату ${left} ${right} | |
134 | 127 | |
135 | 128 | Звірити дату |
136 | - [Arguments] ${username} ${field} ${subject} | |
137 | - ${field_date}= Викликати для учасника ${username} Отримати інформацію із тендера ${field} | |
138 | - Should Not Be Equal ${field_date} ${None} | |
139 | - ${returned}= compare_date ${subject} ${field_date} | |
140 | - Should Not Be Equal ${returned} ${None} | |
141 | - Should Be True '${returned}' == 'True' | |
129 | + [Arguments] ${left} ${right} | |
130 | + Should Not Be Equal ${left} ${None} | |
131 | + Should Not Be Equal ${right} ${None} | |
132 | + ${status}= compare_date ${left} ${right} | |
133 | + Should Be True ${status} | |
142 | 134 | |
143 | 135 | Звірити поля предметів закупівлі багатопредметного тендера |
144 | 136 | [Arguments] ${username} ${tender_data} ${field} | ... | ... |
Please
register
or
login
to post a comment