SeleniumFixtureReference
From iDempiere en
Revision as of 11:53, 14 February 2013 by Hengsin (talk | contribs) (→Feature: Fitnesse Selenium Fixture Reference)
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|
