Fixed commands
Command name |
Content |
Launch app |
Launch the app to be tested.
|
Open browser |
Launch the browser to be used in the test.
|
UI operation
Command name |
Content |
Tap |
(Mobile app testing only) Tap the specified element.
|
Double tap |
(Mobile app testing only) Tap the specified element twice quickly.
|
Flick |
(Mobile app testing and mobile emulation of browser testing only) Operate the specified element shortly with your finger (the same operation as when you flick text).
|
Drag |
(Browser testing only) Drag the specified element.
|
Drag & drop |
(Mobile app testing only) Drag the specified element and drop it on another element.
Coordinate specification
|
Long press & drag |
(Mobile app testing only) Long press the specified element and drag it to another element.
|
Pinch out |
(Mobile app testing only) Spread the specified element in the vertical direction using two fingers. This is mainly used to enlarge images.
|
Pinch in |
(Mobile app testing only) Move the designated element with two fingers as if you were pinching it to shrink the screen.
|
Swipe |
(Mobile app testing only) This is the operation of moving the entire screen with a sweeping motion of the finger (this is the same operation as scrolling between or switching screens).
|
Draw a figure by freehand |
(Mobile app testing only) Draw a freehand shape on the entire screen. The order is also recorded and drawn in that order.
|
Continue swipe |
(Mobile app testing only) Continue to swipe until the specified element is displayed on the screen. This can be utilized if you want to display an element outside the scroll range. Reference:Method of operating screens where scrolling is required
|
Long tap |
(Mobile app testing only) Long tap the specified element.
|
Tap specified position |
(Mobile app testing only) Tap the specified element in specific position.
Coordinate specification Specify the X, and Y coordinates as a percentage, to specify the tap position more flexibly. Usage such as “Tap the area next to a certain element” is also possible.
|
Multi touch action at the screen center |
(Mobile app testing only) Screen operation performed with multiple fingers.
|
Tap system button |
(Mobile app testing only) This is the operation of pressing system buttons, such as “Home” or “Back”. As buttons such as Android’s “Home” or “Back”, etc. may not currently be easily pressable in MagicPod even if they are visible on the screen capture, please use this command.
|
Check (WebView) |
(Mobile app testing only) State in which the specified element (checkbox) is checked. This can only be used in relation to HTML element on WebView.
|
Uncheck (WebView) |
(Mobile app testing only) This is the state in which the specified element (check box) is left unchecked. This can only be used in relation to HTML element on WebView.
|
Click |
(Browser testing only) Clicks the specified element.
|
Double click |
(Browser test only) Double-click the specified element.
|
Right click |
(Browser testing only) Right-click the specified element.
|
Click with special key |
(Browser testing only) Click the specified element with a special key held down.
|
Click and download file |
(Browser testing only) Click the specified element, and then, for IE only, perform file save as... operation. For details, refer here.
|
Click and upload file |
(Browser testing only) Click the specified element (element for selecting file), and upload a file saved to MagicPod in advance. For details, refer here.
|
Check |
(Browser testing only) Set specified element (checkbox) to checked state.
|
Uncheck |
(Browser testing only) Set the specified element (checkbox) to unchecked state.
|
Click specified position |
(Browser testing only) Click a specific position on the specified element.
Coordinate specification Specify the X, and Y coordinates as a percentage, to specify the click position more flexibly. Usage such as “Click the area next to a certain element” is also possible.
|
Continue scroll |
(Browser testing only)
|
Hover |
(Browser testing only) Hover the specified element.
|
- The plan is for “Pinch out" and "Pinch in" to support pinches in directions other than the vertical direction in the future.
- Direct numerical specification of the “%” argument will be supported in the future.
UI input
Command name |
Content |
Input |
Sets the text for the specified element. If the specified element is an element that cannot accept text entry, this command will fail. If you want to forcibly send text to an element that does not accept text entry, you can use the “Input keyboard key” command on the mobile app.
|
Input to picker |
Set value to picker. In the case of Android, the value is set by entering the value key, whereas in iOS it is set by swiping the picker a little at a time. Character string: Set value
|
Input keyboard key |
This is an operation to press special keys on the keyboard, such as “Enter” or “Delete”, etc.
|
Toggle switch |
Switches the specified element (switch) state (ON/OFF).
|
Select pull-down menu(WebView) |
Select the specified character string from the pulldown menu. This can only be used in relation to HTML element on WebView. It can only be used with a HTML standard select element. (Detail)
|
Select pull-down menu |
(Browser testing only) Select the specified character string from the pulldown menu. It can only be used with a HTML standard select element. (Detail)
|
System
Command name |
Content |
Launch test target app |
Launches the process of the app to test. If the app is already launched, the process is stopped once and relaunched. If “Clear app information” is specified when launching the test the first time, the app information is cleared again at this point. |
Terminate app |
Closes the current app process. The closed app can be relaunched with the “Launch tested app” command. |
Inactivate app |
This puts the process of the app to test in the background (the process does not end). Apps in the background can be put in the foreground with the “Put app in foreground” command. |
Activate app |
This puts the process of the app to test in the foreground. If the app to test is closed, relaunch the app to test. |
Launch other app (iOS) |
Launching apps other than apps to test. When specifying other than the “Bundle ID”, the app is also installed (if it is already installed, it will be reinstalled).
|
Launch other app (Android) |
Launching apps other than apps to test. If you specify other than “App package”, the app is also installed (if it is already installed, it will be reinstalled ).
|
Hide keyboard |
If the keyboard is displayed, hide the keyboard. This can be used in cases where other elements are hidden by the keyboard and the keyboard must be hidden to proceed. In the case of iOS, you can hide the keyboard by tapping keyboard buttons, such as “Complete”, “Search”, or “Go”. If these buttons are not on the keyboard, the hide operation may not complete successfully. (Note that buttons such as “Complete” that are outside the keyboard will not be tapped). |
Rotate screen |
Rotates the orientation of the app screen.
|
Set clipboard value |
Set the specified text on the clipboard of the device.
|
Take screenshot |
Acquire a screen capture of the current screen. The acquired screen captures can be viewed on the test results screen.
|
Shake (Simulator/ Emulator) |
Shake the device in the horizontal direction. This command can only be used for the iOS simulator and Android emulator. |
Web API call |
Call Web API (REST API). Reference: Web API call |
Set geolocation |
Set arbitrary geolocation to the browser or mobile device. Reference: Setting Position Information
|
Push image to device |
Place the image file on the device to be tested. iOS real devices are not supported.
|
Navigate to URL |
(Browser testing only) Move directly to the URL specified in the browser.
|
Back |
(Browser testing only) Perform same operation as when browser Back button is pressed down. |
Forward |
(Browser testing only) Perform same operation as when browser Forward button is pressed down. |
Reload |
(Browser test only) Perform same operation as when browser Reload button is pressed down. |
Open new tab/window |
(Browser testing only) Open new window/tab. Note that you cannot automatically move operation to a new window/tab simply by opening a window/tab. |
Select new tab/window |
(Browser testing only) When multiple windows/tabs are open, select the last opened window. Note that the operation cannot be automatically transferred to the new window unless this command is run. |
Select previous tab/window |
(Browser testing only) When closing the operated window/tab, select the window operated on before the most recently operated window. Note that you cannot automatically move operation to an old window simply by closing a window. |
Close tab/window |
(Browser testing only) Close the currently operated window/tab with the X button. This operation is not required if the window was originally designed to be closed by some operation on the page (such as by clicking a button). |
Close alert |
(Browser testing only) Close the JavaScript alert dialog box.
|
Set cookie |
(Browser testing only) Set a browser cookie for the currently displayed page domain.
|
Clear cookies |
(Browser testing only) Delete the browser cookies for the currently displayed page domain. |
Set value to local storage |
Set the Local Storage value.
|
Clear local storage |
Delete all Local Storage keys/values. |
Set value to session storage |
Set value in session storage.
|
Clear session storage |
Delete all session Storage keys and values. |
Set UI element's attribute |
(Browser testing only) Set values stipulated in the UI variable attributes.
|
Arithmetic operation |
Save the specified calculation results as a variable. The resulting values are not comma-separated values, but are rounded to the nearest whole number of decimal places.
|
Date calculation |
Save the specified date/time as a variable. It is possible to save it in various formats. You can also specify the date format of your choice. Reference:How to write date formats
|
Comment |
You can write comments. Nothing will happen when running a test.
|
Blank line |
You can put lines with nothing on them into scripts. Nothing will happen when running a test. |
Output to log |
You can output any string (including variable values) to the log. Output limit is 10,000 characters. |
Fail |
You can make the test fail with the message.
|
Assertion
-
Failure behavior: "Stop on failure" or "Mark as failure and continue"
- You can select for all assertion commands except the "Assert no visual diff" command.
Command name |
Content |
Assert UI element equals |
Check that the UI element text matches the specified character string.
|
Assert UI element does not equal |
Check whether the UI element text does not match the specified character string.
|
Assert UI element contains |
Check whether the UI element text includes the specified character string.
|
Assert UI element does not contain |
Check that the UI element text does not confirm the specified character string.
|
Assert UI element satisfies numerical comparison |
Check that the UI element text satisfies the specified numerical comparison conditions.
|
Assert UI element exists |
Check that the UI element exists on the screen.
|
Assert UI element does not exist |
Check that the UI element does not exist on the screen.
|
Assert UI element is enabled |
Check that the UI element exists on the screen and is in enabled (not grayed-out) state. UI elements are considered disabled if either of the following conditions are met.
If this command does not work, use Assert UI element's attribute satisfies condition command.
|
Assert UI element is disabled |
Check that the UI element exists on the screen in disabled (grayed out) state. Please check the above for conditions that are judged to be disabled.
|
Assert UI element is selected |
Check that the checkboxes, switches, or radio buttons are in selected state.
|
Assert UI element is not selected |
Check that the checkboxes, switches, or radio buttons are not selected.
|
Assert UI element is visible |
Check that the UI elements exist on the screen and that they are displayed. UI elements are considered visible if both of the following conditions are met:
In the case of iOS, this command is unstable, and so use “Check whether it exists” instead.
|
Assert UI element is invisible |
Check that UI elements are hidden or do not exist on the screen. In the case of iOS, this command is unstable, and so use “Check whether it exists” instead. Please check the above for conditions that are judged to be invisible.
|
Assert UI element's attribute satisfies condition |
Check that the attributes of the UI element and their values satisfy the specified conditions.
|
Assert there is no visual diff |
Check that the content of the current screen matches the expected value image. Check here for details.
|
Assert title equals |
(Browser testing only) Check whether the browser title matches the specified character string.
|
Assert title does not equal |
(Browser testing only) Check whether the browser title does not match the specified character string.
|
Assert title contains |
(Browser testing only) Check whether the browser title includes the specified character string.
|
Assert title does not contain |
(Browser testing only) Check whether the browser title does not include the specified character string.
|
Assert URL equals |
(Browser testing only) Check whether the current page URL matches the specified character string.
|
Assert URL does not equal |
(Browser testing only) Check whether the current page URL does not match the specified character string.
|
Assert URL contains |
(Browser testing only) Check whether the current page URL includes the specified character string.
|
Assert URL does not contain |
(Browser testing only) Check whether the current page URL does not include the specified character string.
|
Assert alert message equals |
(Browser testing only) Check whether the current JavaScript alert dialog box is displayed and the message content matches the specified character string.
|
Assert alert message contains |
(Browser testing only) Check whether the current JavaScript alert dialog box is displayed and the message content contains the specified character string.
|
Assert alert tab/window is closed |
(Browser testing only) Check whether the window that was operated immediately before the command is already closed. |
Assert download is completed |
(Browser testing only) Check whether a file with the specified name exists in the Downloads folder.
|
Assert variable equals |
Check that the variable name matches the specified character string.
|
Assert variable does not equal |
Check that the variable name does not match the specified character string.
|
Assert variable contains |
Check that the variable value includes the specified character string.
|
Assert variable does not contain |
Check that the variable does not include the specified character string.
|
Assert variable satisfies numerical comparison |
Check that the variable value satisfies the specified numerical comparison condition.
|
Assert UI element's image matches |
Check that the difference between the stored image of a UI element, which can be stored by Store image of UI element command, and the image of a selected UI element falls within the predetermined threshold.
|
Assert UI element's image does not match |
Check that the difference between the stored image of a UI element, which can be stored by Store image of UI element command, and the image of a selected UI element is out of the predetermined threshold.
|
Wait
Command name |
Content |
Wait until UI element equals |
Wait for the UI element text to match the specified character string.
|
Wait until UI element does not equal |
Wait for the UI element text not to match the specified character string.
|
Wait until UI element contains |
Wait until the UI element text includes the specified character string.
|
Wait until UI element does not contain |
Wait until the UI element does not include the specified character string.
|
Wait until UI element satisfies numerical comparison |
Wait until the UI element text satisfies the specified numerical comparison results.
|
Wait until UI element exists |
Wait until the UI element appears on the screen.
|
Wait until UI element does not exist |
Wait until the UI element does not exist on the screen.
|
Wait until UI element is enabled |
Wait until the UI element is enabled (not grayed-out). UI elements are considered disabled if either of the following conditions are met.
If this command does not work, use Wait until UI element's attribute satisfies condition command.
|
Wait until UI element is disabled |
Wait until the UI element is disabled (in grayed-out state). Please check the above for conditions that are judged to be disabled.
|
Wait until UI element is selected |
Wait until the checkboxes, switches, or radio buttons are selected.
|
Wait until UI element is not selected |
Wait until the checkboxes, switches, or radio buttons are not selected.
|
Wait until UI element is visible |
Wait until the UI element is displayed on the screen. In the case of iOS, this command is unstable, and so use “Wait until it exists” instead.
|
Wait until UI element is invisible |
Wait until the UI element is hidden on the screen or until it does not exist on the screen. In the case of iOS, this command is unstable, and so use “Wait until it does not exist” instead.
|
Wait until alert message equals |
(Browser test only) Wait until the JavaScript alert dialog box is displayed and the content of this message matches the specified character string.
|
Wait until alert message contains |
(Browser testing only) Wait until the JavaScript alert dialog box is displayed and the content of this message includes the specified character string.
|
Wait until UI element's attribute satisfies condition |
Waits for the UI element attributes and their values to satisfy the specified conditions.
|
Wait until screen is rendered |
Wait for the entire screen drawing process to complete.
|
Wait for fixed seconds |
Wait only for the specified time. If you use this command within the test, it is easy to cause timing-dependent problems, so you should note this when using.
|
Wait until download is completed |
(Browser testing only) Wait until the file with the specified name is downloaded into the Downloads folder.
|
Variable
Command name |
Content |
Store value |
Saves the element text as a variable. The saved variable value can be referenced in subsequent command arguments in the form ${variable name}. Reference:Utilizing variables
|
Store existence state |
Save whether element exists as a variable. The saved variable value can be referenced in subsequent command arguments in the form ${variable name}. Reference: Utilizing variables
|
Store enabled state |
Saves element enabled state as a variable. The saved variable value can be referenced in subsequent command arguments in the form ${variable name}. Reference:Utilizing variables
|
Store selected state |
Saves the selected state of checkboxes and switches as variables. The saved variable value can be referenced in subsequent command arguments in the form ${variable name}. Reference:Utilizing variables
|
Store visible state |
Save element display state as a variable. The saved variable value can be referenced in subsequent command arguments in the form ${variable name}. In the case of iOS, this command is unstable, and so use “Save existing state” instead. Reference:Utilizing variables
|
Store attribute |
Saves the element attribute value as a variable. The saved variable value can be referenced in subsequent command arguments in the form ${variable name}. Reference:Utilizing variables
|
Store title |
Save page title as a variable. The saved variable value can be referenced in subsequent command arguments in the form ${variable name}. Reference:Utilizing variables
|
Store URL |
Saves page URL as a variable. The saved variable value can be referenced in subsequent command arguments in the form ${variable name}. Reference:Utilizing variables
|
Store alert message |
Save currently displayed JavaScript alert dialog box message as a variable If the alert does not exist, an error will occur. The saved variable value can be referenced in subsequent command arguments in the form ${variable name}. Reference :Utilizing variables
|
Store local storage value |
Saves the Local Storage specified key value as a variable. The saved variable value can be referenced in subsequent command arguments in the form ${variable name}. Reference:Utilizing variables
|
Store session storage value |
Saves the Session Storage specified key value as a variable. The saved variable value can be referenced in subsequent command arguments in the form ${variable name}. Reference:Utilizing variables
|
Store unique value generated based on the current time |
Saves a unique number generated based on the current time (seconds) as a variable. It can be used for applications such as registering a new user name with a new ID each time. The saved variable value can be referenced in subsequent command arguments in the form ${variable name}. Reference:Utilizing variables
|
Store fixed value |
Saves fixed value as a variable. The saved variable value can be referenced in subsequent command arguments in the form ${variable name}. Reference:Utilizing variables
|
Store substring matching regular expression |
Saves the first part of the specified text matching the regular expression as a variable. The saved variable value can be referenced in subsequent command arguments in the form ${variable name}. Reference:Utilizing variables
|
Store the result of the replacement |
Substitutes all parts of the specified text that match a string or regular expression with the specified string and stores the result in a variable. The saved variable value can be referenced in subsequent command arguments in the form ${variable name}. Reference:Utilizing variables
|
Store clipboard value |
Saves the mobile device clipboard value as a variable. Use when combining with the “Check that the variable value matches” command, and you want to check the clipboard value. Not supported with iOS real devices and Web app tests. Reference:Utilizing variables
|
Store 2FA passcode |
Generates the 6-digits passcode for two-factor authentication and saves this as a variable. The saved variable value can be referenced in subsequent command arguments in the form ${variable name}. Reference:Utilizing variables
|
Store text file contents |
(Browser testing only) Reads the content of a text file (TXT, CSV file) that is downloaded using the file download command and saves it as a variable. The saved variable value can be referenced in subsequent command arguments in the form ${variable name}. Reference:Utilizing variables
|
Store image of UI element |
Store the image of a selected UI element to a variable. This variable can be used in commands Assert UI element's image matches and Assert UI element's image does not match.
|
Conditional
Command name |
Content |
If UI element equals |
As long as the UI element text matches the specified character string, the processing is run between it and the “End conditional branching” command. Reference:Utilizing conditional branching
|
If UI element does not equal |
As long as the UI element text does not match the specified character string, the processing is run between it and the “End conditional branching” command. Reference:Utilizing conditional branching
|
If UI element contains |
As long as the UI element text includes the specified character string, the processing is run between it and the “End conditional branching” command. Reference:Utilizing conditional branching
|
If UI element does not contain |
As long as the UI element text does not include the specified character string, the processing is run between it and the “End conditional branching” command. Reference:Utilizing conditional branching
|
If UI element satisfies numerical comparison |
As long as the UI element text matches the specified numeric comparison, the processing is run between it and the “End conditional branching” command. Reference:Utilizing conditional branching
|
If UI element exists |
As long as the UI element exists on the screen, the processing is run between it and the “End continual branching” command. Reference:Utilizing conditional branching
|
If UI element does not exist |
As long as the UI element does not exist on the screen, the processing is run between it and the “End continual branching” command. Reference:Utilizing conditional branching
|
If UI element is enabled |
As long as the UI element is enabled (not grayed out), the processing is run between it and the “End continual branching” command. Reference:Utilizing conditional branching UI elements are considered disabled if either of the following conditions are met.
If this command does not work, use If UI element's attribute satisfies condition command.
|
If UI element is disabled |
As long as the UI element exists, but is disabled (grayed out), the processing is run between it and the “End conditional branching” command. Reference:Utilizing conditional branching Please check the above for conditions that are judged to be disabled.
|
If UI element is selected |
Only in cases where the checkboxes, switches, or radio buttons are selected, is the process run between it and the "End Conditional Branch" command. Reference:Utilizing conditional branching
|
If UI element is not selected |
Only in cases where the checkboxes, switches, or radio buttons are not selected, is the process run between it and the "End Conditional Branch" command. Reference:Utilizing conditional branching
|
If UI element is visible |
As long as the UI element text is displayed, the processing is run between it and the “End conditional branching” command. In the case of iOS, this command is unstable, and so use “If it exists” instead. Reference:Utilizing conditional branching
|
If UI element is invisible |
As long as the UI element text is hidden, the processing is run between it and the “End conditional branching” command. In the case of iOS, this command is unstable, and so use “If it does not exist” instead. Reference:Utilizing conditional branching
|
If UI element's attribute satisfies condition |
As long as the UI element text attribute and its value satisfy the specified condition, the processing is run between it and the “End conditional branching” command. Reference:Utilizing conditional branching
|
If alert message equals |
As long as the JavaScript alert dialog box message matches the specified character string, the processing is run between it and the “End conditional branching” command. If the alert does not exist, an error will occur. Reference:Utilizing conditional branching
|
If alert message contains |
As long as the JavaScript alert dialog box message is included in the specified character string, the processing is run between it and the “End conditional branching” command. If the alert does not exist, an error will occur. Reference:Utilizing conditional branching
|
If variable equals |
As long as the variable value matches the specified character string, the processing is run between it and the “End conditional branching” command. Reference:Utilizing conditional branching
|
If variable does not equal |
As long as the variable value does not match the specified character string, the processing is run between it and the “End conditional branching” command. Reference:Utilizing conditional branching
|
If variable contains |
As long as the variable value is included in the specified character string, the processing will be run between it and the “End conditional branching” command. Reference:Utilizing conditional branching
|
If variable does not contain |
As long as the variable value does not match the specified character string, the processing will be run between it and the “End conditional branching” command. Reference:Utilizing conditional branching
|
If variable satisfies numerical comparison |
As long as the variable value satisfies the specified numerical comparison condition(s), the processing will be run between it and the “End conditional branching” command. Reference:Utilizing conditional branching
|
Otherwise |
As long as the conditions of “If...” and “Otherwise, if...” commands are not met, the processing will be run between it and the “End conditional branching” command. Reference: Utilizing conditional branching |
End branch |
Use the various conditional branching commands as pairs. The processing between the respective conditional branching command and “End conditional branching” command becomes the processing to run when conditions match. Reference:Utilizing conditional branching |
Unimplemented commands
Command name |
Content |
Lock |
Work-in-progress |
Unlock |
Work-in-progress |
Wait until drawing ends |
Waits until element drawing process completes. This command enables waiting for elements for which the drawing process does not end for a while even after being displayed on the screen.
|