Difference between revisions of "SeleniumFixtureReference"

From iDempiere en
Line 15: Line 15:
 
'''Fixture Command Reference'''
 
'''Fixture Command Reference'''
  
 +
* Fixture command start and ends with |
 
* italic text is command, non italic text is parameter
 
* italic text is command, non italic text is parameter
  
−
'''Setup'''
+
'''Page Setup'''
  
 +
Start test with htmlunit, firefox, chrome or ie:
 
  |''start spider with''|htmlunit, firefox, chrome or ie|
 
  |''start spider with''|htmlunit, firefox, chrome or ie|
  
 +
Auto shutdown browser after completion of test:
 
  |''shut down browser automatically''|true or false|
 
  |''shut down browser automatically''|true or false|
  
−
'''Zk'''
+
'''Zk Widget'''
  
 
  Return selected value from combobox:
 
  Return selected value from combobox:

Revision as of 11:58, 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

  • Fixture command start and ends with |
  • italic text is command, non italic text is parameter

Page Setup

Start test with htmlunit, firefox, chrome or ie:
|start spider with|htmlunit, firefox, chrome or ie|
Auto shutdown browser after completion of test:
|shut down browser automatically|true or false|

Zk Widget

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|
Cookies help us deliver our services. By using our services, you agree to our use of cookies.