Custom Search

Monday, June 1, 2009

Foundation Certificate In Software Testing Practice Exam

1

When what is visible to end-users is a deviation from the specific or expected behavior, this is called:

a) an error

b) a fault

c) a failure

d) a defect

e) a mistake

2

Regression testing should be performed:

v) every week

w) after the software has changed

x) as often as possible

y) when the environment has changed

z) when the project manager says

a) v & w are true, x – z are false

b) w, x & y are true, v & z are false

c) w & y are true, v, x & z are false

d) w is true, v, x y and z are false

e) all of the above are true

3

IEEE 829 test plan documentation standard contains all of the following except:

a) test items

b) test deliverables

c) test tasks

d) test environment

e) test specification

4

Testing should be stopped when:

a) all the planned tests have been run

b) time has run out

c) all faults have been fixed correctly

d) both a) and c)

e) it depends on the risks for the system being tested

5

Order numbers on a stock control system can range between 10000 and 99999 inclusive. Which of the following inputs might be a result of designing tests for only valid equivalence classes and valid boundaries:

a) 1000, 5000, 99999

b) 9999, 50000, 100000

c) 10000, 50000, 9999

d) 10000, 99999

e) 9999, 10000, 50000, 99999, 10000

6

Consider the following statements about early test design:

i. early test design can prevent fault multiplication

ii. faults found during early test design are more expensive to fix

iii. early test design can find faults

iv. early test design can cause changes to the requirements

v. early test design takes more effort

a) i, iii & iv are true. Ii & v are false

b) iii is true, I, ii, iv & v are false

c) iii & iv are true. i, ii & v are false

d) i, iii, iv & v are true, ii us false

e) i & iii are true, ii, iv & v are false

7

Non-functional system testing includes:

a) testing to see where the system does not function properly

b) testing quality attributes of the system including performance and usability

c) testing a system feature using only the software required for that action

d) testing a system feature using only the software required for that function

e) testing for functions that should not exist

8

Which of the following is NOT part of configuration management:

a) status accounting of configuration items

b) auditing conformance to ISO9001

c) identification of test versions

d) record of changes to documentation over time

e) controlled library access

9

Which of the following is the main purpose of the integration strategy for integration testing in the small?

a) to ensure that all of the small modules are tested adequately

b) to ensure that the system interfaces to other systems and networks

c) to specify which modules to combine when and how many at once

d) to ensure that the integration testing can be performed by a small team

e) to specify how the software should be divided into modules

10

What is the purpose of test completion criteria in a test plan:

a) to know when a specific test has finished its execution

b) to ensure that the test case specification is complete

c) to set the criteria used in generating test inputs

d) to know when test planning is complete

e) to plan when to stop testing

11

Consider the following statements

i. an incident may be closed without being fixed

ii. incidents may not be raised against documentation

iii. the final stage of incident tracking is fixing

iv. the incident record does not include information on test environments

v. incidents should be raised when someone other than the author of the software performs the test

a) ii and v are true, I, iii and iv are false

b) i and v are true, ii, iii and iv are false

c) i, iv and v are true, ii and iii are false

d) i and ii are true, iii, iv and v are false

e) i is true, ii, iii, iv and v are false

12

Given the following code, which is true about the minimum number of test cases required for full statement and branch coverage:

Read P

Read Q

IF P+Q > 100 THEN

Print “Large”

ENDIF

If P > 50 THEN

Print “P Large”

ENDIF

a) 1 test for statement coverage, 3 for branch coverage

b) 1 test for statement coverage, 2 for branch coverage

c) 1 test for statement coverage, 1 for branch coverage

d) 2 tests for statement coverage, 3 for branch coverage

e) 2 tests for statement coverage, 2 for branch coverage

13

Given the following:

Switch PC on

Start “outlook”

IF outlook appears THEN

Send an email

Close outlook

a) 1 test for statement coverage, 1 for branch coverage

b) 1 test for statement coverage, 2 for branch coverage

c) 1 test for statement coverage. 3 for branch coverage

d) 2 tests for statement coverage, 2 for branch coverage

