### This site provides two tools for generating case

1. Given-When scenario generator based on MindMap
2. MC/DC design tool

#### 1. Given-When scenario generator based on MindMap

There are many ways to write a scenario for post-development test, but the most widely used method among developers is to simply arrange with Given-When-Then. Based on this, you can create and organize basic requirements and test scenarios using mind map.

Let's take a look at an example of creating a Given-When-Then scenario by getting a feature specification or a wireframe.

##### (1) Info Service App about IDOL

Let's create a Given-When-Then scenario for a simple idol app.

Base feature list is like below

If there are detailed restrictions on each function, let's summarize them.

##### (2) Given-When-Then

Now we set up features with Given and When

Given

1. Logged in as a member
2. Entered more than 140 characters

When

1. Send texts to IDOL
3. Comment on photos
4. Comment on posts

Now, Let's make MindMap with these items.

Change Given branch first

Entering "140 characters" is only avaliable to logged in member, "140 characters" is located after "SignIn" node.

Now Let's change When branch

The items above When items can be executed independently. So, map would be set like below

### Warning! : Don't modify Given, When Nodes

Nodes below when should have nodes 'Yes' and 'No' tail. It is because more convenient to define when Items.

Click Get Result to get combination results.

18 cases were derived. This is a result of the combination of Given and When, where you need to add and remove cases as appropriate. The Then part is where the expected result is written.

Total available cases are 15 cases.

#### MC/DC Design Tool

The concept of Modified Condition / Decision Coverage (MC / DC) is as follows.

• MC/DC is a method of ensuring adequate testing for safety-critical software. At its core lies the idea that if a choice can be made, all the possible factors (conditions) which contribute to that choice (decision) must be tested.

For example, look at the below statement.

if (A && B){    statement;}

The Complete total case is like below.

There are 22 = 4 different cases for testing A and B. If if (A && B && C), all test cases would be 23 = 8 .

This method is called MCC(Multiful Condition Coverage) and its pros and cons are

• pros : perfact cases(touch all cases could be happen)
• cons : too many cases

The method to reduce this effectively is the Modified Condition / Decision Condition (MC / DC) method, which will not be described in detail here. The current position of this technique in testing is robust, and the use of this technique in structural-based testing is critical for automotive, rail and aerospace systems that have a significant loss of human life and property. See Google search for more details.

The MC/DC design tool provided here obtains the MC/DC results for each condition clause of the pseudo code, and then makes a case of the combination of the MC / DC results of each condition clause. (This is called Elementary Comparison Testing using MC / DC.)

In this case, C pseudo code is used. The supplied sample code creates a case by combining the MC / DC result of if (a || b) and the MC / DC result of else if (c && d || e). Clicking getValue will make the result as shown below.