iSQI CTFL-AcT Exam - Topic 1 Question 9 Discussion
Which of the following is the BEST example of a Gherkin-style test for a web-based banking application?
A) GIVEN I have $5000 on my personal account X AND I have $200 on my personal account Y
WHEN I transfer $1000 from X to Y
THEN I should have balance $4000 on my personal account X AND I should have balance $1200 on my personal account Y
B) GIVEN I have $5000 on my personal account X AND I have $200 on my personal account Y
WHEN I click 'Make transfer' button AND I enter '3000' into 'Amount' field
AND I enter 'X' into 'From which account' field AND I enter 'Y' into 'To which account' field AND I click 'Confirm transaction' button
THEN I should have balance $2000 on my personal account X AND I should have balance $3200 on my personal account Y
C) GIVEN I have $5000 on my personal account X and $600 on my personal account Y WHEN I transfer $500 from Y to X
THEN I should have balance $4500 on X and balance $1100 on Y
D) GIVEN I have $5000 on my personal account X WHEN I have $600 on my personal account Y
THEN I have $5600 in total on my personal accounts X and Y
Gregoria
9 months agoMyrtie
9 months agoRima
9 months agoFranklyn
9 months agoJame
9 months agoNoel
9 months agoKattie
9 months agoLashaun
9 months agoRosalind
9 months agoLai
9 months agoMitsue
10 months agoGerri
10 months ago