Share this page

# Using the XTools Object

The XTools object supplies the following functions that you can use to perform general tasks.

run

Runs command line with passed attributes.

run(Command, [Args = `""`], [Timeout = -1], [UseOutput = TRUE])

Command. Application executable file.

Args. Application arguments. Optional. Default = `""`

Timeout. Timeout in milliseconds. If this is -1, ALM waits an infinite amount of time for the application to finish running.

UseOutput. If TRUE, ALM replaces the standard output with the VAPI-XP output window.

WrapArray

Creates an array of variants from an array of objects. For example, if a called object returns as a method result an array of strings, none of the supported script engines is able to read the array. Calling the WrapArray function and passing the returned array as a function parameter creates an array of variants that can be understood by the scripting engine.

WrapArray (array)

array. Array to wrap.

Sleep

Suspends script execution for a specified amount of time.

Sleep(interval)

interval. Time (in milliseconds) for script execution suspension

https://admhelp.microfocus.com ALM 8942
Tips to improve your search results... ALM Help Center ALM Help Center ALM Help 16.00-16.0.1 All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: