Sie sind auf Seite 1von 19

IBM 000-842

000-842 Rational Functional Tester for Java


Practice Test

Updated: Nov 25, 2009


Version 1.1

Page 1 of 19
IBM 000-842: Practice Exam
QUESTION NO: 1
How do you start the application under test?

A. use the Windows Start menu


B. simply begin recording
C. open a command line and start the application by typing its name
D. click the Start Application button on the recording toolbar

Answer: D

QUESTION NO: 2
While recording a script, the recording monitor _____.

A. appears at the conclusion of recording


B. is only displayed on the toolbar
C. does not appear
D. displays a message for each action

Answer: D

QUESTION NO: 3
What can be tested when recording a verification point?

A. an objects data only


B. an objects data or properties only
C. whether or not the object is working
D. an objects data, properties, or existence

Answer: D

QUESTION NO: 4
What can you use to select an object as a verification point?

A. the object finder, the object picker, or the object browser


B. the main object browser, the test object browser, or the extra object browser
C. the object finder, the test object browser, or the delay method
D. the delay method1 the scripting method, or the pointer method
Page 2 of 19

Certification Exams Resources Site - www.koolexams.com 2


IBM 000-842: Practice Exam
Answer: C

QUESTION NO: 5
A recording is started by:

A. Enteringscript_record on the command line


B. creating a script and then pressing the record button in the RFT application
C. starting the application under test
D. Starting RFT

Answer: B

QUESTION NO: 6
How do you stop recording?

A. click the Stop Recording button on the recording toolbar


B. end the application under test
C. close RFT
D. close the recording monitor

Answer: A

QUESTION NO: 7
Which three actions are possible with RFT? (Choose three.)

A. use a wizard to substitute literals withdatapool variables


B. substitute literals in verification points withdatapool variables
C. create adatapool while recording a data-driven script
D. create scripts in c#

Answer: A,B,C

QUESTION NO: 8
You must _____ a script with a datapool before substituting literal values
in the script with
Page 3 of 19
references to datapool variables.
Certification Exams Resources Site - www.koolexams.com 3
IBM 000-842: Practice Exam
A. share
B. associate
C. run
D. disassociate

Answer: B

QUESTION NO: 9
When is the best time to use data-driven testing?

A. when the test only needs to be run once


B. when the test steps change based on the test input data
C. when the test must be run multiple times with different data
D. when the test requires a lot of manual data entry

Answer: C

QUESTION NO: 10
Functional Tester allows you to import an external datapool from which of the following? (Choose
three.)

A. an external .csv file


B. another Functional Testerdatapool
C. an existingTestManager datapool
D. an access (.mdb) file

Answer: A,B,C

QUESTION NO: 11
What will the following CallScript do? CallScript (myScript, null, DP_ALL)

A. cause the script to run an infinite number of times


B. cause the script to iterate through the entiredatapool
C. cause the script to run through 100datapool values
D. causemyScript to always pass

Answer: B
Page 4 of 19

Certification Exams Resources Site - www.koolexams.com 4


IBM 000-842: Practice Exam
QUESTION NO: 12
What is one way to insert data-driven commands into the test script?

A. use the Insert Data Driven Commands button while recording


B. use the Insert Data Driven Commands button while executing
C. the commands are generated automatically while importing thedatapool
D. use the super helper class after recording

Answer: A

QUESTION NO: 13
What must you do before editing the datapool using an external application?

A. make it a public datapool


B. make it a private datapool
C. export it to a .csv file
D. import it from a .csv file

Answer: C

QUESTION NO: 14
Which statement is true about an RFT test datapool?

A. It is exclusive for only one test script.


B. It is a collection of related data records.
C. It is automatically generated during script record.
D. It is a collection of related test scripts.

Answer: B

QUESTION NO: 15
What must you do to view a comparator of a failed verification point from an RFT text log?

A. open a web browser and browse to open the file: \<project_path>


\<log_name>\<log_vp_name>.rftvd for the verification point you want to view
B. right-click on the test log and select Failed Verification Points from the right-click menu, then
select the verification point you want to view
C. open the test log, right-click on the verification point line you want to view and selectPage
View
5 of 19
Results from the right-click menu

