Commit 68d3b41552b3aa9ab40662d5a05b7638c98262ea

Authored by selurvedu
1 parent 4518ef5a

Use "Log Many" where possible

This fixes some warnings such as "Unrepresentable object 'list'"
in output of Robot Framework.
Some minor changes in formatting took place as well.
... ... @@ -67,9 +67,9 @@ Library Selenium2Screenshots
67 67 [Documentation]
68 68 ... ${ARGUMENTS[0]} == username
69 69 ... ${ARGUMENTS[1]} == fieldname
70   - log ${ARGUMENTS}
71   - ${field_value}= Get_From_Object ${USERS.users['${ARGUMENTS[0]}'].tender_data.data} ${ARGUMENTS[1]}
72   - log ${field_value}
  70 + Log Many @{ARGUMENTS}
  71 + ${field_value}= Get_From_Object ${USERS.users['${ARGUMENTS[0]}'].tender_data.data} ${ARGUMENTS[1]}
  72 + Log ${field_value}
73 73 [return] ${field_value}
74 74
75 75 Внести зміни в тендер
... ... @@ -104,11 +104,11 @@ Library Selenium2Screenshots
104 104 ... ${ARGUMENTS[2]} == number
105 105 ${internalid}= Отримати internal id по UAid ${ARGUMENTS[0]} ${ARGUMENTS[1]}
106 106 Отримати тендер ${ARGUMENTS[0]} ${internalid}
107   - ${items}= get from object ${TENDER_DATA.data} items
108   - log ${items}
  107 + @{items}= Get From Object ${TENDER_DATA.data} items
  108 + Log Many @{items}
109 109 :FOR ${INDEX} IN RANGE ${ARGUMENTS[2]}
110 110 \ Remove From List ${items} 0
111   - log ${items}
  111 + Log Many @{items}
112 112 Set_To_Object ${TENDER_DATA.data} items ${items}
113 113 ${TENDER_DATA}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} patch_tender ${TENDER_DATA}
114 114 ${TENDER_DATA}= set_access_key ${TENDER_DATA} ${USERS.users['${ARGUMENTS[0]}'].access_token}
... ... @@ -121,12 +121,12 @@ Library Selenium2Screenshots
121 121 ... ${ARGUMENTS[2]} == number
122 122 ${internalid}= Отримати internal id по UAid ${ARGUMENTS[0]} ${ARGUMENTS[1]}
123 123 Отримати тендер ${ARGUMENTS[0]} ${internalid}
124   - ${items}= get from object ${TENDER_DATA.data} items
  124 + @{items}= Get From Object ${TENDER_DATA.data} items
125 125 ${item}= get variable value ${items[1]}
126   - log ${items}
  126 + Log Many @{items}
127 127 :FOR ${INDEX} IN RANGE ${ARGUMENTS[2]}
128 128 \ Append To List ${items} ${item}
129   - log ${items}
  129 + Log Many @{items}
130 130 Set_To_Object ${TENDER_DATA.data} items ${items}
131 131 ${TENDER_DATA}= set_access_key ${TENDER_DATA} ${USERS.users['${ARGUMENTS[0]}'].access_token}
132 132 ${TENDER_DATA}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} patch_tender ${TENDER_DATA}
... ...
... ... @@ -69,22 +69,22 @@ Get Broker Property By Username
69 69 Run Keyword And Return Get Broker Property ${broker_name} ${property}
70 70
71 71 Підготовка початкових даних
72   - @{QUESTIONS} = Create list
  72 + @{QUESTIONS}= Create list
73 73 ${question}= test question data
74   - Append to list ${QUESTIONS} ${question}
75   - Set Global Variable ${QUESTIONS}
76   - @{ANSWERS} = Create list
  74 + Append to list ${QUESTIONS} ${question}
  75 + Set Global Variable @{QUESTIONS}
  76 + @{ANSWERS}= Create list
77 77 ${answer}= test_question_answer_data
78   - Append to list ${ANSWERS} ${answer}
79   - Set Global Variable ${ANSWERS}
80   - @{COMPLAINTS} = Create list
  78 + Append to list ${ANSWERS} ${answer}
  79 + Set Global Variable @{ANSWERS}
  80 + @{COMPLAINTS}= Create list
81 81 ${complaint}= test_complaint_data
82   - Append to list ${COMPLAINTS} ${complaint}
83   - Set Global Variable ${COMPLAINTS}
84   - @{REPLIES} = Create list
  82 + Append to list ${COMPLAINTS} ${complaint}
  83 + Set Global Variable @{COMPLAINTS}
  84 + @{REPLIES}= Create list
85 85 ${reply}= test_complaint_reply_data
86   - Append to list ${REPLIES} ${reply}
87   - Set Global Variable ${REPLIES}
  86 + Append to list ${REPLIES} ${reply}
  87 + Set Global Variable @{REPLIES}
88 88 ${period_interval}= Get Broker Property By Username ${tender_owner} period_interval
89 89 ${INITIAL_TENDER_DATA}= prepare_test_tender_data ${period_interval} ${mode}
90 90 Set Global Variable ${INITIAL_TENDER_DATA}
... ... @@ -167,7 +167,7 @@ Get Broker Property By Username
167 167 [Arguments] ${username} ${command} @{arguments}
168 168 Log ${username}
169 169 Log ${command}
170   - Log ${arguments}
  170 + Log Many @{arguments}
171 171 ${state}= change_state ${arguments}
172 172 Run Keyword And Return If '${state}' == 'shouldfail' SwitchState ${username} ${command} @{arguments}
173 173 Run Keyword And Return If '${state}' == 'pass' Normal ${username} ${command} @{arguments}
... ... @@ -176,17 +176,17 @@ Normal
176 176 [Arguments] ${username} ${command} @{arguments}
177 177 Log ${username}
178 178 Log ${command}
179   - Log ${arguments}
  179 + Log Many @{arguments}
180 180 ${keywords_file}= Get Broker Property By Username ${username} keywords_file
181 181 Run Keyword And Return ${keywords_file}.${command} ${username} @{arguments}
182 182
183 183 SwitchState
184 184 [Arguments] ${username} ${command} @{arguments}
185   - log ${username}
186   - log ${command}
187   - log ${arguments}
  185 + Log ${username}
  186 + Log ${command}
  187 + Log Many @{arguments}
188 188 Remove From List ${arguments} 0
189   - log ${arguments}
  189 + Log Many @{arguments}
190 190 ${keywords_file}= Get Broker Property By Username ${username} keywords_file
191 191 ${status} ${value}= run_keyword_and_ignore_keyword_definitions ${keywords_file}.${command} ${username} @{arguments}
192 192 Run keyword if '${status}' == 'PASS' Log Учасник ${username} зміг виконати "${command}" WARN
... ...
Please register or login to post a comment