Q: 8
Consider A TAS for testing a desktop application via its GUI. All the test cases of the automated test
suite contain the same identical sequences of steps at the beginning (to create the necessary objects
when doing a preliminary configuration of the test environment and at the end (to remove
everything created –specifically for the test itself during the preliminary configuration of the test
environment). All automated test cases use the same set of assertion functions from a shared library,
for verifying the values in the GUI fields ( e.g text boxes).
What is the BEST recommendation for improving the TAS?
Options
Discussion
Option D makes the most sense here since having standard setup and teardown functions at test case level will remove the duplicate code and keep things maintainable. I think that's what the exam wants, not just standardizing assertions. Agree?
D . The repeated setup/teardown screams for standard functions. A is tempting but doesn't directly stop the duplication trap.
D . Standard setup and teardown at test case level cuts out all the duplicated config/cleanup code mentioned in the scenario, which is a classic improvement in test automation frameworks. I've seen similar wording in practice questions too. Pretty sure that's what they're looking for, but C is tempting if you focus only on assertions.
Definitely D here. Standardizing setup and teardown functions tackles the redundancy head-on, which keeps things maintainable long-term. The shared library for assertions is already in place, so C doesn’t actually add anything new for this scenario. Pretty sure D is what ISTQB expects.
Setup and teardown done once for all test cases is the main thing, so D.
Yeah, D is the way to go. Standard setup and teardown functions are key for reducing repeated code in test automation suites.
A
I don’t think it’s C, since that’s already covered in the scenario and the problem is mainly with repeated setup and teardown. D actually tackles the code duplication head-on by centralizing these routines. Pretty sure that’s what they want here, but let me know if you see a reason to pick A or C.
Its D for sure. Standard setup and teardown address that step duplication issue directly. Correct me if I'm missing anything.
D tbh, C's a trap here since the question is about repeated setup/teardown not assertion methods.
Be respectful. No spam.