CTFL-PT practice question 6 of 10

Which section of a performance test script is typically responsible for ensuring the script will have the right values and communication settings during execution?

Full set: 40 questions
Answer options
A: main section
B: clean-up section
C: initialization section Correct answer
D: timer section
Correct Answer:
C. initialization section
Explanation

The initialization section of a performance test script is executed at the beginning of a test for each virtual user. Its primary purpose is to prepare the environment for the main test actions. This includes tasks such as logging in, setting initial variable values (e.g., session IDs, user-specific data), and configuring necessary communication settings or connections. This setup ensures that the main body of the script can execute correctly with the required preconditions and data in place.

Why Incorrect

A. main section: This section contains the core business transactions to be measured. It uses the values and settings prepared by the initialization section but is not responsible for setting them up.
B. clean-up section: This section, also known as finalization or teardown, runs after the main section to restore the environment by logging out, releasing resources, or deleting test data.
D. timer section: A timer is a mechanism used within the main section to measure the response time of specific transactions, not a structural section for setting up script values or settings.

References

1. ISTQB® Certified Tester Foundation Level Performance Testing Syllabus, Version 1.0 (2018), Section 3.2.2, "Structure of a Performance Test Script", Page 22. The syllabus states, "Initialization: This part of the script is executed once at the beginning of the test for each Vuser. It is used to set up the environment for the test run (e.g., log in to the SUT, initialize variables, etc.)." This directly supports the function of the initialization section.

2. Molyneaux, I. (2009). The Art of Application Performance Testing. O'Reilly Media, Inc. Chapter 6, "Test Execution," discusses the common script structure, including the necessity of a setup or initialization phase to prepare the test environment before the measured actions and a teardown phase for cleanup afterward.

Scroll to Top