Sie sind auf Seite 1von 18

TESTING CONCEPTS

1) Entry Criteria of Testing Process


a Test Plan
b Fully integrated software Program
c SRS
d All of the Above
2) Risk Management activities
a Risk Mitigation
b Risk Monitoring
c Risk Planning
d All of the above
3) Quality assurance is
a Process oriented
b Product oriented
c Quality oriented
d Both (i) and (iii)
4) Which is not a work product
a Test Plan
b Build
c Source code with comments
d User manual
5) Testing can show
a Presence of bugs
b Absence of bugs
c Quality
d Both (a) and (c)
6) They can often be used interchangeably
a Defect , Error, Fault
b Defect , Error, Bugs
c Defect , Fault, Bug
d Failure , Error, Fault
7) Black Box Testing is not
a Functional testing
b Structural testing
c Behavioral Testing
d Opaque Testing
8) White box testing is
a 50% Code coverage
b 100% Code coverage
c Can be any percentage
d 0% code coverage
9) Which is a non-incremental testing
a) Big-Bang Testing
b) Thread Testing
c) Both
d) None
10) Which is an user acceptance testing
a Alpha Testing
b Release Testing
c Beta Testing
d All of the above
11) Which is not a part of performance testing
a Stress Testing
b Load Testing
c Security testing
d Volume testing
12) Which is not a phase of testing life cycle
a Test case design
b Preparing log file
c Preparing requirement documents
d Defect Tracking
13) Which of the following is the correct bug status sequence
a New, open, closed, fixed
b New, Rejected, closed
c New, open, fixed, closed
d New, open, closed, reopen
14) Manual testing is not preferred for
a Usability testing
b Regression testing
c Ad-Hoc testing
d ASAP testing

AUTOMATION TOOLS TEST PAPER

1) Test Director helps you to organize run by


a) Test Labs
b) Test Run
c) Test Script
d) Test Sets

2) Viewer privileges are assigned to


a) TDADmin
b) Tester
c) Guest
d) Project Manager

3) Ramp Up is:
a) Transition from ready to run state
b) The group is set to run for a fixed duration
c) The group is set to run for a random duration
d) None of the above

4) Ramp down is setting is available when


a) The group is set to run entire completion
b) The group is set to run for a fixed duration
c) The group is set to run for random duration
d) All of the above

5) Transaction Status can not be:


a) Ir_AUTO
b) Ir_PASS
c) Ir_FAIL
d) lr_STOP
e) none of the above

6) Transaction is defined to measure the performance of the


a) Server
b) Client action
c) Vuser
d) VuScript

7) Which is not a state of Vuser


a) Abort
b) Error
c) Stopped
d) Rendezvous

8) Each .usr section file is automatically divided into…….... sections


a) 1
b) 2
c) 3
d) 4

9) When you run multiple iterations of Vuser script which section is repeated:
a) Actions
b) Vuser_init
c) Vuser_end
d) All of the above

10) Parameterization is done using:


a) Expection handling
b) Recording
c) User defined function
d) Data driven tests

11)WinRunner user interface test does not verify


a) GUI objects
b) GUI objects are aligned in windows
c) A System menu is available in every window
d) None of the above
12) TSL Stands for
a) Test scripting Language
b) Test Script language
c) Test standard language
d) Test structured language

13) When an external action is removed:


a) Action is removed from the action list and the corresponding action sheet is removed
from the data table.
b) Action is removed from the action list and the corresponding action sheet is not removed
from the data table
c) Action is not removed from the action list and the corresponding action sheet is removed
from the data table
d) Neither action is removed from the action list nor the corresponding action sheet is
removed from the data table.

14) You can not split an action when


a) An external action is selected
b) The first step of an action is selected
c) Recording a test
d) All of the above

15) In QTP a test is made up of


a) Vbscript
b) Calls to action
c) Test Script
d) None of the above

16) The character instructs Quick Test to treat the next character as a literal character if, it
is otherwise a special character
a) \
b) /
c) \\
d) *

17) Regular expression for matching a character


a) *[1]
b) *{1}
c) .
d) \{1}

18) Automation is not preferred for


a) Load testing
b) Adhoc testing
c) Regression testing
d) None of the above
19) Objects in a test in Quick test are stored in:
a) Object properties
b) Actions
c) Repository
d) Gui Map file

20) User defined handler functions are stored in


a) Main Test
b) Complied Module
c) Exception Module
d) B and C

21) GUI Spy


a) Views objects properties
b) Record objects property
c) Modifies objects property
d) Stores objects property

22) Number of ways in WinRunner to save object properties:


a) 1
b) 2
c) 3
d) 4
23) There are three modules m1, m2, and m3. To unload all m1, m2, m3 in WinRunner
a) Unload();
b) Unload_all();
c) Unload(“m1”, “m2”, “m3”);
d) Unload(“m1, m2, m3”);