Certification Exams Resources Site - www.koolexams.com 5


IBM 000-842: Practice Exam
D. log results in another format since you cannot open a comparator from a text log

Answer: B

QUESTION NO: 16
Given an existing TestManager Rational Test project, what are the steps to log results to
TestManager?

A. fromTestManager, create a new Test Script Type for RFT, then from RFT, select the
Functional Test logging preferences to TestManager
B. from RFT,select the Functional Test logging preferences to TestManager, then select the
TestManager project when you run an RFT test
C. from RFT, associate the Rational Test Project with the RFT project, then select the Functional
Test logging preferences toTestManager
D. from the Rational Administrator, associate the RFTproject to the Rational Test Project, then
from RFT, select the Functional Test logging preferences to TestManager

Answer: C

QUESTION NO: 17
Out of the box, what are the different options for logging RFT tests?

A. HTML, text, custom,TestManager, and none


B. HTML, text, TPTP,TestManager, and none
C. TestManager, CQTM, TPTP, HTML, and none
D. HTML, PDF, text,TestManager, and none

Answer: B

QUESTION NO: 18
Not including TestManager or custom logging, how can you organize RFT test results?

A. define and follow a naming convention for all test logs


B. define and follow a naming convention for all logs and log subfolders
C. create as many folders in the *_logs project as needed and drag logs into the appropriate
folders
D. create additional log projects which are associated with the primary RFT project, (for example,
<project>_acceptance_logs)
Page 6 of 19

Certification Exams Resources Site - www.koolexams.com 6


IBM 000-842: Practice Exam
Answer: A

QUESTION NO: 19
How do you perform image verification in a test?

A. select Perform Image Verification Point from the Verification Point and Action Wizard
B. select the Perform Properties Verification Point from the Verification Point and Action Wizard,
then select only the .src or other property for the image
C. download and install the RFT Enhancement Pack plug-in from IBM Rational Support
D. download and install the Image Comparator for Rational Functional Tester 2003.06 utility from
developerWorks

Answer: D

QUESTION NO: 20
What should the tester open to view Test Objects, Main Data Area and Recognition Data?

A. the test script


B. the test comparator
C. the object map
D. the log viewer

Answer: B

QUESTION NO: 21
What should the tester do to open the comparator in an HTML log after the test has been played
back?

A. select View > Failures from the menu


B. click the View Results link in the test log
C. nothing, because the comparator open automatically
D. select Open > Comparator from the menu

Answer: B

QUESTION NO: 22
Page 7 of 19

Certification Exams Resources Site - www.koolexams.com 7


IBM 000-842: Practice Exam
What should the tester view to discover the current script action being executed?

A. playback monitor
B. the execution window
C. the test script
D. the application under test

Answer: A

QUESTION NO: 23
The two phases of playing back a script are script development and _____.

A. unit testing
B. manual verification
C. reviewing results
D. regression testing

Answer: D

QUESTION NO: 24
The tester resets their test environment and sets the playback environment. What is the tester
ready to do?

A. record the test


B. set recording options
C. view and analyze the results
D. play back the script

Answer: D

QUESTION NO: 25
If a test fails because the tester has updated the test data, what should the tester do to prevent
continued failures?

A. re-record the test


B. use the comparator and update the baseline data
C. nothing, because the test is supposed to fail
D. change the test data
Page 8 of 19

Certification Exams Resources Site - www.koolexams.com 8


IBM 000-842: Practice Exam
Answer: B

QUESTION NO: 26
Which three methods write to the RFT log? (Choose three.)

A. logError()
B. logDefect()
C. logInfo()
D. logWarning()
E. logSuccess()

Answer: A,C,D

QUESTION NO: 27
Given the following:
ProcessTestObject pid = startApp("ClassicsJavaA");
What are two valid methods one can call with a ProcessTestObject? (Choose two.)

A. pid.duplicate()
B. pid.kill()
C. OK(pid).click()
D. pid.find(atDescendant("value", "OK"))
E. pid.getObjects();

