CTAL-TAE · Question #69
In a first possible implementation, the automated test scripts within a suite locate and interact with elements of a web UI indirectly through the browsers using browser-specific drivers and APIs…
The correct answer is A. has a lower level of intrusion than the alternative implementation and therefore its test scripts are. Using browser-specific drivers and APIs to interact with the UI simulates real user behavior more closely and introduces a lower level of intrusion compared to directly manipulating the DOM or internal JavaScript. This reduces the likelihood of false positives, since tests…
Question
In a first possible implementation, the automated test scripts within a suite locate and interact with elements of a web UI indirectly through the browsers using browser-specific drivers and APIs, provided by an automated test tool used as part of the TAS. In an alternative implementation, these test scripts locate and interact with elements of the same web UI directly at the HTML level by accessing the DOM (Document Object Model) and internal JavaScript code. The first possible implementation:
Options
- Ahas a lower level of intrusion than the alternative implementation and therefore its test scripts are
- Bhas a higher level of intrusion than the alternative implementation, and therefore its test scripts
- Chas a lower level of intrusion than the alternative implementation, and therefore its test scripts are
- Dhas the same level of intrusion as the alternative implementation, and therefore the risk of test
How the community answered
(15 responses)- A53% (8)
- B7% (1)
- C27% (4)
- D13% (2)
Explanation
Using browser-specific drivers and APIs to interact with the UI simulates real user behavior more closely and introduces a lower level of intrusion compared to directly manipulating the DOM or internal JavaScript. This reduces the likelihood of false positives, since tests validate the UI as the end user would experience it.
Topics
Community Discussion
No community discussion yet for this question.