24) Contain all actions of Vuser


a) Vuscript
b) Scheduler
c) VuGen
d) Controller

25) In WinRunner, object is recognized by:


a) Mswid
b) Physical ID
c) Class
d) Logical Name

26) Which of the following is not an action in QTP


a) External
b) Reusable
c) Internal
d) Non-reusable
27) In WinRunner script my_test_1 is called as
a) Call “c:\new_tests\my_test_1”();
b) Call (“c:\\new_tests\\my_test_1”);
c) Call “c:\\new_tests\my_test_1”;
d) Call “c:\\new_tests\\my_test_1”();

28) Which is not an example of Synchronization


a) Wait
b) Timer
c) Rendezvous
d) Transaction

29) Action in QTP is split as


a) Parent-child
b) Sibling
c) Both
d) Action cannot be split

30) There are ____________ ways of recording in QTP


a) 1
b) 2
c) 3
d) 4

31) Tests are executed in Test Director in


a) Test Execute
b) Test Plan
c) Test Lab
d) Test Run

32) Edit_set function


a) Replaces the entire contents of an edit object with the specified string
b) Replaces the content of the edit object
c) Enters a text in an edit object from the current position of the cursor
d) Inserts the text in the first line of edit object

33) How many actions are set by default in LoadRunner


a) 1
b) 2
c) 3
d) 4

34) With the option Explicit Statement variable declaration


a) Not Mandatory
b) Will give error
c) You have to declare all variables Dim, Public, Private statements
d) None of the above
35) The concatenation operator in VBScript is
a) + and &
b) + or &
c) & and *
d) & or *

36) Which of the following is correct in Vbscript


a) Dim j, total
For j=16 to 2 Step-2
total = total + j
Next
Msg Box “The total is “& total

b) Dim j, total
For j=16 to 2 j--
total = total + j
Next
Msg Box “The total is “& total

c) Dim j, total
For j=16 to 2 j-2
total = total + j
Next
Msg Box “The total is “& total

d) Dim j, total
For j=16 to 2 Step j-2
total = total + j
Next
Msg Box “The total is “& total

37) Trim function in VBScript returns


a) A copy of a string without trailing space
b) A copy of a string without leading space
c) A copy of a string with trailing space
d) A copy of a string without both trailing and leading space

38) In Vbscript which of the following returns the number of characters in a string
a) Len()
b) Length()
c) Strlen()
d) Strlength()

39) Test Pane contains


a) Only keyword view
b) Only expert view
c) Both expert and keyword view
d) Active screens, expert view, and keyword view

40) What is the statement generated in expert view for an analog recording relative to
screen
a) Desktop run Analog “Track 1”
b) Desktop run Analog “Analog1”
c) Desktop record Analog “Track 1”
d) Desktop record Analog “Screen 1”

41) Which of the following is an invalid QTP output message status


a) Pass
b) Done
c) Warning
d) Abort

42) Which is a true statement


a) Two or more tests can call the same action and one action cannot call another action.
b) Two or more tests can call the same action and one action can call another action.
c) Only one test can call the same action and one action can call another action.
d) Only one test can call the same action and one action cannot call another action.

43) Action can be Nested


a) True
b) False
c) True Only for External Action
d) False Only for External Action

44) Which of the following in not a type of Exit Action statement


a) ExitAction
b) ExitRun.
c) ExitGlobal
d) ExitGlobalIteration

45) Rapid Test Wizard is not available for which of the following Add-ins
a) ActiveX Controls
b) Visual Basic
c) Web Test
d) Power Builder

46) It specifies mouse button input


a) mtype
b) mousetype.
c) Mtype-analog
d) Mousetype_analog

47) Reload function


a) Removes a compiled Module from memory and loads it again
b) Removes a GUI Map file from memory and loads it again.
c) Removes a Compiled Module or GUI from memory and loads it again.
d) Removes excel Datasheet from memory and loads it again.

48) Type function


a) Specifies keyboard input
b) Sends keyboard input to an object
c) Sends keyEvents to an object
d) Sends keyboard input to a window
49) Which of the following is not a time related feature
a) Pause
b) Wait
c) Transaction
d) Syncronization

50) Which is an invalid password function


a) Password_edit_set.
b) Password_encrypt.
c) Web_password_encrypt
d) Password_edit_get_text

51) In QTP u can not parameterize


a) CheckPoint.
b) Statements.
c) Object Repository
d) None of the above

52) Which is the correct statement


a) ddt_val(data_table_name,Logical Name);
b) ddt_val(Logical Name,Parameter);
c) ddt_val(data_table_name,parameter);
d) ddt_val(Logical Name, data_table_name,parameter);

53) XML stands for


