Which of the following is the BEST example of how static analysis tools can help improve the test automation code quality in terms of security?
A new TAS allows the implementation of automated data-driven test scripts. All the tasks planned for the initial deployment of this TAS, aimed at installing and configuring the TAS components and provisioning the infrastructure, will be performed manually by a dedicated, specialized team. This TAS is expected to be deployed in the future in other similar environments. As a TAE, you see a risk that the correct and reproducible deployment of the TAS cannot be guaranteed. Which of the following options is BEST suited for mitigating this risk?
Which factor will support maintainability of test automation solutions?
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:
A CI/CD pipeline consists of two phases: build and deployment. The build phase, among other activities, runs automated test cases at the following test levels: Component Testing (CT) and Component Integration Testing (CIT). If the build phase is successful, the deployment phase is started. The deployment phase first provisions the test environment infrastructure needed to deploy the SUT, then deploys the SUT to this environment, and finally triggers another separate pipeline that runs automated test cases at the following test levels: System Testing (ST) and Acceptance Testing (AT). Which of the following statements is TRUE?
When choosing an automation tool, which would be the BEST option for automation testers who have programming skills?
You are working as a TAE for a small start-up insurance broker and your next project will be a new system for generating motor insurance quotes. The project will follow an Agile methodology. The stakeholders are keen to get it into production, but are realistic about the need to allow enough time for thorough testing and support automation of tests where appropriate.
Which approach for automating the tests would be MOST suitable for this project?
Some automated regression test scripts run by a TAS in a given test environment make calls to private APIs that require authentication for all requests (the authentication method is the same for all APIs). The SUT is a business-critical system. The following two changes are planned: a change in the authentication method of all APIs and a minor upgrade of the OS (Operating System) in the test environment. You have updated the test scripts to cope with the change in the API authentication method. Which of the following sequences of activities is BEST to ensure that the test scripts are not adversely affected by these changes?
When a continuous integration/continuous deployment (CI/CD) pipeline is split between build and deployment phases, which statements are TRUE?
a) Component and component integration tests are part of the deployment phase.
b) System and higher-level tests may be part of the build phase.
c) Component and component integration tests are part of the build phase.
d) System and acceptance tests may be executed in a separate pipeline.
e) System integration tests cannot be run in this kind of pipeline.
Which items should be included in a report that is produced after execution of a test suite?
The last few runs for a suite of automated keyword-driven tests on a SUT were never completed. The test where the run was aborted was not the same between runs. Currently, it is not possible to identify the root cause of these aborts, but only determine that test execution aborted when exceptions (e.g., NullPointerException, OutOfMemoryError) occurred on the SUT by analyzing its log files. Test execution log files are currently generated, in HTML format, by the TAS as follows: all expected logging data is logged for each keyword in intermediate log files. This data is then inserted into the final log file only for keywords that fail, while only a configurable subset of that data is logged for keywords that execute successfully. Which of the following actions (assuming it is possible to perform all of them) would you take FIRST to help find the root cause of the aborts?
When is automated API testing BEST performed?
Which of the following statements about contract testing is TRUE?
How is automation typically applied in a Waterfall lifecycle model?
You are employed as a TAE on a project to build a purchasing system. The main requirements for the system are:
1) Allow users to enter details of items that they wish to have purchased and, from these details, create a purchase request.
2) Take each purchase request through a workflow that will allow the requestor’s line manager to approve the request, reject it, or return it for clarification/modification.
3) Forward approved requests to the Purchasing Department.
4) Allow purchasers to find the best available supplier and place the request on that supplier as a purchase order.
Requirement 1 has now been delivered and has been satisfactorily tested manually. In parallel, you have developed a TAS so that functional suitability testing can be automated.
The functional suitability testing of Requirement 1 has now been automated as fully as possible. A change to add audit logging of user activity is planned but has not yet been made. After a small change to the UI code, the last regression run contained a significant number of unexplained test failures. At the point each test stopped, the actual and expected results showed no discrepancies. In each case, the run was able to continue with the next test in the suite. Preliminary investigation showed that the points at which these tests stopped had nothing obvious in common.
Which option below contains the BEST next steps to investigate this?
To improve the maintainability of test automation code, it is recommended to adopt design principles and design patterns that allow the code to be structured into:
Consider a TAS aimed at implementing and running automated test scripts at the UI level on web apps. The TAS must support cross-browser compatibility for a variety of supported browsers, by ensuring that the same test script will run on such browsers in the same way without making any changes to it. This is achieved by introducing appropriate abstractions into the TAA for connection and interaction with different browsers. Because of this, the TAS will be able to make direct calls to the supported browsers using each different browser’s native support for automation. Which of the following SOLID principles was adopted?
As a TA-E, you have successfully verified that a test automation environment and all other components of the TAS are working as expected. Now your goal is to verify the correct behavior for a given automated test suite that will be run by the TAS. Which of the following should NOT be part of the verifications aimed at achieving your goal?
Which of the following descriptions of what some test automation tools can be used to do is TRUE?
You have agreed with your organization's managers to conduct a pilot project to introduce test automation. Managers' expectations about the benefits of automation are too optimistic. Which of the following is LEAST relevant when deciding the scope of the pilot project's objectives?
Consider a TAS implemented to perform automated testing on native mobile apps at the UI level, where the TAF implements a client-server architecture. The client runs on-premise and allows creation of automated test scripts using TAF libraries to recognize and interact with the app’s UI objects. The server runs in the cloud as part of a PaaS service, receiving commands from the client, translating them into actions for the mobile device, and sending the results to the client. The cloud platform hosts several mobile devices dedicated for use by this TAS. The device on which to run test scripts/test suites is specified at run time. You are currently verifying whether the test automation environment and all other TAS/TAF components work correctly. Which of the following activities would you perform to achieve your goal?
You are a TAE responsible for a TAS that is used on several products, all of which have complex UIs. A substantial proportion of the automated tests break on a regular basis, usually for reasons associated with the UI. The investigation and maintenance this requires is significantly reducing the productivity of the teams and the return on investment.
You are looking for ways to improve the test cases in this TAS. Which of the following approaches would be MOST appropriate?
a) Artificial intelligence
b) Test histograms
c) Reliability growth modelling
d) Schema validation
e) Operational profiles
What does contract testing verify?
(Which of the following statements about how test automation is applied across different software development lifecycle models is TRUE?)