e) 2 tests for statement coverage, 3 for branch coverage

14

Given the following code, which is true:

IF A > B THEN

C = A – B

ELSE

C = A + B

ENDIF

Read D

IF C = D Then

Print “Error”

ENDIF

a) 1 test for statement coverage, 3 for branch coverage

b) 2 tests for statement coverage, 2 for branch coverage

c) 2 tests for statement coverage. 3 for branch coverage

d) 3 tests for statement coverage, 3 for branch coverage

e) 3 tests for statement coverage, 2 for branch coverage

15

Consider the following:

Pick up and read the newspaper

Look at what is on television

If there is a program that you are interested in watching then switch the the television on and watch the program

Otherwise

Continue reading the newspaper

If there is a crossword in the newspaper then try and complete the crossword

a) SC = 1 and DC = 1

b) SC = 1 and DC = 2

c) SC = 1 and DC = 3

d) SC = 2 and DC = 2

e) SC = 2 and DC = 3

16

The place to start if you want a (new) test tool is:

a) Attend a tool exhibition

b) Invite a vendor to give a demo

c) Analyse your needs and requirements

d) Find out what your budget would be for the tool

e) Search the internet

17

When a new testing tool is purchased, it should be used first by:

a) A small team to establish the best way to use the tool

b) Everyone who may eventually have some use for the tool

c) The independent testing team

d) The managers to see what projects it should be used in

e) The vendor contractor to write the initial scripts

18

What can static analysis NOT find?

a) The use of a variable before it has been defined

b) Unreachable (“dead”) code

c) Whether the value stored in a variable is correct

d) The re-definition of a variable before it has been used

e) Array bound violations

19

Which of the following is NOT a black box technique:

a) Equivalence partitioning

b) State transition testing

c) LCSAJ

d) Syntax testing

e) Boundary value analysis

20

Beta testing is:

a) Performed by customers at their own site

b) Performed by customers at their software developer’s site

c) Performed by an independent test team

d) Useful to test bespoke software

e) Performed as early as possible in the lifecycle

21

Given the following types of tool, which tools would typically be used by developers and which by an independent test team:

i. static analysis

ii. performance testing

iii. test management

iv. dynamic analysis

v. test running

vi. test data preparation

a) developers would typically use i, iv and vi; test team ii, iii and v

b) developers would typically use i and iv; test team ii, iii, v and vi

c) developers would typically use i, ii, iii and iv; test team v and vi

d) developers would typically use ii, iv and vi; test team I, ii and v

e) developers would typically use i, iii, iv and v; test team ii and vi

22

The main focus of acceptance testing is:

a) finding faults in the system

b) ensuring that the system is acceptable to all users

c) testing the system with other systems

d) testing for a business perspective

e) testing by an independent test team

23

Which of the following statements about the component testing standard is false:

a) black box design techniques all have an associated measurement technique

b) white box design techniques all have an associated measurement technique

c) cyclomatic complexity is not a test measurement technique

d) black box measurement techniques all have an associated test design technique

e) white box measurement techniques all have an associated test design technique

24

Which of the following statements is NOT true:

a) inspection is the most formal review process

b) inspections should be led by a trained leader

c) managers can perform inspections on management documents

d) inspection is appropriate even when there are no written documents

e) inspection compares documents with predecessor (source) documents

25

A typical commercial test execution tool would be able to perform all of the following EXCEPT:

a) generating expected outputs

b) replaying inputs according to a programmed script

c) comparison of expected outcomes with actual outcomes

d) recording test inputs

e) reading test values from a data file

26

The difference between re-testing and regression testing is

a) re-testing is running a test again; regression testing looks for unexpected side effects

b) re-testing looks for unexpected side effects; regression testing is repeating those tests

c) re-testing is done after faults are fixed; regression testing is done earlier

d) re-testing uses different environments, regression testing uses the same environment

e) re-testing is done by developers, regression testing is done by independent testers

27

Expected results are:

a) only important in system testing

b) only used in component testing

c) never specified in advance

d) most useful when specified in advance

e) derived from the code

28

Test managers should not:

