Difference between revisions of "SeleniumFixtureReference"
From iDempiere en
| Line 17: | Line 17: | ||
'''Setup''' | '''Setup''' | ||
| − | |''start spider with''|{htmlunit, firefox, chrome or ie}| | + | |''start spider with''|{htmlunit, firefox, chrome or ie}| |
| − | |''shut down browser automatically''|{true or false}| | + | |''shut down browser automatically''|{true or false}| |
'''Zk''' | '''Zk''' | ||
| + | Return selected value from combobox: | ||
| + | |''combobox''|zk locator|''selected value''| | ||
| + | |||
| + | |||
| + | Set selected combobox item by label: | ||
| + | |''combobox''|zk locator|''select item''|label of item| | ||
| − | |''combobox''|zk locator|'' | + | Set selected combobox item by index: |
| + | |''combobox''|zk locator|''select item at''|item index| | ||
| − | |''combobox''|zk locator|'' | + | Enter text into combobox and fire the onChange event: |
| + | |''combobox''|zk locator|''set text''|text| | ||
| − | |'' | + | Set selected tab by index: |
| + | |''tabbox''|zk locator|''select tab at''|tab index| | ||
| − | |'' | + | Set selected tab by label: |
| + | |''tabbox''|zk locator|''select tab''|tab label| | ||
| − | |'' | + | Return label of selected tab: |
| + | |''selected tab''|zk locator| | ||
| − | |'' | + | Perform lookup with value: |
| + | |''lookup''|zk locator|''search''|value| | ||
| − | |'' | + | Open window by menu label: |
| + | |''open window''|menu label| | ||
| − | |'' | + | Click process button of a window: |
| + | |''window''|zk locator|''click process button''|button id| | ||
| − | |'' | + | Click toolbar button of a window: |
| + | |''window''|zk locator|''click toolbar''|value| | ||
| − | |''window''|zk locator|''click | + | Click detail toolbar button of a window: |
| + | |''window''|zk locator|''click detail toolbar'|value| | ||
| − | |''window''|zk locator | + | Return window message: |
| + | |''window message''|zk locator| | ||
| − | |''window''|zk locator|'' | + | Navigate to next record: |
| + | |''window''|zk locator|''next record''|value| | ||
| − | |''window | + | Navigate to previous record: |
| + | |''window''|zk locator|''previous record''|value| | ||
| − | |'' | + | Wait for Ajax response: |
| + | |''wait response''| | ||
| − | |'' | + | Wait for Ajax response with timeout: |
| + | |''wait response with timeout''|timeout| | ||
| − | |'' | + | Set focus to a widget: |
| + | |''focus''|zk locator| | ||
| − | |'' | + | Execute widget command: |
| + | |''with widget''|zk locator|''execute''|command| | ||
| − | |'' | + | Execute widget command and return the result: |
| + | |''with widget''|zk locator|''eval''|command| | ||
| − | + | Sleep for x milliseconds: | |
| − | + | |''sleep''|millisecond| | |
| − | |||
| − | |||
| − | |''sleep''|millisecond| | ||
[[Category:UI Testing]] | [[Category:UI Testing]] | ||
Revision as of 11:53, 14 February 2013
IN PROGRESS
Feature: Fitnesse Selenium Fixture Reference
Goal: UI Testing
Sponsor: Trek Global
Description:
In fitnesse, you can use the fitlibrary.zk.ZkFixture to create UI testing.
Fixture Command Reference
Setup
|start spider with|{htmlunit, firefox, chrome or ie}|
|shut down browser automatically|{true or false}|
Zk
Return selected value from combobox: |combobox|zk locator|selected value| Set selected combobox item by label: |combobox|zk locator|select item|label of item|
Set selected combobox item by index: |combobox|zk locator|select item at|item index|
Enter text into combobox and fire the onChange event: |combobox|zk locator|set text|text|
Set selected tab by index: |tabbox|zk locator|select tab at|tab index|
Set selected tab by label: |tabbox|zk locator|select tab|tab label|
Return label of selected tab: |selected tab|zk locator|
Perform lookup with value: |lookup|zk locator|search|value|
Open window by menu label: |open window|menu label|
Click process button of a window: |window|zk locator|click process button|button id|
Click toolbar button of a window: |window|zk locator|click toolbar|value|
Click detail toolbar button of a window: |window|zk locator|click detail toolbar'|value|
Return window message: |window message|zk locator|
Navigate to next record: |window|zk locator|next record|value|
Navigate to previous record: |window|zk locator|previous record|value|
Wait for Ajax response: |wait response|
Wait for Ajax response with timeout: |wait response with timeout|timeout|
Set focus to a widget: |focus|zk locator|
Execute widget command: |with widget|zk locator|execute|command|
Execute widget command and return the result: |with widget|zk locator|eval|command|
Sleep for x milliseconds: |sleep|millisecond|
