设计模式全解析:辅助类、动作模式与运行时数据模式
1. 设计模式概述
设计模式包含辅助类和函数、动作模式以及运行时数据模式,它们为软件测试和开发提供了额外的功能和可复用的解决方案。
2. 辅助类和函数设计模式
- AssertResult :用于检查结果是否触发预定义的动作。
Function ASSERT_RESULT(ByVal iResult)
' -----------------------------------------------------
---
' Function : ASSERT_RESULT
' Purpose : Checks if the result triggers a
predefined action
' Args : ByVal iResult
' Returns : The value of iResult (unless the run
session is
' terminated)
' -----------------------------------------------------
---
ASSERT_RESULT = CLng(iResult)
If CLng(iResult) <> CLng(micPass) Then
Repor
超级会员免费看
订阅专栏 解锁全文
2198

被折叠的 条评论
为什么被折叠?