a) report on deviations from the project plan

b) sign the system off for release

c) re-allocate resource to meet original plans

d) raise incidents on faults that they have found

e) provide information for risk analysis and quality improvement

29

Unreachable code would best be found using:

a) code reviews

b) code inspections

c) a coverage tool

d) a test management tool

e) a static analysis tool

30

A tool that supports traceability, recording of incidents or scheduling of tests is called:

a) a dynamic analysis tool

b) a test execution tool

c) a debugging tool

d) a test management tool

e) a configuration management tool

31

What information need not be included in a test incident report:

a) how to fix the fault

b) how to reproduce the fault

c) test environment details

d) severity, priority

e) the actual and expected outcomes

32

Which expression best matches the following characteristics or review processes:

1. led by author

2. undocumented

3. no management participation

4. led by a trained moderator or leader

5. uses entry exit criteria

s) inspection

t) peer review

u) informal review

v) walkthrough

a) s = 4, t = 3, u = 2 and 5, v = 1

b) s = 4 and 5, t = 3, u = 2, v = 1

c) s = 1 and 5, t = 3, u = 2, v = 4

d) s = 5, t = 4, u = 3, v = 1 and 2

e) s = 4 and 5, t = 1, u = 2, v = 3

33

Which of the following is NOT part of system testing:

a) business process-based testing

b) performance, load and stress testing

c) requirements-based testing

d) usability testing

e) top-down integration testing

34

What statement about expected outcomes is FALSE:

a) expected outcomes are defined by the software’s behaviour

b) expected outcomes are derived from a specification, not from the code

c) expected outcomes include outputs to a screen and changes to files and databases

d) expected outcomes should be predicted before a test is run

e) expected outcomes may include timing constraints such as response times

35

The standard that gives definitions of testing terms is:

a) ISO/IEC 12207

b) BS7925-1

c) BS7925-2

d) ANSI/IEEE 829

e) ANSI/IEEE 729

36

The cost of fixing a fault:

a) Is not important

b) Increases as we move the product towards live use

c) Decreases as we move the product towards live use

d) Is more expensive if found in requirements than functional design

e) Can never be determined

37

Which of the following is NOT included in the Test Plan document of the Test Documentation Standard:

a) Test items (i.e. software versions)

b) What is not to be tested

c) Test environments

d) Quality plans

e) Schedules and deadlines

38

Could reviews or inspections be considered part of testing:

a) No, because they apply to development documentation

b) No, because they are normally applied before testing

c) No, because they do not apply to the test documentation

d) Yes, because both help detect faults and improve quality

e) Yes, because testing includes all non-constructive activities

39

Which of the following is not part of performance testing:

a) Measuring response time

b) Measuring transaction rates

c) Recovery testing

d) Simulating many users

e) Generating many transactions

40

Error guessing is best used

a) As the first approach to deriving test cases

b) After more formal techniques have been applied

c) By inexperienced testers

d) After the system has gone live

e) Only by end users



Self Marking Tick Sheet

1


2


3


4


5


6


7


8


9


10


11


12


13


14


15


16


17


18


19


20


21


22


23


24


25


26


27


28


29


30


31


32


33


34


35


36


37


38


39


40



Question number

Correct answer

1

C

2

C

3

E

4

E

5

C

6

A

7

B

8

B

9

C

10

E

11

B

12

B

13

B

14

B

15

E

16

C

17

B

18

C

19

C

20

A

21

B

22

D

23

A

24

D

25

A

26

A

27

D

28

C

29

A

30

E

31

E

32

B

33

E

34

A

35

B

36

B

37

D

38

D

39

C

40

B

Thursday, May 28, 2009

Function Points

