How to test a Sencha 2 app?

2019-08-21 12:21发布

I cant see any "how to test a Sencha 2 app" in the documentation - is there really no framework support for testing? How should one test a Sencha 2 app, whats best pratice?

5条回答
时光不老,我们不散
2楼-- · 2019-08-21 12:25

I suggest using a Rails architecture with Cucumber, Capybara and Selenium to to tests your Sencha Touch 2 web application. This is working pretty well for me.

查看更多
放我归山
3楼-- · 2019-08-21 12:36

found a good Sencha blog about testing:

http://www.sencha.com/blog/automating-unit-tests/

查看更多
Anthone
4楼-- · 2019-08-21 12:36

As referenced in the comment links... the best way to do it is to run it localhost. I use xampp to do this. You need to also install Sencha SDK tools, etc. You can find the official guide on how to setuo your application for testing using sencha command here: http://docs.sencha.com/touch/2-0/#!/guide/command

查看更多
相关推荐>>
5楼-- · 2019-08-21 12:37

Here's a 5 part series covering unit testing using Jasmine (used internally by Sencha) and integration testing using Siesta (built for Sencha app level testing).

查看更多
爷的心禁止访问
6楼-- · 2019-08-21 12:39

Run your app under local server like wampserver, apache tomcat etc.

Be sure to use Web browsers like Chrome, Safari only which supports Webtk engine.

查看更多
登录 后发表回答