CTAL-TAE · Question #74
Automated tests at the UI level for a web app adopt an asynchronous waiting mechanism that allows them to synchronize test steps with the app, so that they are executed correctly and at the right…
The correct answer is B. Implement the initialization tasks aimed at setting the preconditions of the tests within the Test. Since the initialization tasks are required before every test case, they should be placed in the Test Setup feature of the suite. This ensures each test starts with the correct preconditions, improving reliability and reducing duplication of setup steps in individual test…
Question
Automated tests at the UI level for a web app adopt an asynchronous waiting mechanism that allows them to synchronize test steps with the app, so that they are executed correctly and at the right time, only when the app is ready and has processed the previous step: this is done when there are no timeouts or pending asynchronous requests. In this way, the tests automatically synchronize with the app’s web pages. The same initialization tasks to set test preconditions are implemented as test steps for all tests. Regarding the pre-processing (Setup) features defined at the test suite level, the TAS provides both a Suite Setup (which runs exactly once when the suite starts) and a Test Setup (which runs at the start of each test case in the suite). Which of the following recommendations would you provide for improving the TAS (assuming it is possible to perform all of them)?
Options
- AAdopt a manual synchronization with the app's web pages using hard-coded waits instead of the
- BImplement the initialization tasks aimed at setting the preconditions of the tests within the Test
- CAdopt a manual synchronization with the app's web pages using dynamic waits via polling instead
- DImplement the initialization tasks aimed at setting the preconditions of the tests within the Suite
How the community answered
(30 responses)- A10% (3)
- B73% (22)
- C13% (4)
- D3% (1)
Explanation
Since the initialization tasks are required before every test case, they should be placed in the Test Setup feature of the suite. This ensures each test starts with the correct preconditions, improving reliability and reducing duplication of setup steps in individual test scripts.
Topics
Community Discussion
No community discussion yet for this question.