-
FEATURED COMPONENTS
First time here? Check out the FAQ!
有一个很简单的页面,采用MVVM模式实现的表单验证和提交,手工测试都没问题, 但是用zats写的测试就会失败,我发现原因是 zats选中的comboitem值并没有绑定到ViewModel导致
zats version:
The function has passed manual testing,but failed with zats. The related code as below:
//A simple combobox
<combobox id="todoOwnerCombobox" model="@load(vm.qualityPlan.participantList)" selecteditem="@save(todoForm.owner)" readonly="true" hflex="true" autodrop="true" mold="rounded" buttonvisible="true">
//zats test
todoFormGroupboxAgent.query("textbox").type("summary text");
desktop.queryAll("#todoOwnerCombobox > comboitem").get(1).as(SelectAgent.class).select();
todoFormGroupboxAgent.query("datebox").type("2513-12-12");
todoFormGroupboxAgent.query("#todoEditor").type("memo text");
submitBtn.click();
From the error log and debug info,the cause is that,selectedItem="@save(todoForm.owner)" failed to bind value to ViewModel.
Currently, ZATS could not be used to test ZK application that uses MVVM pattern. ZK has another testing framework called ZTL that could be used in situations like this. For more information, please go to ZTL at github. You can also find examples of testcases written in ZTL in ZTLTEST, also at github.
多谢! 请问ZTL跟ZATS相比主要区别是什么,有哪些优势?
另外这种场景能支持么:点击按钮打开模态窗口 我用zats测试时发现点击按钮后query不到新打开的窗口。
Asked: 2013-04-05 09:36:47 +0800
Seen: 37 times
Last updated: Apr 11 '13
ZATS: Error 500 when connecting to ZUL due to missing class org.zkoss.xel.zel.XelELResolver
ZATS DesktopAgent.query not working with id's
ZATS: NoSuchMethodError getContextPath()
ZATS Mimic - Replacing Server Emulator (Jetty Lite) with Glassfish
What is ZATS version 1.1.0.FL.20120710?