关于将 CodeceptJS 与 Sencha ExtJS 一起用于测试自动化的任何反馈
Any feedback on using CodeceptJS with Sencha ExtJS for testing Automation
您好,我需要自动测试使用 Sencha ExtJS 制作的应用程序。 codeceptJS 是可行的选择吗?
我担心如何使用图标按钮。 id 也是在 Sencha 中动态生成的。
您可以使用 Ext.ComponentQuery.query
https://docs.sencha.com/extjs/7.0.0/modern/Ext.ComponentQuery.html#method-query 访问您的组件。
例如,您可以根据您的应用使用 Ext.ComponentQuery.query('#itemId')
或 Ext.ComponentQuery.query('xtype')
。
如果您需要访问 DOM 节点,您可以使用 component.el.dom
其中组件是一个 ExtJS 组件(例如使用 ComponentQuery 选择)
您好,我需要自动测试使用 Sencha ExtJS 制作的应用程序。 codeceptJS 是可行的选择吗?
我担心如何使用图标按钮。 id 也是在 Sencha 中动态生成的。
您可以使用 Ext.ComponentQuery.query
https://docs.sencha.com/extjs/7.0.0/modern/Ext.ComponentQuery.html#method-query 访问您的组件。
例如,您可以根据您的应用使用 Ext.ComponentQuery.query('#itemId')
或 Ext.ComponentQuery.query('xtype')
。
如果您需要访问 DOM 节点,您可以使用 component.el.dom
其中组件是一个 ExtJS 组件(例如使用 ComponentQuery 选择)