Spring Sale Special - Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: sntaclus

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.

Has a lower level of intrusion than the alternative implementation, and therefore its test scripts are less likely to produce false positives

B.

Has a higher level of intrusion than the alternative implementation, and therefore its test scripts are less likely to produce false positives

C.

Has a lower level of intrusion than the alternative implementation, and therefore its test scripts are more likely to produce false positives

D.

Has the same level of intrusion as the alternative implementation, and therefore the risk of test scripts producing false positives is the same in both cases

An automated test script makes a well-formed request to a REST API in the backend of a web app to add a single item for a product (with ID = 710) to the cart and expects a response confirming that the product is successfully added. The status line of the API response is HTTP/1.1 200 OK, while the response body indicates that the product is out of stock. The API response is correct, the test script fails but completes, and the message to log is: The product with ID = 710 is out of stock. Cart not updated. When this occurs, you are already aware that both the failed test and the API are behaving correctly and that the problem is in the test data. The TAS supports the following test logging levels: FATAL, ERROR, WARN, INFO, DEBUG. Which of the following is the MOST appropriate test logging level to use to log the specified message?

A.

FATAL

B.

INFO

C.

DEBUG

D.

WARN

Consider a TAS deployed into production. The SUT is a web application and the test suite consists of a set of automated regression tests developed via GUI. A keyword-driven framework has been adopted for automating the regression tests. The tests are based on identification at low-levels of the web page components (e.g class indexes, tab sequence indexes and coordinates) in the next planned release the SUT will be subject to significant corrective maintenance (bug-fixes) and evolution (new features) Maintenance costs to update the test scripts should be as low as possible and the scripts must be highly reusable.

Which of the following statements is most likely to be TRUE?

A.

The keyword-driven framework is not suitable, it would be better to adopt a structured-scripting approach

B.

False positive errors are likely to occur when running the automated tests on the new releases without modifying the test

C.

The total execution time of the automated regression test suite will decrease for each planned release.

D.

The keyword-driven framework introduces a level abstraction that is too high and makes it difficult what really happens

A TAS uses a commercial test automation tool and the default logs generated by the inconsistent formats such as different types of messages (pass/fail steps, screenshots, warnings, etc.) To solve this issue some custom logging functions have been created from the test scripts, making it possible to log the different types of messages with the same format. However, this may cause a problem due to excessive size of the logs which can make it difficult to find the required information. Assume that all the default logs will be disabled when running the automated tests and that some tests will not generate excessively sized logs.

Which of the following represents the BEST suggestion for implementing the custom logging functions?

A.

Implement the custom logging functions without saving timestamps

B.

Implement the custom logging functions to support different levels of tracing

C.

Implement the custom logging functions without saving stack traces

D.

Implement the custom logging functions to redirect the logs to multiple files

Which of the following statement about the implementation of automated regression testing is FALSE?

A.

When automating regression tests, the structure of automated tests must always be the same as the corresponding manual tests

B.

When automating regression tests, the corresponding manual tests should have already been executed to verify they operate correctly

C.

When automating regression tests, the initialization steps set the test preconditions should be automated wherever possible

D.

When automating regression tests, consideration should be given to how much time would be saved by automation

Consider the following layers of the gTAA structure:

a. Test generation layer

b. Test definition layer

c. Test execution layer

d. Test execution layer

Consider the following capabilities associated with these layers.

Acquire all the necessary resources before each test and release all after run, in order to avoid interdependences between test

Allow the automated test scripts on an abstract level to interact with components, configurations and interfaces of the SUT.

Design test directives that allow configuring the algorithms used to automatically produce the test cases a given model of the SUT.

Allow the definition and implementation of test cases and data by means of templates and/or guidelines.

Which of the following BEST matches each layer with the appropriate capability?

A.

a-3, b-4, c-1, d-2

B.

a-4, b-3, c-1, d-2

C.

a-4, b-3, c-2, d-1

D.

a-3, b-4, c-2, d-1

Which of the following practices can be used to specify the active (i.e., actually available) features for each release of the SUT and determine the corresponding automated tests that must be executed for a given release?

A.

Feature-driven development

B.

The use of feature files

C.

Test-driven development

D.

The use of feature toggles

A TAS that performs automated testing in a single test environment was successfully manually installed and configured from a central repository, with all its components in the correct versions. It was also verified that all TAS components in this environment are capable of providing reliable and repeatable performance. The TAS will be used to run several suites of automated regression test scripts on various SUTs in the test environment. Your current goal is to complete all preliminary verifications to ensure that the TAS works correctly. Which of the following activities would you perform FIRST?

A.

Create scripts to automatically install and configure the TAS in the test environment from the central repository

B.

Check whether the TAS connectivity to all required internal systems, external systems, and interfaces is available

C.

Run a given suite multiple times using TAS to determine whether all regression test scripts always provide the same result

D.

Check whether all regression test scripts in a given suite have expected results

You are executing the first test run of a test automation suite of 200 tests. All the relevant information related to the state of the SUT and to the automated test execution is stored in a small database. During the Automated test run you observe that the first 10 test pass, while an abnormal termination occurs when executing the 11thtest. This test does not complete its execution and the overall execution of the suite is aborted. An immediate analysis of the abnormal termination is expected to be time consuming and you have been asked to produce a detailed report of the execution results for the first test run, as soon as possible.

What is the MOST important FIRST step to be taken immediately after the abnormal occurred when executing the 11thtest?

A.

Re-run the test automation suite starting from the 12thtest

B.

Return the database to a consistent state that allows subsequent test to run

C.

Take a backup of the database in its current state. So It can be analyzed later

D.

Re-run the test automation suite starting from the 1sttest.

Which of the following statements about contract testing is TRUE?

A.

Contract testing, regardless of the approach chosen (provider-driven or consumer-driven) does not need to rely on the creation of stubs/mocks since it is used to implement integration testing, not unit/component testing

B.

Contract testing can be viewed as a specialized form of API testing that can be applied to effectively and efficiently test integration between microservices, but only if they interact with REST APIs

C.

The differences between the two approaches to contract testing stem primarily from which side creates the contract: this creation is done by the provider for the provider-driven approach and by the consumer(s) for the consumer-driven approach

D.

Contract testing can be viewed as a specialized form of API testing that can be applied to effectively and efficiently test integration between systems, but only if they interact synchronously