标签:
#-*- coding: utf-8 -*-
from fit.ColumnFixture import ColumnFixture
class Hellofit(ColumnFixture):
_typeDict = {
"descrip":"String",
"num1":"Int",
"num2":"Int",
"result":"Int"
}
def _init_(self):
ColumnFixture.__init__(self)
self.descrip=‘‘
self.num1=‘‘
self.num2=‘‘
def result(self):
add=self.num1+self.num2
return add
!define COMMAND_PATTERN {python "%m" %p}
!define TEST_RUNNER {C:\Python27\PyFIT-0.8a2\fit\FitServer.py}
!path E:\me\fit
!|Hellofit|
|descrip|num1|num2|result?|
|add|1|2|3
标签:
原文地址:http://www.cnblogs.com/muxinyue/p/4225801.html