You are part of an agile team creating a user story.
Which of the following requirements engineering techniques would you use to provide a visual representation of the system and help to see the 'overall* story with the functional flow?
SELECT ONE OPTION
A unit test should be isolated Which option correctly describes the meaning of 'isolated' as a characteristic of a unit test?
SELECT ONE OPTION
Whenever it is run under the same conditions, it should produce the same results.
The following user story has been developed:
As a customer of Alpha Airways who has booked a flight
I want to access the flight reservation
So that I can update the booking details
Which BDD scenario written in Gherkin format correctly applies to this user story?
SELECT ONE OPTION
A new Payroll system calculates the amount of tax that each employee must pay (TaxToPay) on their gross monthly salary (in (), and the net salary (NetSal) that they will receive after that amount of tax has been deducted It also calculates the amounts of tax (TaxPdYTD) and net salary (SalPdYTD) paid in the year to date (YTD) by adding them to the stored amounts from last month (for month 1 these will be zero), inputs Include Employee id (Empid) and Gross Salary this month (GrossSal). Tax Rate is looked up on the key of Employee Id, the amounts of tax and net salary paid in the year to date are looked up on the key of (Employee Id and [month • 1]) except that for month 1 they will be zero.
if both employees were paid the same in month 1 as in the current month 2. for which tax has now to be calculated, which data-driven input and expected output table is correct for this situation?
Table 1
MonthEmpidGrossSalTaxRateTaxToPayNetSalTaxPdYTD
212000153001700600
222200204401760880
Table 2
MonthEmpidGrossSalTaxRateTaxToPayNetSalSalPdYTD
2120000.153001700600
2222000.24401760880
Table 3
MonthEmpidGrossSalTaxToPayNetSalTaxPdYTDSalPdYTD
11200030017006003400
12220044017608803520
Table 4
MonthEmpidGrossSalTaxToPayNetSalTaxPdYTDSalPdYTD
21200030017006003400
22220044017608803520
SELECT ONE OPTION
Which option correctly states the sequence of tasks to be undertaken when re-factoring test cases?
SELECT ONE OPTION
A unit test should be deterministic. Which option correctly describes the meaning of 'deterministic' as a characteristic of a unit test9
SELECT ONE OPTION
Which statement about test automation being applied to a reactive test approach, is CORRECT’
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
The following user story has been written:
As a paying hotel guest
I want to see the charges that have been added to my bill
So that I can monitor my expenditure and know In advance how much I will have to pay when I check out
The notes that have been added to It mention that It must be possible for the guest to get a printout of the bill, see It In a variety of currencies and set a flag in the hotel's billing system against any Item that they wish to challenge.
The following acceptance criteria have been defined:
1.The user shall be able to choose from the most commonly-used currencies.
2.The application must be accessible on most mobile platforms as well as on the hotel room's smart TV.
3.The hotel manager must be notified whenever a bill item is flagged by a hotel guest.
4.End-to-end response time for any individual request submitted by a user must not exceed 7 seconds.
Applying the INVEST technique to this user story, including its acceptance criteria, which of the following statements is correct?
SELECT ONE OPTION
You have identified existing test cases that require re-factoring, Which is the NEXT task you should perform?
SELECT ONE OPTION
The following user story has been written for a new application being developed to pre-book a space at a National Car Park.
As a vehicle driver
i want to be able to pre-book a car parking space online, selecting a disabled driver's space if needed
So that l can pay in advance and receive confirmation of my parking space number.
The following acceptance criteria have also been written:
•Payment can be made via PayPal, Debit or Credit Card
•Confirmation of payment and car parking details should be sent after the booking process is completed
•Driver information is stored in the reservation database
The database has been built and tested in a previous sprint, but the interface to the different payment methods have yet to be developed
As a tester in an agile team, you have been asked to review the user story You have detected some issues with this story:
1.it needs to cater for different user groups: a driver or disabled driver
2.it needs to cater for different vehicle types: a car. 4x4. van or motorbike
3.There are no acceptance criteria relating to how quick the booking process should be
4.How confirmation is to be sent for payment and space number, and other important details, have not been specified
5.A stub will be needed to test the payment method
Which pair of requirements engineering techniques are you MOST LIKELY to have used to uncover these issues’
SELECT ONE OPTION
Which option correctly slates a recommended guideline for formulating 8DD scenarios0
SELECT ONE OPTION
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
BDD and ATDD are most commonly used with which test approach?
You have been asked to supply the data file for a data-driven test automation script that will be used to test the following story:
As a customer I want to be told how many items I need to purchase, so I can receive free shipping
You have been told the automation will verify whether or not the free shipping message is displayed. Which of the following columns should appear in your data file to support the automated testing of this story?
What is a virtualized service?
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?
You have to review the following user story that will be developed and tested during the next
Sprint:
As a potential conference attendee, I want to be able to register for the conference online, so that
registration is simple and paperless.
The following acceptance criteria are also mentioned:
i) Payment can be made via PayPal, Debit or Credit Cards
ii) An acknowledgement email is sent to the attendee after submitting the form
iii) Protection against spam is working as expected
iv) Information from the form is stored in the registrations database
v) All incorrect user inputs are flagged by the system
Which of the following correctly shows which acceptance criteria are testable?
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?
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?
You have been given the following story
As a shopper
I want to scan my membership card
So that I get all the discounts I'm entitled to receive
Which of the following is the correct use of BDD to design test scenarios?
You have been working as a tester in an Agile team You have found that the user stories are being defined by the team but it is still unclear what will be a successful outcome Even after story elaboration you are still unclear as to what a story should do As a result, you're not really sure what to test or to know when you'll be done with testing This problem is becoming worse as completed stories are showcased but the product owner is unhappy with the results
You've looked into the matter further and the comments from the product owner indicate that features are missing from the stories. The story is functioning correctly within the limited definition of the story but the product owner is expecting more functionality, such as error handling that isn't being defined in the story
What technique should you implement that would help to further define the product owner's expectations and alleviate the issues that are arising during the show cases?
The challenges described below are of test automation in agile settings or agile projects. Which is
the correctly described one?