Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Check 1. 0 analysis, test cases

2025-01-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

Use case numbering test project test title preset condition execution step expected output actual output tester important level date Check-ST-001 file select the text to be counted

The file with the suffix .c successfully opened check system 1. Click the file selection button

two。 Select a file with a suffix of .c

File: C:\ a.c

3. Select the statistical code line check box

4. Click to start statistics

The text box shows: C:\ a.c

Output the following result information:

"count the number of lines of code (non-empty non-comment lines), total 480 lines"

Wei Ximei Gao 2013/5/12Check-ST-002 file selects the articles to be counted.

A file with a .txt suffix

Successfully opened the check system 1. Click the file selection button

two。 Select a file with a suffix of .txt

File: C:\ a.txt

3. Select the statistical code line check box

4. Click to start the statistics pop-up dialog box:

The file [full path of the source file] is not * .c, the file type is illegal, please reselect the file.

Wei Ximei high 2013/5/12Check-ST-003 file selection selected statistically non-existent files successfully opened check system 1. Click the file selection button

two。 Select a file with a suffix of .c

File: C:\ b.c

3. Delete the file b.c

3. Select the statistical code line check box

4. Click to start statistics

Prompt the user "cannot open this file, please reselect the file!"

Wei Ximei Gao 2013/5/12Check-ST-004 file selects the articles to be counted.

Pieces larger than 1m successfully opened check system 1. Click the file selection button

two。 Select a file with a suffix of .c

File: C:\ c.c size: 1.1m

3. Select the statistical code line check box

4. Click the start Statistics pop-up dialog box to prompt the user that "the file [full path of the source file] is more than 1m and cannot be counted. Please select another file"

Wei Ximei Gao 2013/5/12Check-ST-005 file selects the articles to be counted.

Pieces equal to 1m successfully opened check system 1. Click the file selection button

two。 Select a file with a suffix of .c

File: C:\ d.c size: 1m

3. Select the statistical code line check box

4. Click to start the statistics text box to display: C:\ d.c

Output the following result information: "count the number of lines of code (non-empty non-comment lines) for a total of 10 lines".

Wei Ximei Gao 2013/5/12Check-ST-006 file selects the articles to be counted.

Piece less than 1m successfully opened check system 1. Click the file selection button

two。 Select a file with a suffix of .c

File: C:\ e.c size: 0.9m

3. Select the statistical code line check box

4. Click to start the statistics text box to display: C:\ e.c

Output the following result information: "count the number of lines of code (non-empty non-comment lines) for a total of 10 lines".

Wei Ximei Gao 2013/5/12Check-ST-007 Statistical comment Line selection of articles to be counted

The file with the suffix .c successfully opened check system 1. Click the file selection button

two。 Select a file with a suffix of .c

File: C:\ a.c

3. Select the check box for counting the number of comment lines

4. Click to start statistics

The text box shows: C:\ a.c

Output the following result information: "Statistical comment lines total 10 lines"

Wei Ximei Gao 2013/5/12Check-ST-008 Statistical comment Line selection of articles to be counted

A file with a .txt suffix

When the statistical file is a WORD document (there are multiple lines of Chinese characters in the document), the check system 1. Click the file selection button

two。 Select a file with a suffix of .txt

File: C:\ a.txt

3. Select the check box for counting the number of comment lines

4. Click to start the statistics pop-up dialog box:

The file [full path of the source file] is not * .c, the file type is illegal, please reselect the file.

Wei Ximei Gao 2013/5/12Check-ST-009 Statistical comment Line selected non-existent files that were counted successfully opened check system 1. Click the file selection button

two。 Select a file with a suffix of .c

File: C:\ b.c

3. Delete the file b.c

3. Select the check box for counting the number of comment lines

4. Click to start statistics

Prompt the user "cannot open this file, please reselect the file!"

Wei Ximei Gao 2013/5/12Check-ST-010 Statistical comment Line selection of articles to be counted

Pieces larger than 1m successfully opened check system 1. Click the file selection button

two。 Select a file with a suffix of .c

File: C:\ c.c size: 1.1m

3. Select the check box for counting the number of comment lines

4. Click the start Statistics pop-up dialog box to prompt the user that "the file [full path of the source file] is more than 1m and cannot be counted. Please select another file"

Wei Ximei Gao 2013/5/12Check-ST-011 Statistical comment Line selection of articles to be counted

Pieces equal to 1m successfully opened check system 1. Click the file selection button

two。 Select a file with a suffix of .c

File: C:\ d.c size: 1m

3. Select the check box for counting the number of comment lines

4. Click to start the statistics text box to display: C:\ d.c

Output the following result information: "Statistical comment lines total 10 lines"

