Commit 9f817596eeca02be3f5bcde60802c4e23e6330df
1 parent
c54a94b5
added verification to prevent 'None == None' situation
Showing
1 changed file
with
10 additions
and
1 deletions
... | ... | @@ -56,6 +56,9 @@ TestSuiteSetup |
56 | 56 | Set Global Variable ${REPLIES} |
57 | 57 | ${INITIAL_TENDER_DATA}= prepare_test_tender_data ${BROKERS['${USERS.users['${tender_owner}'].broker}'].period_interval} ${mode} |
58 | 58 | Set Global Variable ${INITIAL_TENDER_DATA} |
59 | + ${TENDER}= Create Dictionary | |
60 | + Set Global Variable ${TENDER} | |
61 | + Log ${TENDER} | |
59 | 62 | Log ${INITIAL_TENDER_DATA} |
60 | 63 | |
61 | 64 | Завантажуємо бібліотеку з реалізацією ${keywords_file} площадки |
... | ... | @@ -71,7 +74,7 @@ TestSuiteSetup |
71 | 74 | ... ${ARGUMENTS[2]} == id |
72 | 75 | |
73 | 76 | ${now}= Get Current Date |
74 | - ${delta}= Subtract Date From Date ${now} ${LAST_MODIFICATION_DATE} | |
77 | + ${delta}= Subtract Date From Date ${now} ${TENDER['LAST_MODIFICATION_DATE']} | |
75 | 78 | ${wait_timout}= Subtract Time From Time ${BROKERS['${USERS.users['${username}'].broker}'].timout_on_wait} ${delta} |
76 | 79 | Run Keyword If ${wait_timout}>0 Sleep ${wait_timout} |
77 | 80 | |
... | ... | @@ -83,23 +86,29 @@ TestSuiteSetup |
83 | 86 | Звірити поле |
84 | 87 | [Arguments] ${username} ${field} ${subject} |
85 | 88 | ${field_response}= Викликати для учасника ${username} отримати інформацію із тендера ${field} |
89 | + Should Not Be Equal ${field_response} ${None} | |
86 | 90 | Should Be Equal ${subject} ${field_response} Майданчик ${USERS.users['${username}'].broker} |
87 | 91 | |
88 | 92 | Звірити поле створеного тендера |
89 | 93 | [Arguments] ${initial} ${tender_data} ${field} |
90 | 94 | ${field_value}= Get_From_Object ${initial} ${field} |
91 | 95 | ${field_response}= Get_From_Object ${tender_data} ${field} |
96 | + Should Not Be Equal ${field_response} ${None} | |
97 | + Should Not Be Equal ${field_value} ${None} | |
92 | 98 | Should Be Equal ${field_value} ${field_response} |
93 | 99 | |
94 | 100 | Звірити дату тендера |
95 | 101 | [Arguments] ${username} ${field} |
96 | 102 | ${isodate}= Get_From_Object ${INITIAL_TENDER_DATA.data} ${field} |
103 | + Should Not Be Equal ${isodate} ${None} | |
97 | 104 | Звірити дату ${username} ${field} ${isodate} |
98 | 105 | |
99 | 106 | Звірити дату |
100 | 107 | [Arguments] ${username} ${field} ${subject} |
101 | 108 | ${field_date}= Викликати для учасника ${username} отримати інформацію із тендера ${field} |
102 | 109 | ${returned}= compare_date ${subject} ${field_date} |
110 | + Should Not Be Equal ${field_date} ${None} | |
111 | + Should Not Be Equal ${returned} ${None} | |
103 | 112 | Should Be True '${returned}' == 'True' |
104 | 113 | |
105 | 114 | Звірити поля предметів закупівлі багатопредметного тендера | ... | ... |
Please
register
or
login
to post a comment