Monday 27 February 2017

HP M103 Certifications Sample Q & A - Part 33

Part 33: Continued from Part 32

Q. 121; You have just completed an advanced script that must get a real-time security encryption key for a login function. The security encryption key is obtained by loading a custom DLL using rc=lr_load_dll("SecureAcces.dll") and then calling a custom function. The login logic works on the Controller where you are developing the VuGen script, but when replaying on remote Load Generators, the script fails with error code rc=11. How can you fix this error 11?
(Select two.) 
A. The full path should have been specified. You change the command to lr_load_dll("c:tempSecureAcces.dll"); 
B. In the Controller, you select the script on the Design tab, then click the buttons Details, More, Files, Add and add the DLL c:tempSecureAcces.dll. 
C. In the VuGen Run-time Settings, you select Additional attributes and click Add, then you select the DLL c:tempSecureAcces.dll so it can be found by all machines. 
D. The DLL name was misspelled. You correct the error and rerun the scenario.
E. You add the DLL c:tempSecureAces.dll using VuGen menu File > Add Files to Script.
<<<<<< =================== >>>>>>
Q. 122; What does the lr_advance_param command do?  
A. Advances all data rows between iterations
B. Immediately advances the current data row for the all columns in a data table
C. Advances a given column's data row for only one column between iterations
D. Immediately advances the current data row for only one column in a data table