Answer: A,D

QUESTION NO: 28
Given the following code snippet:
OK().waitForExistence();
Assuming that no changes have been made to the Functional Tester default playback settings,
which two statements will cause Functional Tester to wait for 60 seconds for the OK button to
appear? (Choose two.)

A. setOption(IOptionName.MAXIMUM_FIND_OBJECT_TIME, 60.0)
B. setOption(IOptionName.MAXIMUM_WAIT_FOR_EXISTENCE, 60.0)
C. setOption(IOptionName.TIME_MULTIPLIER, .5)
D. setOption(IOptionName.TIME_MULTIPLIER, 2.0)

Page 9 of 19

Certification Exams Resources Site - www.koolexams.com 9


IBM 000-842: Practice Exam
Answer: B,C

QUESTION NO: 29
Given the following:
A script named BuyCD has been created.
A Helper Superclass named HelperSuper1 has been created.
A Helper Superclass named HelperSuper2 has been created.
Which of the following are valid Functional Tester script class inheritance hierarchies? (Choose
two.) Note: inherits from is expressed by the symbol ?

A. BuyCD -> BuyCDHelper -> RationalTestScript


B. BuyCD -> HelperSuper1 -> RationalTestScript
C. Helper1 ->RationalTestScript -> BuyCD
D. BuyCD -> HelperSuper1 -> HelperSuper2 -> RationalTestScript

Answer: A,D

QUESTION NO: 30
Given the following code snippet in which Customers() represents an HTML table from which data
needs to be extracted:
Customers().getTestData("contents");
What data type is returned by getTestData("contents")?

A. ITestDataTable
B. String
C. TableData
D. TestData

Answer: A

QUESTION NO: 31
Which statement is true about Functional Tester scripts and datapools?

A. All scripts are associated with either a private or shareddatapool, and a script cannot exist
without a datapool
B. There are three types ofdatapools: private, shared and global
C. Thedatapool associated with a script cannot be changed once the association has been made
D. Adatapool can be created while in recording mode Page 10 of 19

Certification Exams Resources Site - www.koolexams.com 10


IBM 000-842: Practice Exam
Answer: D

QUESTION NO: 32
Which Java method advances the datapool cursor to the next row in the datapool?

A. dpMoveNext()
B. dpMoveCursor()
C. dpNext()
D. dpNextRow()

Answer: C

QUESTION NO: 33
Which three statements are true about HelperSuper classes? (Choose three.)

A. Scripts can share HelperSuperclasses.


B. Scripts cannot share HelperSuperclasses.
C. Scripts can inherit from multiple HelperSuperclasses.
D. Scripts can inherit from a HelperSuperclass that resides in a .jar file.

Answer: A,C,D

QUESTION NO: 34
A script needs to perform an action on an object. One of the recognition properties of the object is
the .url property. The URL is dynamic. At recording time, the URL was http://www-3.ibm.com.
However, it can vary every time the script is played back. In particular, the portion of the .url
property that is subject to change is the digits that appears after the dash.
Which regular expression will match the value of the .url property regardless of the number of
digits between the - and the .?
Note: The regular expression should NOT match the .url property if no digits appear after the dash
(as in ww-.ibm.com).

A. www-*\.ibm\.com
B. www-{num}?\.ibm\.com
C. www-{num}+\.ibm\.com
D. www-[0-9]*\.ibm\.com
E. www-[0-9]\.ibm\.com

Page 11 of 19

Certification Exams Resources Site - www.koolexams.com 11


IBM 000-842: Practice Exam
Answer: C

QUESTION NO: 35
What is the effect the Clear State on Close setting in the Object Map interface when you exit the
object map?

A. All new test objects will be accepted by removing the "New" designation from the test object.
B. All new test objects will be accepted by changing theNew designation to Accepted for the test
object.
C. All unused test objects will be removed from the map.
D. All test objects that have not been accepted will continue to have a designation of "New."

Answer: A

QUESTION NO: 36
Exhibit # 1:

Exhibit # 2:

Page 12 of 19

Certification Exams Resources Site - www.koolexams.com 12


