Construct test case for the use case scenario

Assignment Help Software Engineering
Reference no: EM13658627

1. Answer questions (a)-(d) for the graph defined by the following sets:

N = {1, 2, 3, 4, 5}

N0 = {1}

Nf = {5}

E = {(1,2), (2,3), (1,3), (2,4), (4,1), (3,5)}

a) Draw the graph (Do not use a generation tool. Draw it yourself and scan in or use power point tool or similar one)

b) List test requirements (TR) and test paths for Node Coverage

c) List test requirements (TR) and test paths for Edge Coverage

d) List the test requirements (TR) for Edge-Pair coverage (requirements must be of edge length 2)

2. Answer questions (a)-(c) for the graph defined by the following sets:

N = {1, 2, 3, 4}

N0 = {1}

Nf = {4}

E = {(1,2), (2,3), (1,3), (3,2), (3,4), (1,4)}

Also consider the following (candidate) test paths:

t0 = [1,3,4 ]

t1 = [1, 4]

a) Draw the graph (Do not use a generation tool. Draw it yourself and scan in or use power point tool or similar one)

b) Does the given set of test paths satisfy Edge-Pair Coverage? If not, identify what edge(s) are missing.

c) List test paths that achieve Node Coverage but not Edge Coverage on the graph.

3. Using below definitions for the graph, use Data Flow tool to determine for variable x. Capture the screenshot of at least one execution and paste in the document.

Tool: 

N = {0,1, 2, 3, 4,5,6,7}

N0 = {0}

Nf = {7}

E = {(0,1),(1,2), (2,3), (2,4), (3,5), (4,5), (5,6),(6,5),(6,7),(1,7)}

def(1)=def(3)=use(2)=use(3)=use(6) =use(7)= (x)

def(0)=def(4)=def(6)=use(4)=use(7)=(y)

a) All-def coverage

b) All-use coverage

c) All-du-path coverage

4. Use the following program fragment for questions (a)-(c) below.

a=m;  // node 0

y = x; // node 1

if (m > 0)

{

a++; // node 2

}

else

{

a=2*y; // node 3

}

while (x < 5)    // node 4

{

y = 5*a; // node 5

x--;     // node 6

}

z = a + y; // node 7

(a) Draw a control flow graph for this program fragment (Do not use a generation tool. Draw it yourself and scan in or use power point tool or similar one). Use the node numbers given above.

(b) Which nodes have defs for variable a and which nodes have uses for variable a?

(c) Enumerate all of the du-paths for variable y.

5. For the following questions a-c, consider the method FSM for a (simplified) programmable thermostat. Suppose the variables that define the state and the methods that transition between states are:

partOfDay : {Wake, Sleep}

temp : {Low, Medium, High}

// Initially "Wake" at "Low" temperature

// Effects: Advance to next part of day

public void advance();

// Effects: Make current temp higher, if possible

public void up();

// Effects: Make current temp lower, if possible

public void down();

(a) How many states are there and what are they?

(b) How many edges are there and what are they?

(c) Draw and label the states (with variable values) and transitions (with method names). Notice that all of the methods are total.

(d) A test case is simply a sequence of method calls. Provide a test set that satisfies Edge Coverage on your graph (using state labels).

6. Use activity graph for ATM withdraw funds on page 90 (Fig 2.42) up to Prompt for Transaction and then use the below continuation for transfer selection to answer the (a)-(c) questions.

490_Draw a control flow graph.png

a) Construct a use case to include name, summary, actor, precondition, description, alternatives, and post condition

b) Construct a use case scenario (specific steps through use case)

c) Construct test case for the use case scenario with specific values for purpose, prereq, test data, steps, and expected output.

Reference no: EM13658627

Questions Cloud

Drill bit on variable-speed drill has constant angular : A drill bit on a variable - speed drill has a constant angular acceleration of 2.5 rad/s2. The drill has an initial angular speed of 5.00 rad/s (a) after 4.00s, what will the angular displacement of the bit be? (b) What will the drill bits final spee..
Decide distance of final image relative to converging lens : A diverging lens (f = -11 cm) is located 20.0 cm to the left of a converging lens (f =34.0 cm). A 3.00-cm-tall object stands to the left of the diverging lens, accurately at its focal point. Decide the distance of the final image relative to the conv..
Raw materials from goods store to production : Raw materials from goods store to production
Make or break a security posture : Ultimately, people make or break a security posture. People who do things they should not do, whether or not intentional, always trump the best technology.
Construct test case for the use case scenario : Draw the graph (Do not use a generation tool. Draw it yourself and scan in or use power point tool or similar one) and does the given set of test paths satisfy Edge-Pair Coverage? If not, identify what edge(s) are missing
Corporate portfolio management assignments : Corporate Portfolio Management Assignments
Compute the net energy added to the system as heat : A gas within a closed chamber undergoes the cycle shown in the p-V diagram of Fig. 18-37. The horizontal scale is set by Vs = 4m^3. Compute the net energy added to the system as heat during one complete cycle.
What emf is induced in the loop when the length : A square loop of wire is believed in a uniform 0.29 T magnetic field directed perpendicular to the plane of the loop. The length of every side of the square is decreasing at a constant rate of 5.8 cm/s. What emf is induced in the loop when the length..
Resistances of primary and secondary coils of a transformer : The resistances of the primary and secondary coils of a transformer are 59 and 13 Ω, correspondingly. Both coils are made from lengths of the similar copper wire. The circular turns of each coil have the similar diameter. Find the turn’s ratio Ns/Np.

Reviews

Write a Review

Software Engineering Questions & Answers

  Develop a windows navigation diagram

Develop a windows navigation diagram (WND) that maps the events and relationships between the major forms in your application and Develop a layout diagram or prototype of the windows used in the application.

  Design conceptual diagram to identify hardware elements

Design a conceptual diagram which identifies the hardware elements present inall computer systems and their relationships?

  You have been contracted by an economic consulting firm to

you have been contracted by an economic consulting firm to determine the economic structure and possible future actions

  Explain the syntax of programming languages

BNF is used extensively in the computing field to describe the syntax of programming languages. Give an example of where and how BNF might be used to solve real-world problems

  Requirements to analyse-design system of sell-bike software

What are the requirements to analyse and design the system of Sell-Bike software is a SME (small to medium enterprise) company selling students bicycles.

  Compute the crc code word for the information word

Using CRC polynomial 1101 compute the CRC code word for the information word 01001101. Check the Division performed at the receiver.

  What would you want your employees to do

A fellow employee is being harassed at work and is afraid to say or do anything about it. If you "blow the whistle" the company may retaliate against you. You could even lose your job.

  What do you think are the key items and issues that require

question systems engineering organizations are often created for just one project.what do you think are the key items

  Imagine that you are interviewing for a job when the

imagine that you are interviewing for a job when the interviewer asks you which cost-benefit analysis technique is best

  Suppose you are tasked with coming up with a system

Suppose you are tasked with coming up with a system development approach for the following project: John's shoe store which operates a chain of local stores in Chicago wants to develop an e-commerce presence on the web so they can sell shoes to a ..

  Questiona describe the layer ofnet framework that sits

questiona describe the layer of.net framework that sits between visual basic.net 2005 and operating system.b

  Formal software development approaches

An aspect of the preferred procedure for almost all formal software development approaches is to do some design before coding.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd