FIT For. NET (1)

Source: Internet
Author: User
Tags dot net
Fit for Dot NET describes how I found this tool. Next I will introduce this tool.

When I wrote this article, I referred to the FIT site http://fit.c2.com/.and some of them were directly translated.

1) how to get the FIT Tool

The FIT tool is divided into. NET and Java versions. You can download it at http://www.sourceforge.net/projects/fit.

2) FIT Introduction

  2.1 Introduction

First, FIT is just a test framework, which needs to be understood.

Fit allows customers, testers, and programmers to know what their software should look like, and FIT automatically compares customer expectations and actual values produced by software.


In the development of customers and programmers, FIT will establish a feedback loop. specifically, it is the actual example of the customer generating a software. Then, the programmer adds the FIT framework to the software to verify whether the results produced by the program are the same as those given by the customer. this kind of courtesy exchange is a cycle of feedback.

Based on the above description, you should know that FIT actually constructs a simple and useful bridge between business and software engineering.

Next, I will briefly introduce how to use it. As for its detailed usage, I will reflect it in future articles:

(Mainly from with http://fit.c2.com /)

2.2 how to use FIT

FIT documents are produced through collaboration across the entire software product group. Customers, testers, and programmers must work together to succeed. the final result is an executable detailed description, which is a readable document. this document not only describes the software, but also describes what the software looks like.

Below is a diagram (from http://fit.c2.com /)

 

In the preceding figure, the test result of a FIT document is displayed. Green indicates pass, while red indicates fail.

 

From concept to completion: Create a feature FIT

This process starts with a new feature described by a customer (which can be a field expert, business element, product manager, etc.) and what the customer should do.

Is a whiteboard conversation

Customers who work with testers and programmers can extract these examples to a table (which can be processed using Excel or Word) and convert it into a document. the tester and the programmer suggested additional fields to make sure this table is suitable for FIT.

 

Customer's initial example

 

Additional items for testers and programmers

FIT format

This document is saved in HTML format. developers can create "fixture": a bit of program code in the example in this document can be understood, and try the code on the software project being developed. fortunately, the FIT framework makes it very simple. the following code is used:

One FIT Fixture (using C # programming)

Now that FIT fixture has been completed, we will wait for the document to run and get the test result. first, the example failed and marked as not red (see figure 1 ). since the test fails, the programmer must fix it and the final example turns green (see figure 2 ).

 

Here I want to ask a question: how can I take the document's face value out of the corresponding domain of the software.

? I want to be careful to find a phenomenon. is the WeeklyCompensation of the class name in the Code the same as the first row in the table, and the class member is not the same as the column name in the table? What does this mean? I think everyone understands that the values in the table correspond to the class members. I will not elaborate on how to implement them.

Figure 1.

Programmers ask the customer some questions they want to discuss. At the same time, the customer improves the clarity of the document. Therefore, the document will be used as a reference document in the future. test and review these examples to ensure they can cover all important aspects of the feature.

If they find new things, they can share these new things with the rest of the group. As a result, the FIT documentation will become increasingly mature.

 

Figure 2. Final FIT document

Finally, we need to add how to run the FIT document. For more information, see

 

------- Unfinished -------

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.