IBM 000-842: Practice Exam
A script needs to perform an action on an HTML List object. Figure 6.1 shows the recognition
properties of the list object. Figure 6.2 shows the recognition properties of the HTML document.
What will be the score of the found test object at runtime if the .text and id recognition properties in
the list object are different and the .url property of the HTML Document object?

A. 1000
B. 1400
C. 10000
D. 14000

Answer: D

QUESTION NO: 37
Given the following settings:
Maximum acceptable recognition score 10000
Last chance recognition score 20000
Warn if accepted score is greater than 10000
Maximum time to attempt to find Test Object 20
How will RFT behave at runtime if the recognition score of a found object is 10000?

A. It will accept the found object after waiting for 20 seconds for an object with better recognition
and write an Ambiguous Recognition Warning to the log.
B. It will accept the found object after waiting for 20 seconds for an object with better recognition
and write nothing to the log.
C. It will accept the found object immediately and write an Ambiguous Recognition Warning to the
log.
D. It will accept the found object immediately and write nothing to the log.
E. It will immediately throw anObjectNotFoundException and write an Ambiguous Recognition
Failure to the log.
F. It will throw anObjectNotFoundException after waiting for 20 seconds for an object with better
recognition and write an Ambiguous Recognition Failure to the log.

Answer: D

QUESTION NO: 38
Which feature is NOT offered by the Object Map interface?

A. the ability to delete test objects that are not referenced by any scripts
B. the ability to delete scripts that do not reference any test objects in the object map Page 13 of 19

Certification Exams Resources Site - www.koolexams.com 13


IBM 000-842: Practice Exam
C. the ability to find all test objects not referenced by scripts
D. the ability to merge two test objects

Answer: B

QUESTION NO: 39
What is the minimum weight that can be assigned to a recognition property?

A. no value (leave blank)


B. 0
C. 1
D. 10
E. 100

Answer: B

QUESTION NO: 40
Which regular expression offers a successful way to ensure the order number is a 1 to 3-digit
number in the following format? Your order number is 125.

A. Your order number is [0-9]{3}.


B. Your order number is [0-9]{3}\.
C. Your order number is [0-9]{1,3).
D. Your order number is [0-9]{1,3)\.

Answer: D

QUESTION NO: 41
What are the default values for retry interval and maximum retry time?

A. 2 second retry interval, 20 seconds maximum retry time


B. 5 second retry interval, 30 seconds maximum retry time
C. 1 second retry interval, 5 seconds maximum retry time
D. 3 second retry interval, 15 seconds maximum retry time

Answer: A

Page 14 of 19

Certification Exams Resources Site - www.koolexams.com 14


IBM 000-842: Practice Exam
QUESTION NO: 42
Which objects can be tested with a State verification point?

A. A combo box and a list box


B. A label and a text box
C. A table and a tree view
D. A checkbox and a toggle button

Answer: D

QUESTION NO: 43
What is an appropriate use of the command Test Object > Highlight when working with verification
points?

A. It is used to highlight the test object at playback (to identify what is being tested).
B. It is used to create a new verification point in the current script
C. It is used to highlight the test object (to verify it is found in the application)
D. It is used to identify all objects in an application which can be tested

Answer: C

QUESTION NO: 44
Which statement is true about the "Time Delayed" method when you are creating verification
points in your scripts?

A. It introduces a fixed delay after a previous action before the verification point is tested
B. It allows a verification point to keep trying until the time specified has elapsed
C. It gives the tester time to reveal pop-up objects (such as menus) during the creation of a
verification point
D. It gives the tester the opportunity to specify a delay after a verification point fails

Answer: C

QUESTION NO: 45
Given the following manual verification point
vpManual ("manual1", "The rain in Spain", "The Rain in Spain").performTest();
What are the results? Page 15 of 19

Certification Exams Resources Site - www.koolexams.com 15


IBM 000-842: Practice Exam
A. The two strings are the same, and a pass would be generated in the log
B. The two strings are different, and a fail would be generated in the log
C. The syntax is incorrect, so this would not compile
D. This will compile but the parameters are mixed up, and a fail would be recorded in the log. The
correct syntax is:vpManual ("The rain in Spain", "The Rain in Spain",
"manual1").performTest();