a) Extensive Markup language
b) Extensible Markup language
c) Extended Markup Language
d) External Markup Language

54) Table Checkpoint is available


a) With only web based applications using standard checkpoint
b) With any application standard checkpoint
c) With only web based application using database checkpoint
d) With only web based application using accessibility checkpoint.

55) The format of result in XML form is saved in


a) QTP installation folder
b) Action Folder
c) Test Folder
d) Separate Result Folder

56) The Hits per Second graph shows


a) The response sent by Web server to the Vusers during each Transaction of the scenario
run
b) The number of HTTP requests made by Vusers to the Web server during each Transaction
of the scenario run
c) The response sent by Web server to the Vusers during each second of the scenario run
d) The number of HTTP requests made by Vusers to the Web server during each second of
the scenario run

57) Which function can only be used in action section, and not in vuser_init or vuser_end
a) lr_think_time
b) lr_end_transaction
c) lr_start_transaction
d) lr_rendezvous

58) To add a text check during recording in VuGen which statement is added to the script:
a) web_reg_find
b) web_text_find
c) web_reg_check
d) web_text_check

59) Split function :


a) Divides an output string into fields and stores them in an array.
b) Divides an input string into fields and stores them in an array.
c) Joins all Array items and concatenates into a string
d) Splits the Actions

60) A parameter which is assigned a value from outside the function :


a) in.
b) out.
c) inout
d) external

61) Which variable can only be declared within a function and is local to that function.:
a) in
b) auto
c) static
d) private

62) This TSL function stops execution of the current test.:


a) texit
b) exit
c) break
d) tsl_exit

63) Deactivates all active recovery scenarios function in winrunner:


a) exception_off_all() ;.
b) exception_off () ;
c) all_exception_off () ;
d) recovery_deactivate() ;

64) The file_getline function


a) reads the next line from a file and assigns it to a variable.
b) reads the next line from a file and assigns it to an array
c) reads the current line from a file and assigns it to a variable.
d) reads the current line from a file and assigns it to an array.

65) The Now function


a) Returns the current date and time according to the settings of your computer’s system
date and time.
b) Returns the current system date
c) Returns the current system time
d) Returns the user defined date

66) Which method of Description Object Creates a new, empty description object in
which you can add collection of properties and values in order to specify the description
object in place of a test object name in a step.
1. Create
2. Describe
3. Define
4. Set

67) What key combinations are used to copy Object properties in GUI spy.
5. Ctrl+Shift+F3(left)
6. Ctrl+Shift+F3(Right)
7. Ctrl+Alt+F3(left)
8. Ctrl+Alt+F3(Right)

68) Which database checkpoint is used at RunTime in Winrunner


1. Custom
2. Default
3. Run-Time
4. Dynamic

69) Which method of Description Object Creates a new, empty description object in
which you can add collection of properties and values in order to specify the description
object in place of a test object name in a step.
1. Create
2. Describe
3. Define
4. Set

70) The RunTime property values of an object in QTP can be found by


5. GetROProperty
6. GetTOProperty
7. Edit_get_property
8. GetRunProperty

71) How are the following files saved .(Mention location with default filename and
extension)
a) WinRunner script
b) QTP script
c) WinRunner GUI Per Test
d) WinRuner Global GUI Map File
e) Recovey in WinRunner
f) Recovery in QTP
g) Object Repository in QTP (Per-Action)
h) Object Repository in QTP (Shared)
i) Default XML result file in QTP
j) Run-Time data table in QTP
k) Data table in WinRunner
l) Data in the Test Director Project
m) Batch test file in QTP
n) VuScript
o) Parameterized values in VuScript
p) Analog recording data in QTP
q) Analog recording data in WinRunner
r) Results in VuGen
s) Results in WinRunner
t) Startup file in WinRunner

QTP TEST PAPER

72) When an external action is removed:


e) Action is removed from the action list and the corresponding action
sheet is removed from the data table.
f) Action is removed from the action list and the corresponding action sheet is not removed
from the data table
g) Action is not removed from the action list and the corresponding action sheet is removed
from the data table
h) Neither action is removed from the action list nor the corresponding action sheet is
removed from the data table.

73) You can split an action when


1. An external action is selected
2. The first step of an action is selected
3. Recording a test
4. Action is parameterized

74) In QTP a test is made up of


1. Vbscript
2. Calls to action
3. Test Script Language
4. Repository

75) In QTP how can you insert result for a step in Test Results
1. Reporter.PassEvent , "step", "details"
2. Reporter.ReportEvent micPass, "step", "details"
3. Reporter.Report micPass, "step", "details"
4. Reporter.Event.Report micPass, "step", "details"

76) The character instructs Quick Test to treat the next character as a literal character if, it
is otherwise a special character
1. \
2. /
3. \\
4. *

77) Regular expression for matching a character


