Search Header Logo
Level 4 Recap 3

Level 4 Recap 3

Assessment

Presentation

Computers

University

Practice Problem

Medium

Created by

Samuel Markham

Used 2+ times

FREE Resource

31 Slides • 14 Questions

1

Assignment Recap and Prep

Test Plans, Test Driven Development, and IDE features

2

Purpose of a Test Plan

  • Define objectives and scope of testing

  • Set out resources and requirements

  • Scheduling

  • Set out success criteria

3

Test Plan Structure

  • Test objectives

  • Test scope

  • Test cases

  • Outcomes and notes

4

Test plans should be

  • Clear

  • Repeatable

  • Comprehensive

5

Multiple Choice

Which of these elements would not be on a test plan?

1
Personal opinions
2

Date and time

3
Test objectives
4

Dependencies

6

Reorder

What is the appropriate layout of a test plan?

Objectives

Scope

Requirements

Test Cases

Outcome

1
2
3
4
5

7

Test objectives

  • Highlights main aims of test

  • Informs test case design

  • Indicates the timeline of the test

  • Should guide test-team

8

Test Scope

  • Defines what is in scope - what features are being tested?

  • Defines what (if anything) is not in scope

  • Define integration requirements (if needed)

9

Test Cases

  • Individual

  • Many

  • Simple

  • Align to objectives and scope

10

Test Case Structure

​Test ID

Date/time

​Description

​Input Data

​Expected Output

​Actual Output

​Notes

​1

12/12/24
13:30

​Ensure valid username is accepted when signing up

​Username_123

​Sign up successful, next screen loads

​As expected

​2

​12/12/24
13:35

​Ensure invalid username (special char) is not accepted

​Username_123$

​User error message preventing page load, ask user to try again

​Username accepted and next page loaded

​Bug fix - invalid username allowed

11

Outcomes

  • Define test outcome pass/fail

  • Note any issues

  • Suggest required action

  • Sign off section

12

Scenario Questions

Login System

A small business wants to implement a login system for its website. The system requires users to enter a username and password to access their accounts. Below are the details of the login functionality:

  • If the username and password are correct, the user is logged in.

  • If the username is incorrect, the system shows an error message: "Invalid username."

  • If the password is incorrect, the system shows an error message: "Invalid password."

  • If the username or password fields are left blank, the system shows: "Fields cannot be empty."

13

Reorder

What is the appropriate order for executing a test plan for the scenario?

A small business wants to implement a login system for its website. The system requires users to enter a username and password to access their accounts. Below are the details of the login functionality:

If the username and password are correct, the user is logged in.

If the username is incorrect, the system shows an error message: "Invalid username."

If the password is incorrect, the system shows an error message: "Invalid password."

If the username or password fields are left blank, the system shows: "Fields cannot be empty."

Define test case inputs and expected outputs

Run test cases

Compare actual output to expected

Document results

1
2
3
4

14

Multiple Choice

What is the primary objective of the test plan for the login system, based on the requirements?

A small business wants to implement a login system for its website. The system requires users to enter a username and password to access their accounts. Below are the details of the login functionality:

If the username and password are correct, the user is logged in.

If the username is incorrect, the system shows an error message: "Invalid username."

If the password is incorrect, the system shows an error message: "Invalid password."

If the username or password fields are left blank, the system shows: "Fields cannot be empty."

1

Verify the system accepts all input formats

2

Ensure that users can register for the system

3

Validate login system correctly identifies valid/invalid input

4

Test design of the login page

15

Multiple Choice

What is the primary purpose of a test plan?

1

To identify all possible bugs in a system.

2

To document the testing scope, approach, resources, and schedule.

3

To provide code-level documentation for developers.

4

To automate the testing process.

16

Match

Match the test plan component with its description.

Test Objectives

Test Scope

Test resources

Exit criteria

What the testing is expected to achieve

What will and will not be tested

Tools and software required for testing

Requirements for testing to be complete

17

Multiple Choice

Your team is testing a new e-commerce website. The team identifies that certain features will not be included in this test phase. Where should this information be documented in the test plan?

1

Test Objectives

2

Test Scope

3

Exit Criteria

4

Test Environment

18

Poll

What do you think is the most challenging aspect of creating a test plan?

Defining clear and measurable test objectives.

Determining the scope of testing and deciding what to include or exclude.

Identifying all possible test cases, including edge cases.

