自动化测试软件UML
2018-04-26 14:36:54 0 举报
自动化测试软件UML
作者其他创作
大纲/内容
ForeverMalfunction
- source:TestSource &- finishnum:int - testid:int- net_flag:bool- test_states:QStringList
+ slotFinished():Slot+ slotstop():Slot- slotJBcfg():Slot+ init()
TestCheckGZVS
- sendStateList:QList- position:int - version:QString - time:QTimer - setMode:bool - adapt:Adapt* - TestAddr:ULONG - testid:int - timeoutcount:int
+ slotRecvFrame(Frame):Slot+ slotstop():Slot+ slotdiscon():Slot- slotTimeout():Slot- sendnext()- readSSData(QString)+ chgmodesetaddr()
MainWindow
- savebasemsg:basemsg- adapts:QList- bstlist:QList- jrlist:QList- source:TestSource- tcslist:QList - rfidlist:QStringList- failidlist:QStringList- jzqidlist:QStringList
AddLinesDialog
- fileName:QString
TestProResult结构体
+ flag:bool = defaultValue+ desc:QString+ descflag:bool = false+ id:int
A关联B
Id_input_Dialog
+ rfidlist:QStringList + ensureflag:bool
- addItem(QString)
TestPowerCall
- setMode:bool - adapt:Adapt* - TestAddr:ULONG - testid:int - timer:QTimer- sendStateList:QList - firstRecvList:QList - greenPixmap:QPixmap - redPixmap:QPixmap - greyPixmap:QPixmap
+ setshok():Signal+ slotRecvFrame(Frame):Slot+ slotstop():Slot+ slotdiscon():Slot+ slotTimeout():Slot+ slotstart():Slot+ chgmodesetaddr()
AutoTest_login_in_Dialog
+ uislist:QList + tpslist:QList + ensureflag:bool
+ getbasemsg():basemsg
聚合关系(B如果不在了,A还存在)
TestAccuracyExce
- taelist:QList- source:TestSource &- cur:QString- finishnum:int - testid:int
BaseTestState
+ adaptlist:QList
+ init()+ finish():Signal+ stop():Signal + discon():Signal+ slotFinished():Slot+ slotstop():Slot
- setMode:bool - allokflag:bool - timeoutcount:int - adapt:Adapt* - TestAddr:ULONG - testid:int - curval:QString - wcval:QString- wcdata:double- sendStateList:QList- timeoutnum:int - pos: int - RFID:QString - timer:QTimer
CheckGZVS
- ver:QString- finishnum:int - testid:int
+ slotFinished():Slot+ slotstop():Slot+ finish():Signal+ init()
B
TestLbBatchExce
- setMode:bool - adapt:Adapt* - TestAddr:ULONG - testid:int - timer:QTimer- sendIndex:int- sendIndex:intSetLB- Set_LB_wave_num:int- SendRFID:QString - lbLists:QList - array:QByteArray- readcount:int- SetLBNumCfgflag:bool- timeoutnum:int - firstflag:bool
TestForverMalfunction
basemsg结构体
+ gztype:QString+ ordernum:QString + bomcode:QString+ gzvs:QString+ tshvs:QString+ operatorname:QString+ operatorworkid:unsigned long+ testproid:unsigned long + testproname:QString+ outdata:QString
TestAccuracyCorrection
- setMode:bool - allokflag:bool - timeoutcount:int - adapt:Adapt* - TestAddr:ULONG - testid:int - curval:QString - sendStateList:QList- timeoutnum:int - pos: int - RFID:QString - timer:QTimer
+ slotRecvFrame(Frame):Slot+ slotstop():Slot+ slotdiscon():Slot+ sendCur_slot():Slot+ setshok():Signal+ StartSend(QString)- CurSendData(QString)+ chgmodesetaddr()- sendCurNext()
SerialChannel
- serial:QSerialPort*
BaseProtocol
+ protocolName:QString+ addr:QString
BaseChannel
+ channelName:QString
+ slotDisconnect():Slot + slotSendData(QByteArray):Slot+ slotSetParam(QVariant):Slot+ slotStop():Slot+ recvData(QByteArray):Signal+ disconnect(QString):Signal+ start():bool+ close()+ setProtocol(BaseProtocol*)
TestCaseStruct结构体
+ testcaseid:unsigned long + testcasename:QString + testcaseinternalid:unsigned long + internalcfg:QString + testJBoutput:unsigned char
PowerCall
- source:TestSource &- net_flag:bool- finishnum:int - testid:int- test_states:QStringList
TestBoundJZQandGZ
- setMode:bool - at_101g_SendState:bool - maxGZ:int- adaptlist:QList- TestAddr:ULONG - testid:int - curval:QString - lastgzcfg:AT_C102H_SYS_DEV_CFG_T - sendStateList:QList- table_stat:QList- timeoutnum:int - position: int - RFID:QString - JZQAddr:QString- timer:QTimer - JRlist:QList - gzstructlist:QList - jzqstructlist:QList
InstantMalfunction
StatusResults
+Rfid:QString+result:Qlist+TestNextProFlag:bool= false
+ recvFrame(Frame)+ sendFrame(Frame)+ recv(Frame):Signal
BoundJZQandGZ
- jrlist:QList- finishnum:int - testid:int
A依赖B
JZQID_input_Dialog
+ jzqidlist:QStringList + ensureflag:bool
TestSameAddressBound
- sendStateList:QList- sendIndex:int - SendRFID:QString - time:QTimer - setMode:bool - adapt:Adapt* - TestAddr:ULONG - testid:int - timeoutnumt:int
SameAddressBound
- finishnum:int - testid:int
+ slotFinished():Slot+ slotstop():Slot+ init()
TestInsantMalfunction
AccuracyCorrection
TestSource
+ init_:bool+ mutex_:QMutex+ card_no_:int+ base_da_data[240]:double+ da_data_[19200]:long+ da_size_:unsigned long+ short_da_data_[19200]:unsigned short+ timer_:QTimer+ fin_timer_:QTimer+ outs_:QList
ProtocolInternal
- debugCache:QByteArray - recvCache:QByteArray - linkinitfirstflag:bool- debugNum:BYTE - reSendTime:QTimer*- reSendLinkTime:QTimer*- sendBytes:QByteArray - tshvs:QString - reSendNum:int - reSendLinkNum:int
+ init(QString) + stop() - slotReSendTimeOut():Signal - slotReSendLinkTimeOut():Signal+ slotSendFinished():Slot + slotRecvData(QByteArray):Slot + slotSendFrame(Frame):Slot
LbBatchExce
- taelist:QList- source:TestSource &- net_flag:bool- finishnum:int - testid:int- test_states:QStringList
A
lbRecData结构体
+ state:QLabel* + Savecfgstate:QLabel*+ stateflag:bool + saveCfgFlag:bool + id:QLineEdit* + k:double+ maxangleLabel:QLabel*+ minangleLabel:QLabel*+ overcountLabel:QLabel*+ avgangleLabel:QLabel*+ maxdataLabel:QLabel* + mindataLabel:QLabel* + groupnumLabel: + maxAngle:double + avgAngle:double + minAngle:double + maxdata:double + mindata:double + largenum:double + i[80*16]:WORD + u[80*16]:WORD
A继承B
adapt
+protocol:BaseProtocol+channel:BaseChannel+gzlist:QList
+ stop():Signal+ initok():Signal+ initfail():Signal
组合关系(B如果不在了,A就消失)
收藏
0 条评论
下一页
为你推荐
查看更多