Answer: B

QUESTION NO: 46
Which branches under Preferences contain specific settings to enable the ClearCase integration?

A. Workbench and Test


B. Functional Test and Run/Debug
C. Workbench and Team
D. Plug-in Development and Functional Test

Answer: C

QUESTION NO: 47
When you set break points, why does the script not stop at the break points and switch over to the
debug perspective?

A. This is a known eclipse bug in version 6.1 and has been corrected in the latest release or last
interim fix
B. The break point has already been recognized by the JVM and the break point needs to be
toggled
C. Either the icon or debug functional tester script was not invoked or the shift + F11 menu option
was not invoked
D. The debug perspective is not listed as an available perspective when trying to debug a script

Answer: C

QUESTION NO: 48
When you enable web browsers, what is the best way to select the Linux or UNIX web browser?

A. You use the Search button, choose Search All, select the executable, and provide all the
needed parameters. Page 16 of 19

Certification Exams Resources Site - www.koolexams.com 16


IBM 000-842: Practice Exam
B. Modify the registry to enable Linux orUnix web browser support
C. Modify the Internet Explorer settings to refer to a Linux orUnix web browser
D. You use the Search button, choose Search In, browse to the executable, and provide all the
needed parameters

Answer: D

QUESTION NO: 49
In which situation is it best to use the Browser Enablement Diagnostic tool?

A. when the web browser does not launch when invoked through Functional Tester
B. when testers are trying to determine it their web browsers are compatible with Functional Tester
C. when Functional Tester is in the recording process and no HTML objects are being
Recognized
D. when Functional Tester is not able to launch theviewlet comparator on the HTML log

Answer: C

QUESTION NO: 50
You cannot access help file from Rational Functional Tester. You receive an error or the page
loads slowly. How can this be fixed?

A. talk to the LAN Administrator to see if there is a problem with the corporate network or if the ISP
is having performance issues
B. in Network properties, change the IP configuration to static IP and provide a valid IP address,
which can be obtained from the LAN Administrator
C. in the Network Advanced settings for proxies, remove "127.0.0.1;localhost" from the
Exceptions if these addresses are listed
D. if your host was configured to use DHCP for IP assignment, make sure that the "Automatically
detect settings" checkbox is cleared

Answer: D

QUESTION NO: 51
Where do you set the option for switching to Test Debug perspective when debugging?

A. Preferences > Functional Test > Workbench > Advanced


B. Preferences > Java > Debug Page 17 of 19

Certification Exams Resources Site - www.koolexams.com 17


IBM 000-842: Practice Exam
IBM 000-842: Practice Exam
C. Preferences > Run/Debug > Console
Answer: A
D. Preferences > Test

Answer: A

QUESTION NO: 52
How do you add line numbers within the script editors view?

A. use a third party plug-in because this option is not available within the tools interface
B. download the latest version of the plug-in
C. select the option under the main menu > Window > Preferences > Debug
D. select the option under the main menu > Window > Preferences > Editor

Answer: D

QUESTION NO: 53
How many default Java environments can you have within one configuration of Rational
Functional Tester?

A. one for each instance of the application under test


B. as many default Java environments as are needed to do testing
C. You can change the java environments dynamically when testing different applications.
D. only one

Answer: D

QUESTION NO: 54
What is the best practice when changing object maps that are already assigned to Functional Test
projects?

A. highlight the project in the Functional Test projects, right-click, select Properties > Functional
Test project and browse to the new object map
B. record a new script, select the new Functional Test project, click next and browse to the new
test object map
C. modify the XML file, configurations.rftcfg, locate the object map section, enter the proper object
and save the XML file
D. right-click the test object map in the script explorer, choose the Open option and make
necessary changes
Page 18 of 19
Page 19 of 19

Certification Exams Resources Site - www.koolexams.com 18


Certification Exams Resources Site - www.koolexams.com 19

Das könnte Ihnen auch gefallen