Wei Ximei Gao 2013/5/12Check-ST-012 Statistical comment Line selection of articles to be counted

Piece less than 1m successfully opened check system 1. Click the file selection button

two。 Select a file with a suffix of .c

File: C:\ e.c size: 0.9m

3. Select the check box for counting the number of comment lines

4. Click to start the statistics text box to display: C:\ e.c

Output the following result information: "Statistical comment lines total 10 lines"

Wei Ximei high 2013/5/12Check-ST-013 statistics blank line selection is counted article

The file with the suffix .c successfully opened check system 1. Click the file selection button

two。 Select a file with a suffix of .c

File: C:\ a.c

3. Select the statistical blank line check box

4. Click to start statistics

The text box shows: C:\ a.c

Output the following result information: "count a total of 10 blank lines".

Wei Ximei high 2013/5/12Check-ST-014 statistics blank line selection is counted article

The file with the suffix .txt successfully opened check system 1. Click the file selection button

two。 Select a file with a suffix of .txt

File: C:\ a.txt

3. Select the statistical blank line check box

4. Click to start the statistics pop-up dialog box:

The file [full path of the source file] is not * .c, the file type is illegal, please reselect the file.

Wei Ximei's article on the selection of the total number of 2013/5/12Check-ST-015 statistics

The file with the suffix .c successfully opened check system 1. Click the file selection button

two。 Select a file with a suffix of .c

File: C:\ a.c

3. Select the General Statistics check box

4. Click to start statistics

The text box shows: C:\ a.c

Output the following result information: "the total number of rows is 500 rows".

Wei Ximei's article on the selection of the total number of 2013/5/12Check-ST-016 statistics

The file with the suffix .txt successfully opened check system 1. Click the file selection button

two。 Select a file with a suffix of .txt

File: C:\ a.txt

3. Select the General Statistics check box

4. Click to start the statistics pop-up dialog box:

The file [full path of the source file] is not * .c, the file type is illegal, please reselect the file.

Wei Ximei Gao's article on multiple statistical choices of 2013/5/12Check-ST-017

The file with the suffix .c successfully opened check system 1. Click the file selection button

two。 Select a file with a suffix of .c

File: C:\ a.c

3. Select the statistical code line check box

4. Check box for statistical comment lines

5. Select the statistical blank line check box

6. Select the General Statistics check box

7. Click to start the statistics text box to display: C:\ a.c

Output the following result information:

"count the number of lines of code (non-empty and non-comment lines), total 10 lines"

"Statistical comment lines total 480 lines"

"count a total of 10 blank lines"

"the total number of rows is 500."

Wei Ximei Gao's article on multiple statistical choices of 2013/5/12Check-ST-018

The file with the suffix .txt successfully opened check system 1. Click the file selection button

two。 Select a file with a suffix of .txt

File: C:\ a.txt

3. Select the statistical code line check box

4. Check box for statistical comment lines

5. Select the statistical blank line check box

6. Select the General Statistics check box

7. Click to start the statistics pop-up dialog box:

The file [full path of the source file] is not * .c, the file type is illegal, please reselect the file.

Wei Ximei and Gao 2013/5/12Check-ST-019 do not select statistical items and choose articles to be counted.

The file with the suffix .c successfully opened check system 1. Click the file selection button

two。 Select a file with a suffix of .c

File: C:\ a.c

3. Click to start the statistics text box to display: C:\ a.c

Pop-up dialog box: please select the statistical method

Wei Ximei Gao 2013/5/12Check-ST-020 exit system selection is counted

The file with the suffix .c successfully opened check system 1. Click the file selection button

two。 Select a file with a suffix of .c

File: C:\ a.c

3. Select the statistical code line check box

4. Check box for statistical comment lines

5. Select the statistical blank line check box

6. Select the General Statistics check box

7. Click to start statistics

8. Click to exit the text box to display: C:\ a.c

Output the following result information:

"count the number of lines of code (non-empty and non-comment lines), total 10 lines"

"Statistical comment lines total 480 lines"

"count a total of 10 blank lines"

"the total number of rows is 500."

Successfully exit the program

Wei Ximei Gao 2013/5/12Check-ST-021 exit system selection is counted

The file with the suffix .txt successfully opened check system 1. Click the file selection button

two。 Select a file with a suffix of .txt

File: C:\ a.txt

3. Select the statistical code line check box

4. Check box for statistical comment lines

5. Select the statistical blank line check box

6. Select the General Statistics check box

7. Click to start statistics

8. Click to exit the pop-up dialog:

The file [full path of the source file] is not * .c, the file type is illegal, please reselect the file.

Successfully exit the program

Wei Xi Meigao 2013-5-12

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report