FIT for Dot Net (1)

xiaoxiao2021-03-06  41

Fit for Dot Net introduces how I found this tool. I will introduce this tool below.

When writing this article, refer to the Fit site

Http://fit.c2.com/. Some of them are directly translated.

1) How to get a Fit tool

The Fit tool is divided into .NET version and Java version, you can

Http://www.sourceforge.net/projects/fit go to download.

2) Fit introduction

2.1 Introduction

First, Fit is just a test framework, which requires it.

Fit allows customers, testers, programmers know what their software should look. And Fit will automatically compare the customer's expectations and actual values ​​generated by the software.

In the development of customers and programmers, FIT will establish a feedback loop. Specifically, the customer generates a software practical example, then the programmer adds the FIT framework in their own software to verify that the result produced by her program is The same as the customer. Such a gift is a feedback cycle.

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

Below, I will simply introduce how to use it, as for his detailed use, I have an embodiment in future articles:

(Mainly from

http://fit.c2.com/)

2.2 How to use Fit

Fit's documentation is generated through collaboration, customers, testers, and programmers must work together through the entire software product group. The final result is a "executable detailed description", which is a readable document. This document is not only described. Software, and also describe what is actually a single thing. Here, a picture is given (from http://fit.c2.com/) in the above figure, it is the test result of a FIT document, green It is said that the expression is not passed.

From the concept to complete: Fit to make a feature start from a new feature described in a customer (can be a domain expert, business element, product manager, etc.), and how the customer provides how it should be done.

The above figure is a white board dialogue

Customers who work with testers and programmers, extract these examples into a table (handling this table with excel, word, etc.), turn it into a document. Tester and programmers suggest additional domain to ensure this table Suitable for Fit.

Initial example of the customer

Tester and programmer's additive

Fixed Format This document is saved in HTML format, and developers can create "fixture": a little bit of program code that can be understood in the document, and try these code on the developed software project. Fortunately, the FIT framework It is very simple. The following is these code:

A FIT fixture (programming using C #)

Since Fit FixTure has been completed, wait for us to run on the document, and get the test results. First, the example failed, the tag is not red (see Figure 1). Since the test fails, the programmer must fix it, the final example becomes green (Refer to Figure 2). Here I want to ask a question, how is it taken from the value of the document to the software's corresponding domain, I remember that I asked myself like this.? I want to carefully discover a phenomenon. Is the class name in the code WEEKLYCOMPENSATION is not just the same as the first line in the table, then the membership of the class is not just the same as the column name of the table, what does this mean? I think everyone understands, in fact, the value inside the table is Corresponding to the members of the class. As for how to implement, I will not say it.

Figure 1. Programmers ask the customer some expectations to discuss issues, at the same time, the client improves the clarity of the document, so the document can be used as a reference document in the future. Test review these examples, ensure that they can override all important aspects of the characteristics.

If they find new things, they can share these new things with the remaining groups. This Fit document is getting more and more mature.

Figure 2, ending FIT document

Finally, there is still something to add, just how to run the FIT document, see the picture below

------- Not complete -------

转载请注明原文地址:https://www.9cbs.com/read-52191.html

New Post(0)