Commit ad3c0ffe862645063dde1feb721dbfa134eaed97
Merge branch 'master' of git://github.com/openprocurement/robot_tests
Showing
3 changed files
with
8 additions
and
5 deletions
| 1 | from robot import run_cli | 1 | from robot import run_cli |
| 2 | import os | 2 | import os |
| 3 | import sys | 3 | import sys |
| 4 | +from chromedriver import CHROMEDRV_PATH | ||
| 5 | + | ||
| 6 | +sys.path.append(CHROMEDRV_PATH) | ||
| 4 | 7 | ||
| 5 | 8 | ||
| 6 | def runner(): | 9 | def runner(): |
| 7 | args = sys.argv[1:] | 10 | args = sys.argv[1:] |
| 8 | - #if '-s' not in args: | ||
| 9 | - # args += ['-s', 'OpenProcurementProcess'] | ||
| 10 | if '-d' not in args: | 11 | if '-d' not in args: |
| 11 | directory = os.path.join(os.getcwd(), 'test_output') | 12 | directory = os.path.join(os.getcwd(), 'test_output') |
| 12 | if not os.path.exists(directory): | 13 | if not os.path.exists(directory): |
| @@ -33,7 +33,7 @@ Go to homepage | @@ -33,7 +33,7 @@ Go to homepage | ||
| 33 | Go To ${HOMEPAGE} | 33 | Go To ${HOMEPAGE} |
| 34 | 34 | ||
| 35 | Login | 35 | Login |
| 36 | - Wait Until Page Contains Element id=phone_email 100 | 36 | + Wait Until Page Contains Element id=phone_email 100 |
| 37 | Input text id=phone_email ${LOGIN} | 37 | Input text id=phone_email ${LOGIN} |
| 38 | Input text id=password ${PASSWORD} | 38 | Input text id=password ${PASSWORD} |
| 39 | Click Button id=submit_login_button | 39 | Click Button id=submit_login_button |
| @@ -113,4 +113,5 @@ get tender id | @@ -113,4 +113,5 @@ get tender id | ||
| 113 | Click Link jquery=a[href^="#/tenderDetailes"] | 113 | Click Link jquery=a[href^="#/tenderDetailes"] |
| 114 | Wait Until Page Contains ${ARGUMENTS[1]} 10 | 114 | Wait Until Page Contains ${ARGUMENTS[1]} 10 |
| 115 | sleep 1 | 115 | sleep 1 |
| 116 | - Capture Page Screenshot | ||
| 116 | + Capture Page Screenshot | ||
| 117 | + |
| @@ -32,7 +32,8 @@ setup(name='op_robot_tests', | @@ -32,7 +32,8 @@ setup(name='op_robot_tests', | ||
| 32 | 'jsonpath-rw', | 32 | 'jsonpath-rw', |
| 33 | 'dateutils', | 33 | 'dateutils', |
| 34 | 'pytz', | 34 | 'pytz', |
| 35 | - 'parse' | 35 | + 'parse', |
| 36 | + 'chromedriver' | ||
| 36 | ], | 37 | ], |
| 37 | entry_points={ | 38 | entry_points={ |
| 38 | 'console_scripts': [ | 39 | 'console_scripts': [ |
Please
register
or
login
to post a comment