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?
I don’t think C fits since the repeated problem is setup/teardown, not standard assertions. D.
Don't think it's C, since just standardizing verification doesn't fix the duplicate setup/teardown issue. D fits better for this scenario.
D , I saw almost the same question on a practice exam and D was correct there too.
D is the way to go-having standard setup and teardown functions keeps things DRY and manageable. Makes it easier if you need to tweak the environment steps later too. Pretty sure that's what ISTQB wants here, but open if someone thinks A is better.
C or D? Both touch on good practices, but since the question really highlights repeated setup/teardown steps, I'd lean D. Not 100% though since C helps with assertion consistency. Anyone see it differently?
Makes sense to pick D here.
I don't think C is right since the main issue is redundant setup/teardown, not assertions. D.
D is what I'd pick. Centralized setup and teardown at the test case level avoids repeating the same code, which makes maintenance way easier. A and C are good practices but don't really tackle the core problem in this scenario. Pretty sure D is exactly what they're looking for here, unless I'm missing a nuance.
Probably D makes the most sense because it's all about removing that duplicated setup/teardown code in every test. Centralizing this logic at the test case level keeps things cleaner and way easier to maintain. C is nice for standard assertions but doesn't actually solve the main problem called out in the scenario. Pretty sure that's what ISTQB expects.
Be respectful. No spam.