1. *[1]
2. *{1}
3. .
4. \{1}

78) Objects in a test in Quick test are stored in:


a) Object properties
b) Actions
c) Repository
d) Gui Map file

79) Which of the following is not an action QTP


a) External
b) Reusable
c) Internal
d) Non-reusable

80) Action in QTP is split as


a) Parent-child
b) Sibling
c) Both
d) Action cannot be split

81) There are ____________ ways of recording in QTP


a) 3
b) 2
c) 4
d) 1

82) With the option Explicit Statement ,variable declaration

a) Not Mandatory
b) Will give error
c) Mandatory
d) None of the above

83) The concatenation operator in VBScript is


a) + and &
b) + or &
c) & and *
d) & or AND

84) Which of the following is correct in Vbscript


a) Dim j, total
For j=16 to 2 Step-2
total = total + j
Next
Msg Box “The total is “& total

b) Dim j, total
For j=16 to 2 j--
total = total + j
Next
Msg Box “The total is “& total

c) Dim j, total
For j=16 to 2 j-2
total = total + j
Next
Msg Box “The total is “& total

d) Dim j, total
For j=16 to 2 Step j-2
total = total + j
Next
Msg Box “The total is “& total
85) In Vbscript which of the following returns the number of characters in a string

a) Len()
b) Length()
c) Strlen()
d) Strlength()

86) What is the file extension of the code file in QTP?


1. script.tsr
2. script.mtr
3. script.mts
4. No extension

87) Test Pane contains


a) Only keyword view
b) Only expert view
c) Both expert and keyword view
d) Active screens, expert view, and keyword view

88) What is the statement generated in expert view for an analog recording relative to
screen
a) Desktop run Analog “Track 1”
b) Screen run Analog “Track1”
c) Desktop record Analog “Track 1”
d) Desktop record Analog “Screen 1”

89) Which of the following is an invalid QTP output message status

a) Pass
b) Done
c) Warning
d) Abort

90) Which is a true statement


a) Two or more tests can call the same action and one action cannot call another action.
b) Two or more tests can call the same action and one action can call
another action.
c) Only one test can call the same action and one action can call another action.
d) Only one test can call the same action and one action cannot call another action.

91) Action can be Nested


a) True
b) False
c) True Only for External Action
d) False Only for External Action
92) Which of the following in not a type of Exit Action statement
a) ExitAction
b) ExitRun.
c) ExitGlobal
d) ExitGlobalIteration

93) Which of the following is not a time related feature


a) Msgbox
b) Wait
c) End Transaction
d) Syncronization

94) In QTP u can not parameterize


a) CheckPoint.
b) Statements.
c) Object Repository
d) variables

95) What is the file extension of shared object repository file in QTP?
5. .tsr
6. .mtr
7. .mts
8. .repo

96) XML stands for


a) Extensive Markup language
b) Extensible Markup language
c) Extended Markup Language
d) External Markup Language

97) Table Checkpoint is available


a) With only web based applications using standard checkpoint
b) With any application standard checkpoint
c) With only web based application using database checkpoint
d) With only web based application using accessibility checkpoint.

98) The Test result in XML form is saved in


a) QTP installation folder
b) Action Folder
c) Test Folder
d) Separate Result Folder

99) Split function :


a) Divides an output string into fields and stores them in an array.
b) Divides an input string into fields and stores them in an array.
c) Joins all Array items and concatenates into a string
d) Splits the Actions

100) The Now function


a) Returns the current date and time according to the settings of your
computer’s system date and time.
b) Returns the current system date
c) Returns the current system time
d) Returns the user defined date

101) What is the file extension of Per-Action object repository file in QTP?
1. .tsr
2. .mtr
3. .mts
4. .repo

102) The RunTime property values of an object in QTP can be found by


1. GetROProperty
2. GetTOProperty
3. Edit_get_property
4. GetRunProperty

103) The Syntax to call one "Action" in another?


1. RunAction ActionName, [IterationMode , IterationRange , Parameters]
2. CallAction ActionName, [IterationMode , IterationRange , Parameters]
3. LoadAction ActionName, [IterationMode , IterationRange , Parameters]
4. ExecuteAction ActionName, [IterationMode , IterationRange , Parameters]

104) Which of these is supported in QTP but not in WinRunner.


1. .Net Application
2. Java application
3. Web Application
4. Standard Window Application

105) Which of these QTP features is not TRUE


1. It supports Multimedia /Flash
2. Unicode Support for Multilingual Application Testing
3. Auto Documentation
4. Supports Netscape 7.9
106) You can insert a call to a WinRunner test from QTP using which statement in the
Expert View
1. Call TSLTest.TestEx
2. TSLTest.Call.TestEx
3. TSLTest.RunTestEx
4. WinRunnerTest.RunTestEx

Das könnte Ihnen auch gefallen