Rational Robot

  Home  Applications Programs  Rational Robot


“Rational Robot Interview Questions and Answers will guide us now that Rational Robot is a complete set of components for automating the testing of Microsoft Windows client/server and Internet applications. So learn Rational Robot or get preparation for the job of Rational Robot with the help of this Rational Robot Interview Questions with Answers guide”



93 Rational Robot Questions And Answers

41⟩ Naming Scripts Automatically?

1. Open the GUI Record Options dialog box.

2. In the General tab, type a prefix in the Prefix box.

Clear the box if you do not want a prefix. If the box is cleared, you will need to type a name each time you record a new script.

3. Click OK or change other options.

The next time you record a new script, the prefix and a number appear in the Name box of the Record GUI dialog box.

In the following figure, the autonaming prefix is Test. When you record a new script, Test7 appears in the Name box because there are six other scripts that begin with Test.

 237 views

42⟩ How to change the order of the object recognition methods for an object type?

1. Open the GUI Record Options dialog box.

2. Click the Object Recognition Order tab.

3. Select a preference in the Object order preference list. If you will be testing C++ applications, change the object order preference to C++ Recognition Order.

4. From the Object type list, select the object type to modify. The fixed set of recognition methods for the selected object type appears in the Recognition method order list in its last saved order.

5. Select an object recognition method in the list, and then click Move Up or Move Down. Changes made to the recognition method order take place immediately, and cannot be undone by the Cancel button. To restore the original default order, click Default.

6. Click OK.

Important Notes:

. Changes to the recognition method order affect scripts that are recorded after the change. They do not affect the playback of scripts that have already been recorded.

. Changes to the recognition method order are stored in the project. For example, if you change the order for the CheckBox object, the new order is stored in the project and affects all users of that project.

. Changes to the order for an object affect only the currently-selected preference. For example, if you change the order for the CheckBox object in the preference, the order is not changed in the C++ preference.

 212 views

43⟩ How to define an object class and map an object type to it?

1. Identify the class name of the window that corresponds to the object. You can use the Spy++ utility in Visual C++ to identify the class name. You can also use the Robot Inspector tool by clicking Tools > Inspector.

2. In Robot, click Tools < General Options, and then click the Object Mapping tab.

3. From the Object type list, select the standard object type to be associated with the new object class name. Robot displays the class names already available for that object type in the Object classes list box.

4. Click Add.

5. Type the class name you identified in step 1 and click OK.

6. Click OK.

 217 views

44⟩ Pausing and Resuming the Recording of a Script?

To pause recording:

--Click the Pause button on the GUI Record toolbar. Robot indicates a paused state by:

----Depressing the Pause button.

----Displaying Recording Suspended in the status bar.

----Displaying a check mark next to the Record > Pause command.

To resume recording:

-- Click Pause again.

----Always resume recording with the application-under-test in the same state that it was in when you paused.

 227 views

46⟩ How to define script properties?

1. Do one of the following:

. If the script is open, click File > Properties.

. If the script is not open, click File > Open > Script. Select the script and click the Properties button.

2. In the Script Properties dialog box, define the properties. For detailed information about an item, click the question mark near the upper-right corner of the dialog box, and then click the item.

3. Click OK.

 216 views

47⟩ How to add a new action to an existing script?

1. If necessary, open the script by clicking File > Open > Script.

2. If you are currently debugging, click Debug > Stop.

3. In the Script window, click where you want to insert the new actions. Make sure that the application-under-test is in the appropriate state to begin recording at the text cursor position.

4. Click the Insert Recording button on the Standard toolbar. The Robot window minimizes by default, or behaves as specified in the GUI Record Options dialog box.

5. Continue working with the application-under-test as you normally do when recording a script.

 213 views

48⟩ How to code a script manually?

1. In Robot, click File > New > Script.

2. Type a script name (40 characters maximum) and, optionally, a description of the script.

3. Click GUI.

4. Click OK. Robot creates an empty script with the following lines:

Sub Main

Dim Result As Integer

'Initially Recorded: 01/17/05 14:55:53

'Script Name: GUI Script

End Sub

5. Begin coding the GUI script.

 231 views

49⟩ How to add a feature to an existing GUI script?

1. If necessary, open the script by clicking File > Open > Script.

2. If you are currently debugging, click Debug > Stop.

3. In the Script window, click where you want to insert the feature. Make sure that the application-under-test is in the appropriate state to insert the feature at the text cursor position.

4. Do one of the following:

- To add the feature without going into recording mode, click the Display GUI Insert Toolbar button on the Standard toolbar. The Robot Script window remains open. - To start recording and add the feature, click the Insert Recording button on the Standard toolbar. The Robot window minimizes by default, or behaves as specified in the GUI Record Options dialog box. Click the Display GUI Insert Toolbar button on the GUI Record toolbar.

5. Click the appropriate button on the GUI Insert toolbar.

6. Continue adding the feature as usual.

 220 views