Writing detailed and understandable documentation for others to follow.

Something else

19

Multiple Choice

Which software development approach make heavy use of test plans?

1

Scrum

2

Result driven development

3

Test driven development

4

Agile

20

Test Driven Development

21

TDD Approach

  • Design tests first - running should fail

  • Write code to pass defined tests

  • Run tests

  • Refactor

22

TDD

media

23

TDD Benefits

  • Early error detection

  • Improved code quality

  • Easier maintenance/refactoring

  • Improves collaboration

  • Improved focus

  • Facilitates automation

24

TDD Drawbacks

  • More time up front

  • Learning curve

  • Over-testing trap

  • Reliant on good tests

25

Multiple Choice

What is the main principle of Test-Driven Development (TDD)?

1

Writing code and then creating tests for it.

2

Writing tests before writing the actual code.

3

Writing tests and code simultaneously.

4

Only testing after the software is fully implemented.

26

Multiple Choice

TDD reduces debugging time because errors are identified early in the development process.

1

True

2

False

27

Drag and Drop

The three main steps to the TDD cycle are often called​
,​
and​
Drag these tiles and drop them in the correct blank above
red
green
refactor
amber
reuse
repeat

28

Match

Match the TDD cycle step to its description.

Red

Green

Refactor

Write failing tests

Write just enough code to make the test

Improve the code without changing its be

29

Open Ended

In your own words, explain how TDD can lead to better code design.

30

IDE Key Features

31

Debugger

  • Highly useful feature

  • Allows control over code execution

  • Lets you pause code

  • View variable values

  • Create watch expressions

  • Track function calls

32

Version Control Integration

  • Usually have built in support for version control (e.g. Git)

  • Allows easy commits, branching, branch switching etc

  • Often gives visual of branches

  • Allows seamless linking to remote repos

33

Editor Features

  • Syntax highlighting

  • Error detection

  • Autocomplete

34

Assignment Tips

35

Writing Style

  • Write in formal style

    • Third person

    • Structured in sections

    • NOT by criteria

36

Layout

  • Title

  • Subtitles

  • Name in header

  • Page numbers

  • Font - sensible style (Times New Roman or Arial is my suggestion)

  • Align text - either justify or left

  • Images or tables - ensure captioned

37

References

  • In text citation - (Author Surname, Year)

    • (Smith, 2020)

  • Reference list

    • Includes ALL in text citations

    • Alphabetical by author surname

  • Suitable references

    • Text books

    • Journals

    • Websites with clear author, time and academic suitability

38

Criteria Tips and Required Evidence

39

P4 - Write a program that implements and algorithm using an IDE

  • You need to design algorithms yourself - especially SORT

  • Evidence will be

    • Code

    • Report (part)

  • Discuss features of IDE used

  • Screen shots can help

40

P5 - Explain the debugging process and the debugging facilities available in the IDE

  • Refer to your own development - how did you debug?

  • Explain common ways to approach debugging

  • Explain how an IDE can be used for debugging

41

P6 - Explain the coding standard you have used in your code

  • Identify coding standards you have implemented

  • Explain what that means - why have you used it?

  • Make it clear what the requirement of that standard are

42

M3 - Enhance the algorithm writtem, using the features of the IDE to manage the development process

  • You will likely need to evolve your design - evidence this in your work

  • Identify key features of the IDE that benefited this

    • Language specific features

    • Source control?

    • Debugger?

    • Etc

43

M4 - Examine how the debugging process can be used to help develop more secure, robust applications

  • Analyse/breakdown the importance of debugging for this - explain how

  • Secure does not mean anti-hacking

  • No unexpected behavior

  • Meets expectations and standards

  • Robust - error handling, no crashes etc

44

D3 - Evaluate the use of an IDE for development of applications contrasted with not using an IDE

  • Evaluate - use an analysis to make a judgement

  • Breakdown the reasons, explain each one

  • Discuss the benefits

  • Discuss the impact

  • Explain every point

45

D4 - Evaluate the role and purpose of a coding standard and why it is necessary in a team as well as for the individual

  • Evaluate - use an analysis to make a judgement

  • Breakdown the reasons, explain each one

  • Ensure you discuss for TEAMS and INDIVIDUALS

  • Bring all points back to WHY - benefit, impact etc

Assignment Recap and Prep

Test Plans, Test Driven Development, and IDE features

Show answer

Auto Play

Slide 1 / 45

SLIDE