"d:\Program Files\NModel\bin\otg.exe" /r:TrainMode.dll /f:scenario.txt TrainMode.WebSiteModel.CreateLoginModel
下面是生成的測試用例:
TestSuite(
TestCase(
Initialize(),
Login_Start(User("Authenticated"), Password("Correct")),
Login_Start(User("Administrator"), Password("Incorrect")),
Logout(User("Authenticated"))
),
TestCase(
Initialize(),
Login_Start(User("Administrator"), Password("Correct")),
Login_Start(User("Authenticated"), Password("Correct")),
Logout(User("Administrator")),
Logout(User("Authenticated"))
),
TestCase(
Initialize(),
Login_Start(User("Administrator"), Password("Incorrect")),
Login_Start(User("Authenticated"), Password("Incorrect"))
),
TestCase(
Initialize(),
Login_Start(User("Authenticated"), Password("Incorrect")),
Login_Start(User("Administrator"), Password("Correct")),
Logout(User("Administrator"))
),
TestCase(
Initialize(),
Login_Start(User("Administrator"), Password("Incorrect")),
Login_Start(User("Authenticated"), Password("Correct"))
),
TestCase(
Initialize(),
Login_Start(User("Administrator"), Password("Correct")),
Login_Start(User("Authenticated"), Password("Incorrect"))
),
TestCase(
Initialize(),
Login_Start(User("Administrator"), Password("Correct")),
Logout(User("Administrator")),
Login_Start(User("Authenticated"), Password("Correct"))
),
TestCase(
Initialize(),
Login_Start(User("Authenticated"), Password("Correct")),
Logout(User("Authenticated")),
Login_Start(User("Administrator"), Password("Correct"))
),
TestCase(
Initialize(),
Login_Start(User("Administrator"), Password("Correct")),
Logout(User("Administrator")),
Login_Start(User("Authenticated"), Password("Incorrect"))
),
TestCase(
Initialize(),
Login_Start(User("Authenticated"), Password("Correct")),
Login_Start(User("Administrator"), Password("Correct")),
Logout(User("Authenticated")),
Logout(User("Administrator"))
),
TestCase(
Initialize(),
Login_Start(User("Authenticated"), Password("Incorrect")),
Login_Start(User("Administrator"), Password("Incorrect"))
),
TestCase(
Initialize(),
Login_Start(User("Authenticated"), Password("Correct")),
Logout(User("Authenticated")),
Login_Start(User("Administrator"), Password("Incorrect"))
)
)
相關(guān)推薦:北京 | 天津 | 上海 | 江蘇 | 山東 |
安徽 | 浙江 | 江西 | 福建 | 深圳 |
廣東 | 河北 | 湖南 | 廣西 | 河南 |
海南 | 湖北 | 四川 | 重慶 | 云南 |
貴州 | 西藏 | 新疆 | 陜西 | 山西 |
寧夏 | 甘肅 | 青海 | 遼寧 | 吉林 |
黑龍江 | 內(nèi)蒙古 |