Testing Mobile Business Object Operations

Configure operation arguments and test them against the data source to which they are bound. Optionally create a reusable configuration for future testing.

  1. From the Mobile Application Diagram, select the operation you want to test.
  2. Right-click the operation and select Test Execute.
    Note: You can also access the Test Execute dialog when creating mobile business object operations, or from the operation's Definition tab in the Properties view.
  3. From the Test Execute dialog, configure the operation arguments used to test the operation.
    Test Execute Dialog Instructions
    Field Description
    Operation arguments
    • Argument name – (read-only) the name of the data source argument.
    • Datatype – (read-only) the argument's datatype.
    • Nullable – (read-only) accepts NULL if selected.
    • Value – supply a value for the operation argument compatible with the datatype, to pass to the data source. To select NULL as the value, click in the field next to the parameter, then click the down arrow on the right to select NULL as the value from the drop-down. If the datatype is binary, bigbinary, bigstring, date, datetime, or time, select the input dialog in which you can select a value.
      The displayed initial value follows these rules:
      1. If the operation argument does not map to a personalization key, displays the default value of the load argument.
      2. If the operation argument is mapped with a personalization key with a non-null default value, displays the default value of the personalization key, otherwise the default value is from itself.
      3. If the operation argument is a wrapper structure argument, since its default value is disabled, the initial value comes from the next level argument which is also a structure argument, and the next level also follows the above rules.

    You can order the operation arguments by selecting the column heading by which you want to order.

    Existing Configurations Select either an existing configuration that contains test settings, or test without using a configuration:
    • If you continue without a configuration, then the preview uses the parameter data you provided. Optionally provide a configuration name and click Save to save your settings as a configuration. If you enter a name without clicking Save, the configuration is not created.
    • Select an existing configuration from which you test the operation.
    • Delete – deletes the selected configuration.
    • Delete all – deletes all saved configurations.
    • Load default – loads the default value for each parameter.
    Test Execute Select Test Execute to pass the parameters to the data source and view the results in the Preview Result screen. A warning message appears. Click OK to continue.
    Save as default values Saves the argument values during the preview as default values for the operation arguments or mapped personalization keys by the rule: where the initial value comes from determines where it is saved to, which is reflected in the Operation Arguments tab in the Properties view.