32 lines
1.0 KiB
Plaintext
32 lines
1.0 KiB
Plaintext
!|fitlibrary.zk.ZkFixture|
|
|
|
|
'''start firefox,chrome or phantomjs'''
|
|
|''start spider with''|firefox|
|
|
|''shutdown browser automatically''|false|
|
|
|''get url''|http://localhost:${ADEMPIERE_WEB_PORT}/webui/index.zul|
|
|
|
|
|''wait response''|
|
|
|
|
'''Login'''
|
|
|''with''|$loginPanel $txtUserId|''set text''|!-SuperUser-!|
|
|
|''with''|$loginPanel $txtPassword|''set text''|!-System-!|
|
|
|''combobox''|$loginPanel $lstLanguage|''select item''|English|
|
|
|''with''|$loginPanel $chkSelectRole|''select''|true|
|
|
|''click''|$loginPanel $Ok|
|
|
|
|
|''wait response''|
|
|
|
|
'''Select Role'''
|
|
|''element''|$rolePanel $lstClient|''exists''|
|
|
|''element visible''|$rolePanel $lstClient|
|
|
|''combobox''|$rolePanel $lstClient|''select item''|!-System-!|
|
|
|''combobox''|$rolePanel $lstRole|''select item''|!-System Administrator-!|
|
|
|''combobox''|$rolePanel $lstOrganisation|''select item''|*|
|
|
|''click''|$rolePanel $Ok|
|
|
|
|
|''wait response''|
|
|
|
|
'''Verify login user and role'''
|
|
|element|$loginUserAndRole|exists|
|
|
|''text of''|$loginUserAndRole|is|!-SuperUser@System.*/System Administrator-!|
|