TruClient toolbox for native mobile

The toolbox contains all of the steps that you can add to a script. The toolbox opens and closes by clicking on the tab in the development window. You can drag it up or down.

You add steps to the script from the toolbox either by dragging it to the test step pane or by double-clicking on the desired step.

This section describes the TruClient toolbox that is specific to Mobile Center integration.

Toolbox functions

UI Element
Description
Functions
  • Verify. Verify that an object exists in the application.

  • Wait. Wait for a specified number of seconds (or milliseconds), before continuing with the next step.

  • Wait for Object. Wait for an object to load before continuing with the next step.

  • Generic Device Action. Mobile device related action steps that can be inserted and manually configured.

  • Generic Object, Browser, and API Actions. Blank steps that can be inserted and manually configured.

  • Activate WebView. A step that activates the current WebView. When running individual steps or if you want to highlight a Web object, you must first run the Activate WebView step. During recording, each time the TruClient records a WebView component, it generates an Activate WebView step.

  • Call Function. Insert a custom function in the script. For details, see TruClient Functions and Function Libraries.
Application
  • Using Application. Notifies the Mobile Center server which application is currently being used. This is necessary, since your script can use multiple applications. Using Application steps are generated automatically, but if you make manual changes or work on a different application than the active one, you will need to add this step.

  • Launch Application. Launches the selected app. If you installed an app through the Mobile Center wizard, you can instruct your script to reinstall it on the device by selecting the install option in the Arguments section.

Flow Control
  • For Loop. A logical structure that repeats the steps contained in the loop a specified number of times.

  • If Block. A logical structure that runs the steps contained in the block if the condition is met.
  • If Verify. A combination of “If Block” and “Verify”, a logical structure that runs the steps contained in the block if the condition on a property of the selected object is met.
  • If Exists. A logical structure that runs the steps contained in the block if the selected object exists in the application.
  • Break. Causes the loop to end immediately without completing the current or remaining iterations.

  • Continue. Causes the current loop iteration to end immediately. The script continues with the next iteration.

  • Catch Error. Catches an error in the step immediately preceding and runs the contents of the catch error step. For more information, see Catch error step.

  • Exit. Exits the iteration or the entire script depending on the specified setting.

Miscellaneous
  • Evaluate JavaScript. Runs the JavaScript code contained in the step.

  • Comment. A blank step which allows you to write comments in your script.

 

Back to top

See also: