Which option describes a good practice when applying test automation for a Regression-averse test approach?
SELECT ONE OPTION
You are an experienced tester on an Agile team that is producing a new application. The product backlog has been refined sufficiently to begin development for the first release. This stories in this backlog contain a mixture of functional and non-functional requirements, as well as some technical stories that will provide elements of the application's infrastructure The developers have decided to use TDD as a deveiopment approach but automation of the acceptance tests is not yet planned.
You have been asked to recommend whether or not the team should take an atdd approach as well as TDD. what would be the BEST recommendation in these circumstances?
SELECT ONE OPTION
You are ar teviemng the fdbwng Java furxton that deteimates whether a curb*. rput by the user. * Even or Odd Public da»s Oddorfven {
public state void mair^Strcg [ | args) (
Scarcer read - new ScanrerfSystem inje
System out prim (’Pease enter a rxmber'i;
int Number • reader nextfntO,
if(Number^2»»0)
System out prrrtln "your input number 'Number ♦ * is even ).
else
System out prntirfyour input number 'Number ♦ * is odd*);
)
}
You are Qj>ded by ’.he following checklist
•All variables must start with a Capital letter
•All output messages must start with a Capita letter
•There must De a comment bne e« pla ning the purpose of the dess
How many checklist items Mve been fuelled7
SELECT ONE OPTION
Which of the following elicitation techniques is BEST usedwhen questioning a large number of stakeholders specifically to obtain information for non-functional acceptance criteria?
SELECT ONE OPTION
In order to create a shareable testing service from server or network traffic log data, which of the following types of tool would you use?
SELECT ONE OPTION
Your Agile team is developing a web-based system that will allow users to browse and buy online from a store's shopping catalogue. Continuous Integration has been implemented and technically it is working well, running several times per day, but each run is taking almost as much time as the team is prepared to allow. It is clear that after a few more iterations, as the number of tests needed grows with the product, it will be taking too much time.
Which of the four options contains a pair of solutions that will BOTH help to solve this problem?
a.Only include unit and component integration tests in the automated Cl runs.
b.Schedule low priority tests to be the first ones executed in each run, in order to provide rapid build verification.
c.Reduce the extent to which the automated tests go through the user interface, using technical interfaces instead.
d.Reduce the number of Cl cycles run each day.
e.Select a subset of automated tests for the daytime Cl runs, and run as many of the other tests as possible in an overnight cycle.
SELECT ONE OPTION
Why could test cases need to be refactored in an Agile project?
SELECT ONE OPTION
What level of automation testing should be included in the production deployment process when continuous deployment is used?
You have been asked to supply the list of keywords for a keyword-driven test automation script that will be used to test the following story
As a customer I want to be able to add and delete items from my shopping carl, so that I can buy the right number of items and still get free shipping on some of the items
The automation will add and delete items from a customer's shopping carl and will then verify that the total shipping cost is correct The test automation library has a large set of keywords that have been coded to support this ecommerce site Which of the following is the smallest set of keywords that contains the ones needed to support testing this story?
A developer has implemented a class that calculates if a given date is a leap year. The definition
for the leap year is given:
Every year that is exactly divisible by four is a leap year, except for years that are exactly
divisible by 100, but these centurial years are leap years if they are exactly divisible by 400.
- divisible by 4
- but not by 100
- years divisible by 400 are leap anyway
You have already thought about it and started with the first test class; the test class looks like
(pseudo JavaScript used here):
// LeapYear.spec.js
describe('Leap year calculator', () => {
it('should consider 1996 as leap', () => {
expect(LeapYear.isLeap(1996)).toBe(true);
});
});
What would now be your next step to proceed as efficient as possible, to validate the correctness
of the class above?
Your organization has been making animal food dispensers for free-range chickens and has been using a combination of test automation exploratory testing and some black-box testing on all products. The company has been using the following approach to the testing of the high-risk items:
Exploratory testing = 85%
Black-box testing = 15%
Test automation = coverage goal is 25% but time is only allocated to automation if no other testing is needed, so the coverage is currently about 5% and the automation suite is run only infrequently.
The company has decided to modify their product and use it for pill dispensing for pharmacies Regardless of the mechanical challenges of this modification you now have to determine how testingshould be adjusted for this safety critical application Which of the following would follow the guidelines in the syllabus for the testing approach for the high-risk items?
You are testing a new feature in the current iteration. The feature is supposed to take the input of a name and return the number of characters in the name. This information is used by another feature that will determine the size needed on a form. The acceptance criteria state the following
1) a name of up to 30 characters should be accepted
2) standard error processing should be in place to limit user errors
The developers are using TDD and you have asked to see their tests. This is what they gave you
When you run your manual tests you are finding that when you use the following inputs you get the associated results:
From these results what can you conclude about the TDD process?
You are testing a large e-commerce system for household goods that is being implemented using Agile methodologies You are currently working on deriving tests for stories that are implementing the following epic.
As a customer I want to use the e-commerce system, so that I can have my purchased goods delivered to my house.
The story you are currently working on is:
As a customer I want to be told when my items will be delivered, so I can plan to be home.
You have been given the following charter that was proposed by another tester for testing this story
Login as a customer, buy enough of each item to qualify for free shipping for each item checkout and verify that no shipping fee has been added.
What is the main flaw in this charter?
Consider the following section of pseudocode
Display "You exceeded the number of tries to enter a password. Your account is now locked. Call customer.
For this section of code, which of the following issues should be identified during a code review?
1. Variables have not been properly defined with meaningful names
2. There are unused variables defined
3. Divisors are not tested for zero
4. Loop counters are not properly initialized
5. There are endless loops
6. There are statements within the loop that should be outside the loop
The challenges described below are of test automation in agile settings or agile projects. Which is
the correctly described one?
In a regression-averse lest approach what should be the focus of test automation?
You are working for an organization that has implemented CI and is struggling to get the automated tests to run on each build because of time limitation. On average, there are three ad hoc builds per day one scheduled build overnight one scheduled build on Friday nights and one build that is conducted on the Thursday night before the end of the sprint on the second Friday. There are four sets of tests highpriority medium priority low priority, nonfunctional. The non-functional tests must be run in the integrated stage environment whereas the other tests can be run in any of the test environments
In addition to just the execution time of the tests it has also been noted that reviewing the results of the tests take about two hours per set of tests
Given this information which of the following is the most efficient and effective approach to test automation execution?