Toolbox

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 TruClient Development window. You can drag it up or down.

Drag steps from the toolbox into the script.

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

  • Verify PDF Content. Verify the content of a PDF document during script execution. For details, see Verify PDF Content.

  • 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 Object Action, Generic Browser Action, and Generic API Action. Blank steps that can be inserted and manually configured. For API argument details, see the specific API in the API Help.

  • Call Function. Insert a custom function in the script. For details, see TruClient functions and function libraries.
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.

    • Add else. Click the Add else link to add an else section to your If block. If the condition is not met, the steps included in the else section run.

    • Remove else. Removes the else section from the If block.

    Note:

    • The else sections apply to all If types (If Block, If Exists, If Verify, and If Browser).

    • If the else section contains steps and you click Remove else, the steps are deleted. Copy and paste them into the main body of your script to save them.

  • If Exists. A logical structure that runs the steps contained in the block if the selected object exists in the application.

  • 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 Browser. A logical structure that enables you to branch your script to run specified steps in a specific browser. See Troubleshooting issues replaying a script across browsers.

  • 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.

  • Evaluate JS on Object. Runs the JavaScript code contained in the step after the specified object is loaded in the application.

  • Evaluate C. Receives a C function name and runs it. You can define functions in the C-functions.c file.

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

  • Rendezvous. Synchronize all Vusers in a Controller scenario to run a specified step at the same time. For example, you may want to test the impact of several users logging into your application at the same time.

    Note: To insert a rendezvous step, drag it from the toolbox and place it above the step you want to synchronize.

Back to top