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 testing should 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 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?**
Why is it important to refactor test cases to make them easier to understand?
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?
You are testing a mission-critical system and want to use exploratory testing for part of the testing. According to the syllabus, what is the correlation between this type of testing and the risk level of the item being tested?
Consider the following section of pseudocode:
function getPassword() {
var x;
var y;
var z;
var passwordGood = false
// Get password from user, user is allowed 3 tries
do until x = 3
call getPassword (password)
if password is good
x = 3
passwordGood = true
else
X = X + 1
display “Password is not valid, try again’’
endif
If passwordGood <> true
display “You exceeded the number of tries to enter a password. Your account is now locked. Call customer service.”
endif
endloop
}
For this section of code, which of the following issues should be identified during a code review?
Variables have not been properly defined with meaningful names
There are unused variables defined
Divisors are not tested for zero
Loop counters are not properly initialized
There are endless loops
There are statements within the loop that should be outside the loop
You want to get information from a large set of users to help define acceptance criteria for a set of stories. You want to use questions with predefined answers and allow the user to select the best answer from that set. What type of elicitation technique would be most efficient to use?
According to the syllabus, which of the following is a correct statement about automation in a mission-critical system versus a non-critical system?
What is the characteristic of a unit test that makes it “atomic”?
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 cart, 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 cart 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 e-commerce site. Which of the following is the smallest set of keywords that contains the ones needed to support testing this story?