PICT use case combination tool introduction and tutorial

1. Introduction to

PICT tool PICT tool is a command line generation tool developed by Microsoft Corporation. This tool is very simple to use and install. This article will introduce this artifact to everyone; students who

use background
testing will often encounter one in daily project testing. One situation involves a combination of use cases. This type of use case is not only time-consuming and laborious to write, but it is also easy to miss many use cases. The use-case coverage is less than 100%. Simple two-two or three-three combination use cases are written. It is not difficult, but what if the 30 conditions are combined with each other?
Example
Give a simple example in mathematics, the combination possibilities of 1, 2, 3, 4 and other four numbers are: 1 * 2 * 3 * 4 = 24 kinds (arrangement and combination); the
details are as follows:
1234,1243,1324, 1342,1423,1432
2134,2143,2341,2314,2413,2431,
3124,3142,3241,3214,3412,3421,
4123,4132,4231,4213,4321,4312
more than just a combination of all numbers, if without limiting the order of the digits, the combination will be more;
so the test students involved in a combination of example only rely on manual written is not realistic use cases in writing, this time to rely on procedures or tools to meet our needs
methods
design combined use cases There are many ways, students with development experience can write a program to achieve, students who are familiar with excel can also rely on excel to achieve, of course, there are ready-made tools to help us, this is the PICT tool
II, PICT tool installation

Link: https://pan.baidu.com/s/1XjSb2vIUT2mnPAXjY7e9jg
extraction code: 0wjq
Tool self-fetching: download and install pict33.msi, after installation, find the directory where the file pict.exe is located; the
default installation is in the C: \ Program Files \ PICT directory;

three, the PICT tool uses

to create a txt file at the specified location, I am The document created on the desktop, named ceshi.txt
, can design our combined use case at this time. For example:
there are three conditions (A, B, C), each of which has three sub-conditions.
Condition A has a, b, c
Condition 1, there are 1, 2, 3
Condition C, d, e, f
requirements: List all combinations of all sub-conditions, unlimited order, unlimited number
Open ceshi.txt, enter the combination conditions (Remarks: Let me say here, the symbols between the combined conditions in the document must be English symbols, Chinese symbols are not recognized)
 
Condition A: factor a, factor b, factor c

condition B: factor 1, factor 2, factor 3

condition C: Factor d, factor e, factor f

save text documents

into cmd or cmder tools (I am used to cmder, because cmder supports more commands than cmd), and the path points to the desktop (or to the location where your files are stored) ): cd ~ / desktop

execution command pict Excel introduced into the output (a table named Custom):

PICT ceshi.txt> group.xls

will generate a new file group.xls on the desktop, will be a combination of open conditions with Example:

4. Summarize

different conditions, there will be different combinations. As long as you write the right combination and understand the principle of tool combination, you can help you complete better test cases. If you have any questions, please leave a message below;
———— ————————————
Copyright Statement: This article is an original article by CSDN blogger "Hangzhou Acai". It follows the CC 4.0 BY-SA copyright agreement. For reprint, please attach the original source link and this statement.
Original link: https://blog.csdn.net/CDY_yuan/java/article/details/87085384

Guess you like

Origin www.cnblogs.com/mawenqiangios/p/12713376.html