diff options
| author | = <=> | 2019-03-11 11:05:06 -0400 |
|---|---|---|
| committer | = <=> | 2019-03-11 11:05:06 -0400 |
| commit | 5973dc639ce9d1dfda927562683d6a3d09760653 (patch) | |
| tree | 745ebe992c45a8e6ac01c9b041f732805dbb92a9 /tests/testcases/wizard.py | |
| parent | a952d593a5ef5041b774dcfd4f36a2b3fdcf7005 (diff) | |
#791 multiple profile/runs
Diffstat (limited to 'tests/testcases/wizard.py')
| -rw-r--r-- | tests/testcases/wizard.py | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/tests/testcases/wizard.py b/tests/testcases/wizard.py index cf73deab..0bcbe4a0 100644 --- a/tests/testcases/wizard.py +++ b/tests/testcases/wizard.py @@ -6,13 +6,20 @@ import common as c import app from time import sleep -def run_tests(self): +def run_tests(self, isFirstRun = False): success_color = 'rgba(22, 160, 133, 1)' fail_color = 'rgba(231, 76, 60, 1)' c.log ('Validating wizard test case') - c.click_item('testaut_wizard_button') + + if isFirstRun: + c.log ('First run, assuming first use screen') + c.click_item('testaut_wizard_button') + else: + c.log ('Launching wizard via menu') + app.tap_menu_js() + c.click_item('testaut_menu_wizard') c.log ('Entering portal text') c.input_item('testaut_portal_input', c.testConfig['portal']) @@ -29,8 +36,9 @@ def run_tests(self): c.input_item('testaut_zmauthpassword_input', c.testConfig['password']) if c.testConfig['use_basic_auth']: c.tap_toggle('testaut_usebasicauth_toggle') - c.input_item('testaut_basicauthusername_input', c.testConfig['user']) - c.input_item('testaut_basicauthpassword_input', c.testConfig['password']) + c.input_item('testaut_basicauthusername_input', c.testConfig['basic_user']) + c.input_item('testaut_basicauthpassword_input', c.testConfig['basic_password']) + #sleep(10) c.click_item('testaut_wiz2_next_button') # Now check wizard results |