Function Points and the Function Point Model are measurement tools to manage software. Function Points, with other business measures, become Software Metrics.
Function Points measure Software size. Function Points measure functionality by objectively measuring functional requirements. Function Points quantify and document assumptions in Estimating software development. Function Points and Function Point Analysis are objective; Function Points are consistent, and Function Points are auditable. Function Points are independent of technology. Function Points even apply regardless of design. But Function Points do not measure people directly. Function Points is a macro tool, not a micro tool. Function Points are the foundation of a Software Metrics program.
Software Metrics include Function Points as a normalizing factor for comparison. Function Points in conjunction with time yield Productivity Software Metrics. Function Points in conjunction with defects yield Quality Software Metrics. Function Points with costs provide Unit Cost, Return on Investment, and Efficiency Software Metrics, never before available.
Function Points connect Software Metrics to measure Risk. Function Points can verify Staffing metrics. Function Points can evaluate Build, Buy and/or Outsource decisions. Function Points combine with SEI CMM measures, TQM measures, Baldrige measures, ISO and/or other software and business measures to prove overall status and value.
Doing The Right Things!All of the above Software Metrics can prove your organization is Doing Things Right! But the real and biggest value of Function Points and Software Metrics is proving you are Doing The Right Things!
Function Points and Usage or Volume measures create Software Metrics that demonstrate an organization's ability to Leverage software's business impact. The Leverage of E Commerce is obvious, but until now unmeasured. Function Points support Customer Satisfaction measures to create Value Software Metrics. Function Points and Skill measures provide Software Metrics for Employee Service Level Agreements to meet current and future company skill needs. Function Points can even measure the Corporate Vision and generate Software Metrics to report progress toward meeting it.
Function Points, Function Point Analysis, the Function Point Model, Supplemental Software Measures, and the Software Metrics they generate, are only the third measure that transcend every part of every organization. (The other two are time and money.) Without them your organization is only two thirds whole.




Tuesday, May 26, 2009