<<<<<< =================== >>>>>>
Q. 123; You are calling a custom function in a script you have written. The custom function takes an integer and is of the format myfunc(int); The HP LoadRunner parameter is called param_quantity. What should you use to call this custom function and pass your param_quantity value to it?  
A. myfunc(({param_quantity}").getInt))
B. myfunc( atoi ( lr_eval_string("{param_quantity}")))
C. myfunc("{param_quantity}")
D. myfunc(lr_string_int("{param_quantity}"))
E. myfunc((integer) lr_eval_string({"param_quantity}"))

<<<<<< =================== >>>>>>
Q. 124; Which Analysis feature under Options is useful to limit the analysis to only a portion of the entire load test duration?  
A. General: Date format
B. Analyze Transaction Settings: Errors
C. Result Collection: Data Time Range
D. Result Collection: Data Aggregation

<<<<<< =================== >>>>>>
Q. 125; Which Analysis graph identifies web pages that take the most time; isolates where time is spent; and helps in identifying DNS resolution, SSL, and connection issues?  
A. Network Delay Time
B. Windows Resource
C. Time to First Buffer Breakdown
D. Page Download Time Breakdown

<<<<<< =================== >>>>>>
Q. 126; When can you view the RunTime view/tab of the script parameter data being used in a parameter?  
A. During script replay/runtime only
B. During saving of a script
C. During compilation of a script
D. During execution of a script via the controller

<<<<<< =================== >>>>>>
Q. 127; Which function is added to the script when inserting a text check during recording using the recording toolbar? 
A. web_reg_save_param
B. web_reg_find
C. web_reg_add_cookie
D. web_reg_dialog

<<<<<< =================== >>>>>>
Q. 128; Which default actions are provided by VuGen? (Select three.) 
A. vuser_init
B. vuser_run
C. vuser_pause
D. action
E. vuser_pass
F. vuser_end
G. vuser_pending

<<<<<< =================== >>>>>>
Q. 129; Percentage weighting for blocks in Run Logic on Run-time Settings exists for which blocks? 
A. Only blocks running in sequential
B. Only blocks running in random
C. Locks running in random or sequential
D. Blocks running unique

<<<<<< =================== >>>>>>
Q. 130; Consider a business process with login, business logic and logout. Login and logout need to be iterated only once while business logic will be iterated many times. What is the correct way to record in terms of actions in the script? 
A. Record the entire business process in action
B. Record the entire business process in vuser_init
C. Record login logic in vuser_init, business logic in action, logout logic in vuser_end
D. Record the entire business process in vuser_end




Question No. Correct Answer
Q. 121 B,E
Q. 122 D
Q. 123 B
Q. 124 C
Q. 125 D
Q. 126 A
Q. 127 B
Q. 128 A,D,F
Q. 129 B
Q. 130 C

HP M103 Certifications Sample Q & A - Part 32

Part 32: Continued from Part 31

Q. 111; What is the best way to use an action from an existing script in a new script?  
A. You record the action again in the new script.
B. You copy the code from the existing script action to the new script.
C. You run both Vusers in the scenario with only the relevant actions listed.
D. You import the action into a script directly from the pre-existing script.

<<<<<< =================== >>>>>>
Q. 112; Where should you add a web_reg_save_param function to a script?  
A. In the global.h section
B. Before the step that contains the dynamic value
C. Before the step that generates a response from the server containing the value
D. At the beginning of the action section that contains the dynamic value

<<<<<< =================== >>>>>>
Q. 113; When is correlation used? 
A. When a recorded script includes a dynamic value (such as a session ID) and cannot replay
B. When you want to take a value and turn it into a variable in order to make your script more realistic
C. When you want to input different users' credentials in your script
D. When you want to check the presence of a string in a response to validate script results

<<<<<< =================== >>>>>>
Q. 114; What is the main purpose of inserting Rendezvous points?  
A. To synchronize Vusers with server timestamps
B. To synchronize Vusers to simultaneously perform a task
C. To stop all Vusers when an error occurs
D. To initialize Vusers with a schedule

<<<<<< =================== >>>>>>
Q. 115; Which formats contain valid VuGen built-in DFEs?  
A. Base64, Base 32, XMI
B. JSON, XML, Base64
C. URI, XML, VDI
D. SOAP, URL, JSON

<<<<<< =================== >>>>>>
Q. 116; A script needs to run a specific Web URL request 10 times. Which C function should be used?  
A. loop
B. for
C. next
D. until
E. for each

<<<<<< =================== >>>>>>
Q. 117; VuGen automatically inserts the web_set_user function for which authentication type(s)?  
A. Basic only
B. NTLM only
C. Digest only
D. Basic and NTML
E. NTML and Digest
F. Basic and Digest

<<<<<< =================== >>>>>>
Q. 118; You are asked to generate a string value that will be unique for every user for a given scenario execution. You are running the test in HP LoadRunner Controller. Which minimum set of values provided by lr_whoami provides a unique string value for every user, even if you have multiple groups? 
A. int *vuser_id, int *scid //userid and scenario id
B. int *user_id, char **sgroup, int *scid //user id and group name and scenario id
C. int *vuser_id, char **sgroup //user id and group name
D. int *user_id, char **sgroup //user id and group name
E. int *vuser_id // user id

<<<<<< =================== >>>>>>
Q. 119; You add the logic lr_message("the message"); to your script but you do not see any messages in the Output window while running the scenario in the Controller. What should you do?  
A. Add the code lr_start_messages(1); before the lr_message("the message"); 

B. Change the logging options in the Controller's Run-time Settings from "only when an error occurs" to "Always Send" and "Standard Log."
 
C. Add the code lr_set_debug_message(LR_MSG_CLASS_EXTENDED_LOG |LR_MSG_CLASS_FULL_TRACE, LR_SWITCH_ON ); to the line before the lr_message("the message"); 
D. Highlight the script in the Controller, click Details, and click Refresh Log Options.
E.Because only 10% of the messages are logged, wait for the test to run longer.
<<<<<< =================== >>>>>>
Q. 120; You are tasked with building a Web script. Upon replay, one URL sometimes throws a 404 error that results in the script execution stopping. You want to continue running the script when this 404 occurs because it is not critical to the test. Which command allows you to ignore this failure and continue the script execution? 
A. lr_continue_on_failure(1);
B. lr_failure_continue(1);
C. lr_continue_on_error(1);
D. lr_error_continue(1);

HP Vugen 12.x Certification Exam Skill Test Q. 121 to 130
Objective Type / Multiple Choice Questions on HP VuGen 12.x under the Series





Question No. Correct Answer
Q. 111 D
Q. 112 C
Q. 113 A
Q. 114 B
Q. 115 B
Q. 116 B
Q. 117 A
Q. 118 C
Q. 119 B
Q. 120 C

HP M103 Certifications Sample Q & A - Part 31

Part 31: Continued from Part 30

Q. 101; What is the unit of measurement for a transaction?  
A. Microseconds
B. Milliseconds
C. Seconds
D. Minutes

<<<<<< =================== >>>>>>
Q. 102; For which protocol(s) can automatic transactions per step be defined? 
A. All protocols
B. Web Protocol only
C. Citrix Protocol only
D. SAP Protocol only

<<<<<< =================== >>>>>>
Q. 103; What is a data parameter type?  
A .Sequential Number
B. Scenario ID
C. Rendezvous
D. File

<<<<<< =================== >>>>>>
Q. 104; Which situations require parameterization? (Select four.) 
A. Unique constraint
B. Type of application
C. Date constraint
D. Data dependency
E. Type of database
F. Data caching
G. Clustered database

<<<<<< =================== >>>>>>
Q. 105; In which VuGen tab can you see dynamic parameterized data during script replay? 
A. Replay Log
B. Recording Log
C. RunTime Data
D. Generation Log

<<<<<< =================== >>>>>>
Q. 106; During analysis of a scenario, you realize that the throughput becomes flat as Vusers continue to increase. What is the likely cause?
A. The Controller is missing data.
B. Schedule of the scenario is incorrect.
C. One or more Load Generators failed.
D. A bottleneck is reached.

<<<<<< =================== >>>>>>
Q. 107; Which tool can be used to store information about a defect in HP Sprinter without disrupting test flow?  
A. Defect Highlighter tool
B. Test Defect tool
C. Smart Defect tool
D. Defect Reminder tool

<<<<<< =================== >>>>>>
Q. 108; How are related projects grouped? 
A. By test set
B. By package
C. By domain
D. By class

<<<<<< =================== >>>>>>
Q. 109; What is defined as a set of development and quality assurance efforts performed to achieve a common goal, based on the release timeline? 
A. Test Set
B. Requirement
C. Test Plan
D. Cycle

<<<<<< =================== >>>>>>
Q. 110; Which customization use cases can only be accommodated by editing workflow code? 
A. Sending an email to a test's owner whenever a linked requirement is updated
B. Permitting developers to see only the defects submitted by their team
C. Adding a new status called "Pending Review" to the Test Status system field
D. Denying access to the Releases module for certain groups of users



Question No. Correct Answer
Q. 101 C
Q. 102 B
Q. 103 D
Q. 104 A,C,D,F
Q. 105 C
Q. 106 D
Q. 107 D
Q. 108 D
Q. 109 D
Q. 110 A

HP M103 Certifications Sample Q & A - Part 30

Part 30: Continued from Part 29

Q. 91; What happens when you set the animated run delay to 5,000 milliseconds?  
A. When replaying the script, the Run-time Viewer pauses for 5 seconds when an error has occurred.
B. When replaying the script, the Replay Log only displays the last 5 seconds of logging information.
C. When the script is replayed, the Run-time Viewer displays 5 seconds behind the current line being executed.
D. When replaying the script, a line executes and then pauses for 5 seconds, executes the next line of code and pauses for 5 seconds, and continues with this pattern.

<<<<<< =================== >>>>>>
Q. 92; Which function should you use to send a message to the log file, Replay Log, and Controller Output window? 
A. lr_set_debug_level
B. lr_error_message
C. lr_log_message
D. lr_vuser_status_message

<<<<<< =================== >>>>>>
Q. 93; Which parameter type will always have the value of None when replayed in VuGen? 
A. Group Name
B. Iteration Number
C. Random Number
D. Vuser ID

<<<<<< =================== >>>>>>
Q. 94; After finishing editing a previously recorded script, you push the Play button. Which log contains the actions and errors of the Vuser as it runs? 
A. Recording Log
B. Generation Log
C. Replay Log
D. Current log that is playing

<<<<<< =================== >>>>>>
Q. 95; Which view allows you to edit a script by adding text-based enhancement, Vuser API or control flow statements? 
A. Script view
B. Tree view
C. Snapshot view
D. Tasks view

<<<<<< =================== >>>>>>
Q. 96; Which feature allows you to visually check a script's capability to effectively download a graphical resource (such as an image in png format) inside a Web page? 
A. Snapshot view
B. Script view
C. Correlation Studio
D. Bookmarks

<<<<<< =================== >>>>>>
Q. 97; Which view allows an in-depth analysis of HTTP request and response headers? 
A. Script view
B. Snapshot view
C. HTTP view under Tree view
D. Test results view

<<<<<< =================== >>>>>>
Q. 98; Your script will iterate three times using a parameter table/file with the following values: {Kim; David; Michael; Jane; Ron; Alice; Ken; Julie; Fred}.  
If you specify "Update on Each iteration" with Unique method, what will the second Vuser in your test run use? 
A. Kim, David and Michael
B. Ken, Julie, and Fred
C. Jane, Ron, and Alice
D. David, Michael and Jane

<<<<<< =================== >>>>>>
Q. 99; Your business process is composed of five sequential, logical steps: 
1. Login
2. customer search
3. customer selection
4. customer update
5. logoff
 
You want to be able to measure end-to-end response times for each logical step. To accomplish this, what will you set them as?  
A. Distinct functions
B. Distinct transactions
C. Separate actions
D. Distinct Vuser scripts

<<<<<< =================== >>>>>>
Q. 100; What do transaction times measure? 
A. Transmission and response time between client and server
B. Time spent only on client
C. Network time only
D. Database time only



Question No. Correct Answer
Q. 91 D
Q. 92 B
Q. 93 A
Q. 94 C
Q. 95 A
Q. 96 A
Q. 97 C
Q. 98 C
Q. 99 B
Q. 100 A


HP M103 Certifications Sample Q & A - Part 29

Part 29: Continued from Part 28

Q. 81; What is the best way to compare two versions of a script? 
A. You open a second instance of VuGen and do a line-by-line comparison.
B. You click on Tools > Compare with Script ...
C. You use the test result to compare the scripts.
D. You verify the output.txt of both scripts.

<<<<<< =================== >>>>>>
Q. 82; What should you do to apply Script As Run-time Settings, parameters, extra files, and actions to a Script B?  
A. Save Script As script as a template and then apply the template to Script B before script recording.
B. Export Script As settings to a .cor file and then import the settings to Script B.
C. Select the option to create a new Vuser script and then select Script A.
D. Copy the .ext file located in Script As main directory to Script Bs main directory.

<<<<<< =================== >>>>>>
Q. 83; Click the Exhibit button





The screenshot shown in the exhibit is showing a default view from what?

A. Run-time Settings: General: Miscellaneous
B. Run-time Settings: General: Log
C. Run-time Settings: General: Pacing
D. Run-time Settings: General: Run Logic

<<<<<< =================== >>>>>>
Q. 84; What does the window "Run-time Settings: General: Log" allow you to do? (Select three.)
A. Configure the script to log only if there are no errors.
B. Set the log level (standard or extended).
C. Set the percentage of Vusers that will log in the test run execution.
D. Turn on / off logging.
E. Enable or disable Transaction Response Time logging.
F. Enable or disable Advanced Trace.

<<<<<< =================== >>>>>>
Q. 85; Load Generator hosts are experiencing heavy memory usage. Which Run-time Settings optimization will reduce memory usage of each of the running Vusers?  
A. Miscellaneous: Run Vuser as a process
B. Miscellaneous: Run Vuser as a thread
C. Think time: Ignore think time
D. Log: Extended log

<<<<<< =================== >>>>>>
Q. 86; What is the default behavior of a Vuser encountering an error? 
A. Stop
B. Continue
C. Stop itself and all other Vusers in the same LoadRunner Scenario group
D. Stop itself and shut down the Load Generator on which the error occurs n Vuser as a thread
E. Think time: Ignore think time
F. Log: Extended log

<<<<<< =================== >>>>>>
Q. 87; What is the purpose of Browser Emulation in the Run-time Settings? 
A. To define the browser that you want to use during the script recording process
B. To enable the TruClient plugin for Firefox
C. To define which Load Generator host you want to use during a load test that involves the script
D. To define the user agent header that a Vuser sent to identify which browser is currently emulated
E. Enable or disable Advanced Trace.

<<<<<< =================== >>>>>>
Q. 88; Which option instructs VuGen to cache only the URLs that require the HTML content?  
A. Check for newer version of stored pages every visit to the page
B. Cache URL requiring content (HTML)
C. Download non-HTML resources
D. Clear cache on each iteration

<<<<<< =================== >>>>>>
Q. 89; What is a QuickTest Professional test comprised of?  
A. Calls to actions
B. Calls to actions (reusable only)
C. Calls to QuickTest Professional tests
D. Calls and copies of actions

<<<<<< =================== >>>>>>

Q. 90; Click the Exhibit button.





Which tab is shown in the VuGen Output window? 
A. Run-time Data
B. Generation Log
C. Parameter Simulator
D. Replay Log



Question No. Correct Answer
Q. 81 B
Q. 82 A
Q. 83 D
Q. 84 B,D,F
Q. 85 B
Q. 86 A
Q. 87 D
Q. 88 B
Q. 89 A
Q. 90 A

HP M103 Certifications Sample Q & A - Part 28

Part 28: Continued from Part 27

Q. 71; When choosing between HTML-based and URL-based recording modes for Web protocol, robustness and maintainability of the recorded script should be considered. What would cause the replay failure of a script recorded in HTML mode? 
A. A change in the links URL
B. A missing image in the page, if not linked
C. A change in the links text
D. An extra resource in the page

<<<<<< =================== >>>>>>
Q. 72; What is the purpose of the "Close all AUT processes when recording stops" option? 
A. It closes all windows of the application at end of recording.
B. It closes all AUT windows opened during the recording session at end of recording.
C. It closes all open windows at end of recording.
D. It closes the last window opened during recording. a resource in the page

<<<<<< =================== >>>>>>
Q. 73; A customer informs you that an application to be tested is Acid2 compliant. Which protocol should be used to test this application? 
A. Silverlight
B. URL
C. AMF
D. HTML
E. TruClient
F. Click-n-Script

<<<<<< =================== >>>>>>
Q. 74; A customer uses Adobe BlazeDS Server for their web browser to server communications with a Flash Client. Which protocol should be used in VuGen to test this application?  
A. HTML
B. Click-n-Script
C. AMF
D. TruClient
E. SOA

<<<<<< =================== >>>>>>
Q. 75; What is the purpose of capturing think times?  
A. It simulates the keyboard entry time of an end user on a system.
B. It is necessary to make VuGen pause long enough to capture the server responses.
C. It prevents excessive CPU consumption for virtual users on the load generators.
D. It is necessary to make VuGen pause to reduce the amount of data required during testing.

<<<<<< =================== >>>>>>
Q. 76; In HTML-based and URL-based recording modes, user steps are recorded at different layers. They differ in the layer where the user steps are recorded. Why is the HTML recording name also named as "context sensitive"? 
A. Because every UI object is recognized in the context of the page/window to which it belongs
B. Because the browser cache stores a copy of the page, in the context of which user actions are performed
C. Because the playback engine cache stores a copy of the page, in the context of which user actions are performed
D. Because context sensitive help suggestions are available in HTML mode only

<<<<<< =================== >>>>>>

Q. 77; Which VuGen function allows you to define a point to halt script execution for debugging purposes? 
A. Breakpoints
B. Bookmarks
C. lr_end_transaction function
D. Run step by step

<<<<<< =================== >>>>>>
Q. 78; When should you develop a multi-protocol script?  
A. When the script uses HTTP and HTTPS in the same business process
B. When you want to save resources on the Load Generator
C. When the business process uses different sets of APIs
D. When you require better maintenance of the script

<<<<<< =================== >>>>>>
Q. 79; Which tool should you use to identify the protocol to use? 
A. Protocol Analyzer
B. Protocol Advisor
C. HP Diagnostics Probe
D. HP WebInspect

<<<<<< =================== >>>>>>
Q. 80; Which statement is true about script levels in TruClient? 
A. VuGen moves steps that it deems unnecessary during replay, to a lower level.
B. Levels are newly-introduced, nested programming features.
C. Asynchronous calls are placed in levels for better identification.
D. Levels are organization features that have no influence.


Question No. Correct Answer
Q. 71 C
Q. 72 B
Q. 73 E
Q. 74 C
Q. 75 A
Q. 76 C
Q. 77 A
Q. 78 C
Q. 79 B
Q. 80 A