Question 6
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?
Question 7
You have received this BDD test
Given that a customer enters the correct PIN When they request to make a withdrawal And they have enough money in their account Then they will receive the money And a receipt Which of the following is the user story that best fits this BDD test?
Question 8
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?
Question 9
The challenges described below are of test automation in agile settings or agile projects. Which is the correctly described one?
Question 10
You are testing a payment processing application that calls an external service at a bank to process the monetary transactions. The bank charges per transaction for the use of their service. You are creating an automation suite that will be used as part of continuous testing. How could service virtualization benefit the project if a virtualized service is created that will act in the same way as the bank application?
