Showing
3 changed files
with
105 additions
and
0 deletions
1 | +*** Setting *** | |
2 | +Library Selenium2Screenshots | |
3 | +Library String | |
4 | +Library DateTime | |
5 | + | |
6 | +*** Keywords *** | |
7 | +Підготувати клієнт для користувача | |
8 | + [Arguments] ${username} | |
9 | + [Documentation] Відкрити брaвзер, створити обєкт api wrapper, тощо | |
10 | + Open Browser ${BROKERS['${USERS.users['${username}'].broker}'].url} ${USERS.users['${username}'].browser} alias=${username} | |
11 | + Set Window Position @{USERS.users['${username}'].position} | |
12 | + Set Window Size @{USERS.users['${username}'].size} | |
13 | + Log Variables | |
14 | + | |
15 | +Пошук тендера по ідентифікатору | |
16 | + [Arguments] @{ARGUMENTS} | |
17 | + [Documentation] | |
18 | + ... ${ARGUMENTS[0]} == username | |
19 | + ... ${ARGUMENTS[1]} == tenderId | |
20 | + ... ${ARGUMENTS[2]} == id | |
21 | + Switch browser ${ARGUMENTS[0]} | |
22 | + ${current_location}= Get Location | |
23 | + Run keyword if '${BROKERS['${USERS.users['${username}'].broker}'].url}/#/tenderDetailes/${ARGUMENTS[2]}'=='${current_location}' Reload Page | |
24 | + Go to ${BROKERS['${USERS.users['${username}'].broker}'].url} | |
25 | + Wait Until Page Contains Допороговые закупки Украины 10 | |
26 | + sleep 1 | |
27 | + Input Text id=search ${ARGUMENTS[1]} | |
28 | + Click Button id=search_submit | |
29 | + sleep 2 | |
30 | + ${last_note_id}= Add pointy note jquery=a[href^="#/tenderDetailes"] Found tender with tenderID "${ARGUMENTS[1]}" width=200 position=bottom | |
31 | + sleep 1 | |
32 | + Remove element ${last_note_id} | |
33 | + Click Link jquery=a[href^="#/tenderDetailes"] | |
34 | + Wait Until Page Contains ${ARGUMENTS[1]} 10 | |
35 | + sleep 1 | |
36 | + Capture Page Screenshot | |
\ No newline at end of file | ... | ... |
1 | +*** Setting *** | |
2 | +Library Selenium2Screenshots | |
3 | +Library String | |
4 | +Library DateTime | |
5 | + | |
6 | +*** Keywords *** | |
7 | +Підготувати клієнт для користувача | |
8 | + [Arguments] ${username} | |
9 | + [Documentation] Відкрити брaвзер, створити обєкт api wrapper, тощо | |
10 | + Open Browser ${BROKERS['${USERS.users['${username}'].broker}'].url} ${USERS.users['${username}'].browser} alias=${username} | |
11 | + Set Window Position @{USERS.users['${username}'].position} | |
12 | + Set Window Size @{USERS.users['${username}'].size} | |
13 | + Log Variables | |
14 | + | |
15 | +Пошук тендера по ідентифікатору | |
16 | + [Arguments] @{ARGUMENTS} | |
17 | + [Documentation] | |
18 | + ... ${ARGUMENTS[0]} == username | |
19 | + ... ${ARGUMENTS[1]} == tenderId | |
20 | + ... ${ARGUMENTS[2]} == id | |
21 | + Switch browser ${ARGUMENTS[0]} | |
22 | + ${current_location}= Get Location | |
23 | + Wait Until Page Contains Офіційний майданчик державних закупівель України 10 | |
24 | + sleep 1 | |
25 | + Input Text id=j_idt18:datalist:j_idt67 ${ARGUMENTS[1]} | |
26 | + sleep 2 | |
27 | + ${last_note_id}= Add pointy note jquery=a[href^="#/tenderDetailes"] Found tender with tenderID "${ARGUMENTS[1]}" width=200 position=bottom | |
28 | + sleep 1 | |
29 | + Remove element ${last_note_id} | |
30 | + Click Link jquery=a[href^="#/tenderDetailes"] | |
31 | + Wait Until Page Contains ${ARGUMENTS[1]} 10 | |
32 | + sleep 1 | |
33 | + Capture Page Screenshot | |
\ No newline at end of file | ... | ... |
1 | +*** Setting *** | |
2 | +Library Selenium2Screenshots | |
3 | +Library String | |
4 | +Library DateTime | |
5 | + | |
6 | + | |
7 | +*** Keywords *** | |
8 | +Підготувати клієнт для користувача | |
9 | + [Arguments] ${username} | |
10 | + [Documentation] Відкрити брaвзер, створити обєкт api wrapper, тощо | |
11 | + Open Browser ${BROKERS['${USERS.users['${username}'].broker}'].url} ${USERS.users['${username}'].browser} alias=${username} | |
12 | + Set Window Position @{USERS.users['${username}'].position} | |
13 | + Set Window Size @{USERS.users['${username}'].size} | |
14 | + Log Variables | |
15 | + | |
16 | +Пошук тендера по ідентифікатору | |
17 | + [Arguments] @{ARGUMENTS} | |
18 | + [Documentation] | |
19 | + ... ${ARGUMENTS[0]} == username | |
20 | + ... ${ARGUMENTS[1]} == tenderId | |
21 | + ... ${ARGUMENTS[2]} == id | |
22 | + Switch browser ${ARGUMENTS[0]} | |
23 | + ${current_location}= Get Location | |
24 | + Run keyword if '${BROKERS['${USERS.users['${username}'].broker}'].url}/#/tenderDetailes/${ARGUMENTS[2]}'=='${current_location}' Reload Page | |
25 | + Go to ${BROKERS['${USERS.users['${username}'].broker}'].url} | |
26 | + Wait Until Page Contains Офіційний майданчик державних закупівель України 10 | |
27 | + sleep 1 | |
28 | + Input Text id=j_idt18:datalist:j_idt67 ${ARGUMENTS[1]} | |
29 | + sleep 2 | |
30 | + ${last_note_id}= Add pointy note jquery=a[href^="#/tenderDetailes"] Found tender with tenderID "${ARGUMENTS[1]}" width=200 position=bottom | |
31 | + sleep 1 | |
32 | + Remove element ${last_note_id} | |
33 | + Click Link jquery=a[href^="#/tenderDetailes"] | |
34 | + Wait Until Page Contains ${ARGUMENTS[1]} 10 | |
35 | + sleep 1 | |
36 | + Capture Page Screenshot | |
\ No newline at end of file | ... | ... |
Please
register
or
login
to post a comment