我有一个项目可以转换Silk Test
为其他一些 GUI 测试框架。我无法理解 Silk Test 脚本是如何组织[-]
和[+]
签名的。有人帮我理解意思吗?这是一个示例脚本
[+] if(AssignSymbolToCatalogNumber.Exists(4))
[ ] AssignSymbolToCatalogNumber.setActive()
[ ] Sleep(1)
[ ] AssignSymbolToCatalogNumber.notMapToCatalog.SetFocus()
[ ] AssignSymbolToCatalogNumber.notMapToCatalog.Click()
[ ] WaitForDialogExists (Keep)
[-] if !Keep1.Exists (1)
[ ] ResLog.LogFail ("The number {i} Keep dialog did not pop up!")
[ ] goto EndProgram
[-] else
[ ] Keep1.SetActive ()
[ ] Keep1.RadioList1RL.Select ("#1")
[ ] Keep1.ShowEditDialogAfterEachCK.Check ()
[ ] Keep1.OK.Click ()
[ ]
[ ] WaitForDialogExists (InsertEditChildComponent)
[-] if !InsertEditChildComponent.Exists (1)
[ ] ResLog.LogFail ("Insert/Edit child component dialog did not pop up!")
[ ] goto EndProgram
[-] else
[ ] InsertEditChildComponent.SetActive ()
[ ] InsertEditChildComponent.ParentSiblingPB.Click ()
[ ]
[ ] Sleep (1)