Load Test Overview

  1. What is load testing? - Load testing is to test that if the application works fine with the loads that result from large number of simultaneous users, transactions and to determine weather it can handle peak usage periods.
  2. What is Performance testing? - Timing for both read and update transactions should be gathered to determine whether system functions are being performed in an acceptable timeframe. This should be done standalone and then in a multi user environment to determine the effect of multiple transactions on the timing of a single transaction.
  3. Did u use Load Runner? What version? - Yes. Version 7.2.
  4. Explain the Load testing process? -
    Step 1: Planning the test. Here, we develop a clearly defined test plan to ensure the test scenarios we develop will accomplish load-testing objectives. Step 2: Creating Vusers. Here, we create Vuser scripts that contain tasks performed by each Vuser, tasks performed by Vusers as a whole, and tasks measured as transactions. Step 3: Creating the scenario. A scenario describes the events that occur during a testing session. It includes a list of machines, scripts, and Vusers that run during the scenario. We create scenarios using Load Runner Controller. We can create manual scenarios as well as goal-oriented scenarios. In manual scenarios, we define the number of Vusers, the load generator machines, and percentage of Vusers to be assigned to each script. For web tests, we may create a goal-oriented scenario where we define the goal that our test has to achieve. Load Runner automatically builds a scenario for us. Step 4: Running the scenario.
    We emulate load on the server by instructing multiple Vusers to perform tasks simultaneously. Before the testing, we set the scenario configuration and scheduling. We can run the entire scenario, Vuser groups, or individual Vusers. Step 5: Monitoring the scenario.
    We monitor scenario execution using the LoadRunner online runtime, transaction, system resource, Web resource, Web server resource, Web application server resource, database server resource, network delay, streaming media resource, firewall server resource, ERP server resource, and Java performance monitors. Step 6: Analyzing test results. During scenario execution, LoadRunner records the performance of the application under different loads. We use LoadRunner’s graphs and reports to analyze the application’s performance.
  5. When do you do load and performance Testing? - We perform load testing once we are done with interface (GUI) testing. Modern system architectures are large and complex. Whereas single user testing primarily on functionality and user interface of a system component, application testing focuses on performance and reliability of an entire system. For example, a typical application-testing scenario might depict 1000 users logging in simultaneously to a system. This gives rise to issues such as what is the response time of the system, does it crash, will it go with different software applications and platforms, can it hold so many hundreds and thousands of users, etc. This is when we set do load and performance testing.
  6. What are the components of LoadRunner? - The components of LoadRunner are The Virtual User Generator, Controller, and the Agent process, LoadRunner Analysis and Monitoring, LoadRunner Books Online.
  7. What Component of LoadRunner would you use to record a Script? - The Virtual User Generator (VuGen) component is used to record a script. It enables you to develop Vuser scripts for a variety of application types and communication protocols.
  8. What Component of LoadRunner would you use to play Back the script in multi user mode? - The Controller component is used to playback the script in multi-user mode. This is done during a scenario run where a vuser script is executed by a number of vusers in a group.
  9. What is a rendezvous point? - You insert rendezvous points into Vuser scripts to emulate heavy user load on the server. Rendezvous points instruct Vusers to wait during test execution for multiple Vusers to arrive at a certain point, in order that they may simultaneously perform a task. For example, to emulate peak load on the bank server, you can insert a rendezvous point instructing 100 Vusers to deposit cash into their accounts at the same time.
  10. What is a scenario? - A scenario defines the events that occur during each testing session. For example, a scenario defines and controls the number of users to emulate, the actions to be performed, and the machines on which the virtual users run their emulations.
  11. Explain the recording mode for web Vuser script? - We use VuGen to develop a Vuser script by recording a user performing typical business processes on a client application. VuGen creates the script by recording the activity between the client and the server. For example, in web based applications, VuGen monitors the client end of the database and traces all the requests sent to, and received from, the database server. We use VuGen to: Monitor the communication between the application and the server; Generate the required function calls; and Insert the generated function calls into a Vuser script.
  12. Why do you create parameters? - Parameters are like script variables. They are used to vary input to the server and to emulate real users. Different sets of data are sent to the server each time the script is run. Better simulate the usage model for more accurate testing from the Controller; one script can emulate many different users on the system.
  13. What is correlation? Explain the difference between automatic correlation and manual correlation? - Correlation is used to obtain data which are unique for each run of the script and which are generated by nested queries. Correlation provides the value to avoid errors arising out of duplicate values and also optimizing the code (to avoid nested queries). Automatic correlation is where we set some rules for correlation. It can be application server specific. Here values are replaced by data which are created by these rules. In manual correlation, the value we want to correlate is scanned and create correlation is used to correlate.
  14. How do you find out where correlation is required? Give few examples from your projects? - Two ways: First we can scan for correlations, and see the list of values which can be correlated. From this we can pick a value to be correlated. Secondly, we can record two scripts and compare them. We can look up the difference file to see for the values which needed to be correlated. In my project, there was a unique id developed for each customer, it was nothing but Insurance Number, it was generated automatically and it was sequential and this value was unique. I had to correlate this value, in order to avoid errors while running my script. I did using scan for correlation.
  15. Where do you set automatic correlation options? - Automatic correlation from web point of view can be set in recording options and correlation tab. Here we can enable correlation for the entire script and choose either issue online messages or offline actions, where we can define rules for that correlation. Automatic correlation for database can be done using show output window and scan for correlation and picking the correlate query tab and choose which query value we want to correlate. If we know the specific value to be correlated, we just do create correlation for the value and specify how the value to be created.
  16. What is a function to capture dynamic values in the web Vuser script? - Web_reg_save_param function saves dynamic data information to a parameter.
  17. When do you disable log in Virtual User Generator, When do you choose standard and extended logs? - Once we debug our script and verify that it is functional, we can enable logging for errors only. When we add a script to a scenario, logging is automatically disabled. Standard Log Option: When you select
    Standard log, it creates a standard log of functions and messages sent during script execution to use for debugging. Disable this option for large load testing scenarios. When you copy a script to a scenario, logging is automatically disabled Extended Log Option: Select
    extended log to create an extended log, including warnings and other messages. Disable this option for large load testing scenarios. When you copy a script to a scenario, logging is automatically disabled. We can specify which additional information should be added to the extended log using the Extended log options.
  18. How do you debug a LoadRunner script? - VuGen contains two options to help debug Vuser scripts-the Run Step by Step command and breakpoints. The Debug settings in the Options dialog box allow us to determine the extent of the trace to be performed during scenario execution. The debug information is written to the Output window. We can manually set the message class within your script using the lr_set_debug_message function. This is useful if we want to receive debug information about a small section of the script only.
  19. How do you write user defined functions in LR? Give me few functions you wrote in your previous project? - Before we create the User Defined functions we need to create the external
    library (DLL) with the function. We add this library to VuGen bin directory. Once the library is added then we assign user defined function as a parameter. The function should have the following format: __declspec (dllexport) char* (char*, char*)Examples of user defined functions are as follows:GetVersion, GetCurrentTime, GetPltform are some of the user defined functions used in my earlier project.
  20. What are the changes you can make in run-time settings? - The Run Time Settings that we make are: a) Pacing - It has iteration count. b) Log - Under this we have Disable Logging Standard Log and c) Extended Think Time - In think time we have two options like Ignore think time and Replay think time. d) General - Under general tab we can set the vusers as process or as multithreading and whether each step as a transaction.
  21. Where do you set Iteration for Vuser testing? - We set Iterations in the Run Time Settings of the VuGen. The navigation for this is Run time settings, Pacing tab, set number of iterations.
  22. How do you perform functional testing under load? - Functionality under load can be tested by running several Vusers concurrently. By increasing the amount of Vusers, we can determine how much load the server can sustain.
  23. What is Ramp up? How do you set this? - This option is used to gradually increase the amount of Vusers/load on the server. An initial value is set and a value to wait between intervals can be
    specified. To set Ramp Up, go to ‘Scenario Scheduling Options’
  24. What is the advantage of running the Vuser as thread? - VuGen provides the facility to use multithreading. This enables more Vusers to be run per
    generator. If the Vuser is run as a process, the same driver program is loaded into memory for each Vuser, thus taking up a large amount of memory. This limits the number of Vusers that can be run on a single
    generator. If the Vuser is run as a thread, only one instance of the driver program is loaded into memory for the given number of
    Vusers (say 100). Each thread shares the memory of the parent driver program, thus enabling more Vusers to be run per generator.
  25. If you want to stop the execution of your script on error, how do you do that? - The lr_abort function aborts the execution of a Vuser script. It instructs the Vuser to stop executing the Actions section, execute the vuser_end section and end the execution. This function is useful when you need to manually abort a script execution as a result of a specific error condition. When you end a script using this function, the Vuser is assigned the status "Stopped". For this to take effect, we have to first uncheck the “Continue on error” option in Run-Time Settings.
  26. What is the relation between Response Time and Throughput? - The Throughput graph shows the amount of data in bytes that the Vusers received from the server in a second. When we compare this with the transaction response time, we will notice that as throughput decreased, the response time also decreased. Similarly, the peak throughput and highest response time would occur approximately at the same time.
  27. Explain the Configuration of your systems? - The configuration of our systems refers to that of the client machines on which we run the Vusers. The configuration of any client machine includes its hardware settings, memory, operating system, software applications, development tools, etc. This system component configuration should match with the overall system configuration that would include the network infrastructure, the web server, the database server, and any other components that go with this larger system so as to achieve the load testing objectives.
  28. How do you identify the performance bottlenecks? - Performance Bottlenecks can be detected by using monitors. These monitors might be application server monitors, web server monitors, database server monitors and network monitors. They help in finding out the troubled area in our scenario which causes increased response time. The measurements made are usually performance response time, throughput, hits/sec, network delay graphs, etc.
  29. If web server, database and Network are all fine where could be the problem? - The problem could be in the system itself or in the application server or in the code written for the application.
  30. How did you find web server related issues? - Using Web resource monitors we can find the performance of web servers. Using these monitors we can analyze throughput on the web server, number of hits per second that
    occurred during scenario, the number of http responses per second, the number of downloaded pages per second.
  31. How did you find database related issues? - By running “Database” monitor and help of “Data Resource Graph” we can find database related issues. E.g. You can specify the resource you want to measure on before running the controller and than you can see database related issues
  32. Explain all the web recording options?
  33. What is the difference between Overlay graph and Correlate graph? - Overlay Graph: It overlay the content of two graphs that shares a common x-axis. Left Y-axis on the merged graph show’s the current graph’s value & Right Y-axis show the value of Y-axis of the graph that was merged. Correlate Graph: Plot the Y-axis of two graphs against each other. The active graph’s Y-axis becomes X-axis of merged graph. Y-axis of the graph that was merged becomes merged graph’s Y-axis.
  34. How did you plan the Load? What are the Criteria? - Load test is planned to decide the number of users, what kind of machines we are going to use and from where they are run. It is based on 2 important documents, Task Distribution Diagram and Transaction profile. Task Distribution Diagram gives us the information on number of users for a particular transaction and the time of the load. The peak usage and off-usage are decided from this Diagram. Transaction profile gives us the information about the transactions name and their priority levels with regard to the scenario we are deciding.
  35. What does vuser_init action contain? - Vuser_init action contains procedures to login to a server.
  36. What does vuser_end action contain? - Vuser_end section contains log off procedures.
  37. What is think time? How do you change the threshold? - Think time is the time that a real user waits between actions. Example: When a user receives data from a server, the user may wait several seconds to review the data before responding. This delay is known as the think time. Changing the Threshold: Threshold level is the level below which the recorded think time will be ignored. The default value is five (5) seconds. We can change the think time threshold in the Recording options of the Vugen.
  38. What is the difference between standard log and extended log? - The standard log sends a subset of functions and messages sent during script execution to a log. The subset depends on the Vuser type Extended log sends a detailed script execution messages to the output log. This is mainly used during debugging when we want information about: Parameter substitution. Data returned by the server. Advanced trace.
  39. Explain the following functions: - lr_debug_message - The lr_debug_message function sends a debug message to the output log when the specified message class is set. lr_output_message - The lr_output_message function sends notifications to the Controller Output window and the Vuser log file. lr_error_message - The lr_error_message function sends an error message to the LoadRunner Output window. lrd_stmt - The lrd_stmt function associates a character string (usually a SQL statement) with a cursor. This function sets a SQL statement to be processed. lrd_fetch - The lrd_fetch function fetches the next row from the result set.
  40. Throughput - If the throughput scales upward as time progresses and the number of Vusers increase, this indicates that the bandwidth is sufficient. If the graph were to remain relatively flat as the number of Vusers increased, it would
    be reasonable to conclude that the bandwidth is constraining the volume of
    data delivered.
  41. Types of Goals in Goal-Oriented Scenario - Load Runner provides you with five different types of goals in a goal oriented scenario:
    • The number of concurrent Vusers
    • The number of hits per second
    • The number of transactions per second
    • The number of pages per minute
    • The transaction response time that you want your scenario
  42. Analysis Scenario (Bottlenecks): In Running Vuser graph correlated with the response time graph you can see that as the number of Vusers increases, the average response time of the check itinerary transaction very gradually increases. In other words, the average response time steadily increases as the load
    increases. At 56 Vusers, there is a sudden, sharp increase in the average response
    time. We say that the test broke the server. That is the mean time before failure (MTBF). The response time clearly began to degrade when there were more than 56 Vusers running simultaneously.
  43. What is correlation? Explain the difference between automatic correlation and manual correlation? - Correlation is used to obtain data which are unique for each run of the script and which are generated by nested queries. Correlation provides the value to avoid errors arising out of duplicate values and also optimizing the code (to avoid nested queries). Automatic correlation is where we set some rules for correlation. It can be application server specific. Here values are replaced by data which are created by these rules. In manual correlation, the value we want to correlate is scanned and create correlation is used to correlate.
  44. Where do you set automatic correlation options? - Automatic correlation from web point of view, can be set in recording options and correlation tab. Here we can enable correlation for the entire script and choose either issue online messages or offline actions, where we can define rules for that correlation. Automatic correlation for database, can be done using show output window and scan for correlation and picking the correlate query tab and choose which query value we want to correlate. If we know the specific value to be correlated, we just do create correlation for the value and specify how the value to be created.
  45. What is a function to capture dynamic values in the web vuser script? - Web_reg_save_param function saves dynamic data information to a parameter.