| Test Case | Action | Expected |
|---|---|---|
| Register success | 1. insert data - firstName = "Vicki" - lastName = "Taylor" - gender = "female" - dateOfBirth = "1975-02-01" - tel = "(329)-859-2151" - email = "vicki.taylor49@example.com" 2. press send button |
1. Redirect to success landing page 2. Found "Welcome Vicki Taylor" message |
| Register error (network request failed) |
1. insert data - firstName = "Vicki" - lastName = "Taylor" - gender = "female" - dateOfBirth = "1975-02-01" - tel = "(329)-859-2151" - email = "vicki.taylor49@example.com" 2. press send button |
1. Redirect to error landing page |
| Validation failed (press send button without any form input) |
1. press send button | 1. Show "Required" on firstName, lastName, and dateOfBirth fields |
| Required first name | 1. tab firstName input 2. blur input |
1. Show "Required" on firstName field |
| Required last name | 1. tab lastName input2. blur input | 1. S |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { sum ,power } from './calculate' | |
| export const sumOfPower = (a, b) => { | |
| console.log('CALL REAL sumOfPower') | |
| const powA = power(a) | |
| const powB = power(b) | |
| return sum(powA, powB) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export const sum = (a, b) => { | |
| console.log('CALL REAL SUM ' + a + ' ' + b) | |
| return a + b | |
| } | |
| export const power = (a) => { | |
| console.log('CALL REAL POWER ' + a) | |
| return a * a | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const http = require('http'); | |
| const hostname = '127.0.0.1'; | |
| const port = 3000; | |
| const server = http.createServer((req, res) => { | |
| res.statusCode = 200; | |
| res.setHeader('Content-Type', 'text/plain'); | |
| res.end('Hello World\n'); | |
| }); |
| hexadecimal | decimal | |
|---|---|---|
| red | 33 | 51 |
| green | 33 | 51 |
| blue | 33 | 51 |