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|''selected value''|
+
Set selected combobox item by index:
 +
|''combobox''|zk locator|''select item at''|item index|
  
−
|''combobox''|zk locator|''select item''|{label of item}|
+
Enter text into combobox and fire the onChange event:
 +
|''combobox''|zk locator|''set text''|text|
  
−
|''combobox''|zk locator|''select item at''|{item index}|
+
Set selected tab by index:
 +
|''tabbox''|zk locator|''select tab at''|tab index|
  
−
|''combobox''|zk locator|''set text''|{text}|
+
Set selected tab by label:
 +
|''tabbox''|zk locator|''select tab''|tab label|
  
−
|''tabbox''|zk locator|''select tab at''|{tab index}|
+
Return label of selected tab:
 +
|''selected tab''|zk locator|
  
−
|''tabbox''|zk locator|''select tab''|{tab label}|
+
Perform lookup with value:
 +
|''lookup''|zk locator|''search''|value|
  
−
|''selected tab''|zk locator|
+
Open window by menu label:
 +
|''open window''|menu label|
  
−
|''lookup''|zk locator|''search''|value|
+
Click process button of a window:
 +
|''window''|zk locator|''click process button''|button id|
  
−
|''open window''|menu label|
+
Click toolbar button of a window:
 +
|''window''|zk locator|''click toolbar''|value|
  
−
|''window''|zk locator|''click process button''|button id|
+
Click detail toolbar button of a window:
 +
|''window''|zk locator|''click detail toolbar'|value|
  
−
|''window''|zk locator|''click toolbar''|value|
+
Return window message:
 +
|''window message''|zk locator|
  
−
|''window''|zk locator|''click detail toolbar'|value|
+
Navigate to next record:
 +
|''window''|zk locator|''next record''|value|
  
−
|''window message''|zk locator|
+
Navigate to previous record:
 +
|''window''|zk locator|''previous record''|value|
  
−
|''window''|zk locator|''next record''|value|
+
Wait for Ajax response:
 +
|''wait response''|
  
−
|''window''|zk locator|''previous record''|value|
+
Wait for Ajax response with timeout:
 +
|''wait response with timeout''|timeout|
  
−
|''wait response''|
+
Set focus to a widget:
 +
|''focus''|zk locator|
  
−
|''wait response with timeout''|timeout|
+
Execute widget command:
 +
|''with widget''|zk locator|''execute''|command|
  
−
|''focus''|zk locator|
+
Execute widget command and return the result:
 +
|''with widget''|zk locator|''eval''|command|
  
−
|''with widget''|zk locator|''execute''|command|
+
Sleep for x milliseconds:
−
 
+
|''sleep''|millisecond|
−
|''with widget''|zk locator|''eval''|command|
 
−
 
 
−
|''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|
Cookies help us deliver our services. By using our services, you agree to our use of cookies.