The F in the mnemonic FIRST stands for Fast Which option correctly states the meanings of the other four letters (IRST)?
SELECT ONE OPTION
Answer : D
The mnemonic FIRST is used to describe good unit tests in Agile software development. Each letter stands for a quality that the tests should possess:
F- Fast: Tests should run quickly.
I- Isolated: Tests should not depend on each other.
R- Repeatable: Tests should yield the same results every time.
S- Self-Validating: Tests should have a boolean output (pass or fail).
T- Thorough: Tests should cover every part of the code.
Option D correctly states the meanings of the letters IRST in the context of the FIRST mnemonic.
Which of the following is a correct statement?
Answer : C
Definition of Test Automation:
Test automation is not a procedure, objective, or methodology. Instead, it is a strategic approach to automate testing activities to improve efficiency and coverage.
Strategic Nature:
The ISTQB syllabus defines test automation as a strategy that integrates automated tests into the development lifecycle.
Conclusion:
Option C is correct as test automation aligns with the definition of a strategy.
Your Agile team is developing a web-based system that will allow users to browse and buy online from a store's shopping catalogue. Continuous Integration has been implemented and technically it is working well, running several times per day, but each run is taking almost as much time as the team is prepared to allow. It is clear that after a few more iterations, as the number of tests needed grows with the product, it will be taking too much time.
Which of the four options contains a pair of solutions that will BOTH help to solve this problem?
a. Only include unit and component integration tests in the automated Cl runs.
b. Schedule low priority tests to be the first ones executed in each run, in order to provide rapid build verification.
c. Reduce the extent to which the automated tests go through the user interface, using technical interfaces instead.
d. Reduce the number of Cl cycles run each day.
e. Select a subset of automated tests for the daytime Cl runs, and run as many of the other tests as possible in an overnight cycle.
SELECT ONE OPTION
Answer : C
The ISTQB Advanced Level Agile Technical Tester syllabus emphasizes the importance of optimizing Continuous Integration (CI) processes in Agile environments. Option C suggests reducing the extent to which automated tests interact with the user interface and instead using technical interfaces, which is often faster as it bypasses the GUI layer. Additionally, running a subset of tests during the day and the rest overnight can help manage the CI process without overloading the system during peak hours. These strategies align with the best practices for maintaining efficient CI cycles and ensuring that the CI process remains sustainable as the number of tests grows with the product.
What is the characteristic of a unit test that makes it ''atomic''?
Answer : C
Definition of 'Atomic' in Unit Testing:
An atomic test focuses on a single, isolated piece of functionality.
This ensures clarity and simplicity in verifying the behavior of that specific functionality.
Analyzing the Options:
A: Describes a deterministic test, not an atomic one.
B: Atomic tests do not verify all details but rather focus on a specific area.
D: Speed is a desirable characteristic but does not define atomicity.
C: Testing only the targeted functionality aligns with the definition of atomicity.
Aligned with ISTQB Agile Technical Tester objectives regarding unit test properties like scope and focus.
What is the characteristic of a unit test that makes it ''deterministic''?
Answer : A
Definition of 'Deterministic' in Unit Testing:
A deterministic test produces consistent results when executed under the same conditions.
Analyzing the Options:
A: Correctly describes deterministic behavior.
B: Refers to test coverage, not determinism.
C: Refers to atomicity, not determinism.
D: Speed is unrelated to determinism.
Aligned with ISTQB Agile Technical Tester syllabus emphasizing the need for tests to be consistent and predictable.
The following user story has been developed:
As a customer of Alpha Airways who has booked a flight
I want to access the flight reservation
So that I can update the booking details
Which BDD scenario written in Gherkin format correctly applies to this user story?
SELECT ONE OPTION
Answer : C
The correct BDD scenario for the given user story is option C, which aligns with the principles of Behavior-Driven Development (BDD) and the Gherkin syntax. This scenario clearly specifies the context (Given), the action (When), and the outcome (Then), along with handling alternate flows (ELSE). It ensures that the customer can access and update their booking details only if they provide both the correct surname and flight number, which is a common practice for verifying a customer's reservation. This scenario also includes an error handling path, which is essential for a comprehensive test case.
A unit test should be isolated Which option correctly describes the meaning of 'isolated' as a characteristic of a unit test?
SELECT ONE OPTION
Whenever it is run under the same conditions, it should produce the same results.
Answer : A
The term 'isolated' in the context of unit testing refers to the practice of testing a unit of code in isolation from other units. This means that the test should only cover the functionality of the unit it is designed to test, without any interactions with other units or systems. This isolation helps to ensure that the test is focused, reliable, and not affected by external factors, making it easier to pinpoint the source of any issues that arise.