50⟩ How to set and clear breakpoints?

1. If necessary, open a script by clicking File > Open> Script.

2. Place the pointer on the line where you want to set a new breakpoint or clear an existing breakpoint. You can only place a breakpoint on a line where an SQABasic command is executed. Breakpoints on comments, labels, and blank lines are not supported. Also, there are a very few commands that do not support breakpoints (for example, Dim and Sub).

3. Click once to insert a blinking text cursor. (You can also highlight the entire line or any part of the line.)

4. Click Debug > Set or Clear Breakpoint. If you set a breakpoint, Robot inserts a solid red circle in the left margin or highlights the line. If you clear a breakpoint, Robot removes the circle or highlighting.

5. If you set a breakpoint, click Debug > Go. Robot executes as far as the breakpoint, and then displays a yellow arrow in the left margin of that line or highlights the line.

 213 views

51⟩ How to insert a timer while recording or editing a script?

1. Do one of the following:

. If recording, click the Display GUI Insert Toolbar button on the GUI Record toolbar. . If editing, position the pointer in the script and click the Display GUI Insert Toolbar button on the Standard toolbar.

2. Click the Start Timer button on the GUI Insert toolbar.

3. Type a timer name (40 characters maximum) and click OK. If you start more than one timer, make sure you give each timer a different name.

4. Perform the timed activity.

5. Immediately after performing the timed activity, click the Stop Timer button on the GUI Insert toolbar.

6. Select a timer name from the list of timers you started and click OK.

 206 views

52⟩ How to insert a log message into a script during recording or editing?

1. Do one of the following:

. If recording, click the Display GUI Insert Toolbar button on the GUI Record toolbar.

. If editing, position the pointer in the script and click the Display GUI Insert Toolbar button on the Standard toolbar.

2. Click the Write to Log button on the GUI Insert toolbar.

After playback, you can view logs and messages using TestManager.

 210 views

53⟩ How to Choose Network Recording?

1. Click Tools Tools Tools Tools > Session Record Options Session Record Options Session Record Options Session Record Options.

2. Click the Method Method Method Method tab, and click Network recording Network recording Network recording Network recording.

3. Optionally, click the Method:Network Method:Network Method:Network Method:Network tab, and select the client/server pair that you will record. The default is to record all of the network traffic to and from your computer.

4. Optionally, click the Generator Filtering Generator Filtering Generator Filtering Generator Filtering tab to specify the network protocols to include in the script that Robot generates.

 199 views

54⟩ How to create a proxy computer?

1. Click Tools Tools Tools Tools > Session Record Options Session Record Options Session Record Options Session Record Options.

2. Click the Method Method Method Method tab and make sure that Proxy recording Proxy recording Proxy recording Proxy recording is selected.

3. Click the Method:Proxy Method:Proxy Method:Proxy Method:Proxy tab.

4. Click Proxy Admin Proxy Admin Proxy Admin Proxy Admin.

5. In Proxy:Port Proxy:Port Proxy:Port Proxy:Port, specify the proxy computer’s port number. Note that Robot has already detected and specified the proxy computer’s name. You can specify any available port number. Avoid the well-known ports (those below 1024). If you specify a port number that is unavailable, Robot prompts you for a new port number.

6. In the Server:Port Server:Port Server:Port Server:Port list, select a server involved in the test.

7. Click Create Proxy Create Proxy Create Proxy Create Proxy.

 206 views

55⟩ How to stop recording and generate scripts in a Session?

1. Click the Stop Recording button on the Session Record floating toolbar.

2. In the Name of the just-recorded script box, type or select a name for the script that you just finished recording, or accept the default name.

3. Click OK.

 223 views

57⟩ How to cancelling a Script in a Single-Script Session?

1. During recording, click the Stop button on the Session Record floating toolbar.

2. In the Stop Recording dialog box, click Ignore just-recorded information.

3. Click OK in the Stop Recording dialog box.

4. Click OK to acknowledge that the session is being deleted.

 229 views

58⟩ How to split a session into multiple scripts?

1. During recording, at the point where you want to end one script and begin a new one, click the Split Script button on the Session Record floating toolbar.

2. Enter a name for the script that you are ending, or accept the default name.

3. Click OK.

4. Repeat the previous steps as many times as needed to end one script and begin another. 5. After you click the Stop Recording button to end the recording session, type or select a name for the last script you recorded, or accept the default name.

 201 views

59⟩ How to regenerate Scripts from a Session?

1. In Robot, click Tools > Regenerate Test Scripts from Session.

2. Click the name of the session to use.

3. Click OK to acknowledge that the regeneration operation is complete.

 212 views

60⟩ How Timers Work?

1. Start the timer (click Insert--Start Timer) just before you click the button to send the query. This action inserts the VU emulation command start_time into the script.

2. Stop the timer (click Insert --Stop Timer) as soon as the results appear. This action inserts the VU emulation command stop_time into the script.

 213 views