Вы находитесь на странице: 1из 6

Ajax TruClient Protocol

Ajax TruClient Protocol Overview The Ajax TruClient protocol interactively records scripts as you navigate through your business process. This enables TruClient to easily record and replay dynamic, complex web-based applications and create user friendly scripts.

9/5/2013

Ajax Tru Client

Ajax TruClient Terms & Meaning


Step : Action : The action that defines the step. The list of relevant actions is determined by the object roles. Object Timeout: If the object does not appear before this time in seconds, the step returns an error. Step Timeout: If the End Event is not reached by this time in seconds, the step returns an error. The way the script behaves when such an error occurs can be configured in the Run-Time settings dialog box. Minimum Time :The least time in seconds that the execution of the step will take. The value of this field can be either 0, as recorded or another manually set number. The step execution will end immediately after the steps end event if minimum time is = 0.A minimum time value greater than 0 forces Ajax TruClient to wait the additional time (if not elapsed already) from the step's end event before moving on to the next step. Ajax TruClient records and stores the time that elapsed between recorded actions and allows you to set the minimum time to as recorded. End Event : Ajax TruClient defines when a End Event occurs during replay. It can be one of the following:
Action Completed : Step ends when its action is completed. An example of an action is a button click. DOM load :Step ends when the process of loading a document completes. DOM content loaded : Step ends when the HTML parsing of the document completes. Step network completed : Step ends when all HTTP requests have completed including requests initiated by XMLHttpRequest. Step synchronous network completed: Step ends when all HTTP requests have completed excluding requests initiated by XMLHttpRequest. Dialog opened: Step ends when a dialog is opened. Automatic: Not Set Yet. The automatic end event has not yet been determined.

9/5/2013

Ajax Tru Client

Ajax TruClient Terms & Meaning


Arguments : Contains step arguments. These arguments differ for different step actions and roles Object Roles: The functions that Ajax TruClient understands about an object. This information is read-only and is updated dynamically depending on how the object is used during recording. The list of available step actions is defined by these roles. Name: A logical name for the object. This does not affect replay and can be modified to enhance readability. ID Method: The method of identifying the object. Automatic :Ajax TruClient's default object identification method. If this method does not successfully find the object during replay, click the Improve Object Identification button, reselect the correct object from the application, and replay the script again. Xpath: Identifies the object based on its XPath expression that defines the object in the DOM tree. When you select this option, the next edit box in the display is labeled XPath and enables you to select an XPath to define the object. See below for details. JavaScript: JavaScript code that returns an object. When you select this option, the next edit box in the display is labeled JavaScript and enables you to define a JavaScript to define the object. See below for details. Related Objects: Tool to enable Ajax TruClient to identify a target object in relation to an anchor object. Transactions : Allows you to create, modify, and view transactions. For more information, see How to Enhance Ajax TruClient Scripts. XPath/JavaScript : XPath : VuGen generates from zero to a few suggested XPaths, depending on the object. Click the drop-down arrow next to the XPath edit box to select a suggested XPath for the object. You can manually modify the suggested XPath. To revert to one of the original expressions generated by VuGen, select one of the options from the drop-down again. You can also click the Regenerate expression button and select an object. VuGen generates a new set of suggestions based on the selected object. JavaScript : If Ajax TruClient can generate a suggested XPath for the object, that XPath is entered as the argument in an evalXPath function in the JavaScipt field. The evalXPath function returns an array of the objects defined by the XPath in the argument. You can modify the suggested XPath in the argument to return a different list of objects, or you can enter a different JavaScript. For example: document.getElementById("Search Button") returns an element that has a DOM ID attribute of "Search Button". Ajax TruClient also includes a random function that returns a random item from the array that is provided as its argument. For example: random(document.getElementsByTagName("a")) . Note: The evalXPath and random functions are available as object identification methods only. They are not recognized in an Evaluate JavaScript code step.

9/5/2013

Ajax Tru Client

Ajax TruClient - Developing TruClient Script


How to Develop Ajax TruClient Scripts How to Synchronize Ajax TruClient Scripts Steps How to Calculate the Number of Load Generators Required for TruClient Scripts Ajax TruClient Home Tab Ajax TruClient Edit Tab Ajax TruClient Window Tab Ajax TruClient Toolbox Debugging Ajax TruClient Scripts Ajax TruClient Alternative Steps Ajax TruClient Script Levels Ajax TruClient Snapshots How to Debug Ajax TruClient Scripts How to Resolve Object Identification Issues in Ajax TruClient Troubleshooting Object Identification Issues in Ajax TruClient Scripts Troubleshooting Ajax TruClient Scripts Troubleshooting Load Mode for Ajax TruClient Scripts

9/5/2013

Ajax Tru Client

Ajax TruClient - Debugging Ajax TruClient Scripts


Ajax TruClient Alternative Steps Ajax TruClient Script Levels Ajax TruClient Snapshots How to Debug Ajax TruClient Scripts How to Resolve Object Identification Issues in Ajax TruClient Troubleshooting Object Identification Issues in Ajax TruClient Scripts Troubleshooting Ajax TruClient Scripts Troubleshooting Load Mode for Ajax TruClient Scripts

9/5/2013

Ajax Tru Client

Ajax TruClient - Enhancing a TruClient Script


Ajax TruClient Event Handlers Ajax TruClient Functions and Function Libraries Working With JavaScript In Ajax TruClient Scripts How to Enhance Ajax TruClient Scripts How To Use the Events Handler in Ajax TruClient How to Insert and Modify Loops in Ajax TruClient How to Insert Custom JavaScript and C Code into Ajax TruClient Scripts How to Use VTS in TruClient Scripts How To Create And Use Function and Libraries How to Use Client Side Breakdown in Ajax TruClient Scripts Ajax TruClient Event Handler Editor Dialog Box Ajax TruClient Functions Ajax TruClient Step Arguments Ajax TruClient Properties Ajax TruClient Client Side Breakdown Data Create New Function Dialog Box (Ajax TruClient) Ajax TruClient Transaction Editor Dialog Box

9/5/2013

Ajax Tru Client

Вам также может понравиться