Commit 4227dfa22660d0836e52412aa2bce946d48b8cc8

Authored by selurvedu
1 parent 7fa1ea99

SmartTender: Export to separate repository

https://github.com/openprocurement/robot_tests.broker.smarttender
@@ -37,6 +37,7 @@ gh_push = git@github.com: @@ -37,6 +37,7 @@ gh_push = git@github.com:
37 [sources] 37 [sources]
38 openprocurement_client = git ${remotes:gh}openprocurement/openprocurement.client.python.git 38 openprocurement_client = git ${remotes:gh}openprocurement/openprocurement.client.python.git
39 robot_tests.broker.etender = git ${remotes:gh}openprocurement/robot_tests.broker.etender.git 39 robot_tests.broker.etender = git ${remotes:gh}openprocurement/robot_tests.broker.etender.git
  40 +robot_tests.broker.smarttender = git ${remotes:gh}openprocurement/robot_tests.broker.smarttender.git
40 41
41 [versions] 42 [versions]
42 fake-factory = 0.5.3 43 fake-factory = 0.5.3
1 -*** Settings ***  
2 -Library Selenium2Screenshots  
3 -Library String  
4 -Library DateTime  
5 -  
6 -*** Keywords ***  
7 -Підготувати клієнт для користувача  
8 - [Arguments] ${username}  
9 - [Documentation] Відкрити браузер, створити об’єкт api wrapper, тощо  
10 - Open Browser  
11 - ... ${USERS.users['${username}'].homepage}  
12 - ... ${USERS.users['${username}'].browser}  
13 - ... alias=${username}  
14 - Set Window Position @{USERS.users['${username}'].position}  
15 - Set Window Size @{USERS.users['${username}'].size}  
16 - Log Variables  
17 -  
18 -Пошук тендера по ідентифікатору  
19 - [Arguments] @{ARGUMENTS}  
20 - [Documentation]  
21 - ... ${ARGUMENTS[0]} == username  
22 - ... ${ARGUMENTS[1]} == tenderId  
23 - ... ${ARGUMENTS[2]} == id  
24 - Switch browser ${ARGUMENTS[0]}  
25 - ${current_location}= Get Location  
26 - ${homepage}= Set Variable ${USERS.users['${ARGUMENTS[0]}'].homepage}  
27 - Run Keyword If '${homepage}/#/tenderDetailes/${ARGUMENTS[2]}'=='${current_location}' Reload Page  
28 - Go To ${homepage}  
29 - Wait Until Page Contains Офіційний майданчик державних закупівель України 10  
30 - sleep 1  
31 - Input Text id=j_idt18:datalist:j_idt67 ${ARGUMENTS[1]}  
32 - sleep 2  
33 - ${last_note_id}= Add pointy note jquery=a[href^="#/tenderDetailes"] Found tender with tenderID "${ARGUMENTS[1]}" width=200 position=bottom  
34 - sleep 1  
35 - Remove element ${last_note_id}  
36 - Click Link jquery=a[href^="#/tenderDetailes"]  
37 - Wait Until Page Contains ${ARGUMENTS[1]} 10  
38 - sleep 1  
39 - Capture Page Screenshot  
Please register or login to post a comment