Command List

From GXtest Wiki
Revision as of 19:50, 5 December 2013 by Sebagra (Talk | contribs)

Jump to: navigation, search
Spanish.gif
English.gif
link= {{{3}}}

Contents

Command List

GXtest Commands are grouped in three categories: accions, events or validations.


Events

Events
Back The same as clicking the Back button in a browser
Click Clicks on a GeneXus control
ClickLinkByCaption Clicks on a link. The difference between this event and the previous is that sometimes because of how an application is constructed the same control has more than one name. In these cases ClickLinkByCaption is used to specify the name of the link to be controlled
ClickMenu Allows you to click in a menu item
ClickPortalMenu Allows you to open a specific menu of an application developed with GXPortal
ClickPrompt Allows you to open a prompt to select values from a list
ClickPromptInTable The same as the above except for fields that are located in a table
ClickTable Allows you to click on a control that is located in a table
ClickTableHeader Allows you to click in a grid column header.
ClickTableLinkByCaption Allows you to click on a link that is located in a table, specifying the link caption
ClickToolbarButton Allows you to click on a toolbar button in an application made with GeneXus X and that uses a User Control with ExtJS
ClickTree Allows you to open a menu developed with ExtJS TreeMenu (in an application made with GeneXus X and that uses a User Control with ExtJS)
Close Closes a window
DummyEvent Does nothing. Used to go form one page to another without performing an event
FacebookLogin Does the login when the authentication of the application is done with Facebook credentials
Go The same as typing a web address (URL) into a browser
GoAndLogin The same as the Go command except that it allows you to enter a username and password for applications that require it
GoogleLogin Does the login when the authentication of the application is done with Google credentials
GoToObject The same as Go, but specifying a GeneXus object name instead of the full application URL.
LoginPortal Allows you to login to an application that uses GXPortal for security
PressKey Idem to the action, but for those keys that produces a transition to other page (like an enter)
SeleniumCommand Allows you to define Selenium commands to execute in GXtest.
TwitterLogin Does the login when the authentication of the application is done with Twitter credentials

Actions

Actions
Check Allows you to tick or check a CheckBox
CheckTable Same as Check but used for controls that are located in tables
Choose Allows you to select an option from a RadioButton
Concatenation Allows concatenation of fixed values, variables and values from DataPools
DPNext Move to the next row of a Data Pool. You should always use DPNext before you begin to use a Data Pool, indicating the name of Data Pool
DPReset Returns to the beginning of a Data Pool.
DragAndDrop Drag a control to another one
Execute Execute a process (exe, bat, etc)
FillInput Used to insert a value into a field
FillInputTable Used to insert a value into a field within a table
GetValue Allows you to obtain a value returned from an application and store it in a variable to later be used in another command
GetValueTable Same as GetValue but used for values that are located in tables
Pause Sleep the execution for some time. You should indicate the length of the pause in miliseconds
PressKey Simulates a keystroke made by a user. For more information on how to specify different keys see the following reference
Random Generates random sequences of numbers and characters of a given length
SelectCombo Allows you to select a value from a list of values (combobox)
SelectComboInTable Allows you to select a value from a list of values (combobox) that are found within a table
SelectRow Allows you to select a row in a table
SeleniumCommand Allows you to execute an arbitrary Selenium command
SetCheckBoxValue Sets a value on a CheckBox
SetGridContext Allows you to execute actions over controls in grids within grids. You can find more information in Inputs in Grids within Grids.
SQLExecute Executes an arbitrary SQL sentence over a selected database
StoreValue Save a value or variable inside one DataPool in execution time
Summarize Summarize a group of values
TakeScreenshot Guarda el HTML de la página y una captura de la pantalla al momento de ejecutar el comando.
UnCheck Allows you to uncheck a CheckBox
UnCheckTable Same as UnCheck but used for controls that are located in tables

Validations

Validations
AppearBalloon* Checks if a balloon appears on a control
AppearBalloonTable* Similar to AppearBalloon but used for controls within grids
AppearText Checks if a specific text is or is not on the screen. It can also be used for validations performed by Ajax. If it indicates a GeneXus object associated with the node where the command is being run, it will search the text in the frame that contains this object. If it is not indicated then it will look in the main frame
Equals Compares each other two Data Pool, Variables or values
IsItemInList Verifies if an especific item exists in a list of items
SeleniumCommand
TableOrderedBy Checks to see if a table is sorted by a given column
TableRowsNumber Checks the number of rows of a given table
VerifyColumnVisible Verifies if a column is visble in a grid
VerifyControlEnable Verifies that a control is enabled
VerifyControlEnableTable Same as VerifyControlEnable but used for controls that are found in a table
VerifyControlFocus Verifies if the current application focus is in the right control
VerifyControlFocusTable Same as VerifyControlFocus but used for controls that are found in a table
VerifyControlText Compares a value displayed by a control with another value
VerifyControlTextTable Same as VerifyControlText but used for controls that are found in a table
VerifyControlValidation* Compares a value displayed in a balloon in a control
VerifyControlValidationTable* Similar to VerifyControlValidation but used for controls within grids
VerifyControlVisible Verifies that a control is visible
VerifyControlVisibleTable Same as VerifyControlVisible but used for controls that are found in a table
VerifyItemsInList Checks the list of elements in a list
VerifyItemsInListTable Same as VerifyItemsInList but used for controls within grids
VerifyItemsInSuggestion Checks the list of elements in a input suggestion list.
VerifyItemsInSuggestionTable Same as VerifyItemsInSuggestion but used for controls within grids
VerifyResponseTime
* When execute a command on a balloon, GXtest waits until the balloon disappears to continue with the next command to execute.