How to test a Sencha 2 app? - sencha-touch-2

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?

found a good Sencha blog about testing:
http://www.sencha.com/blog/automating-unit-tests/

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).
http://pivotallabs.com/sencha-touch-bdd-part-1/ - Jasmine unit testing
http://pivotallabs.com/sencha-touch-bdd-part-2/ - Unit testing models.
http://pivotallabs.com/sencha-touch-bdd-part-3/ - Testing Views and Mocking Stores
http://pivotallabs.com/sencha-touch-bdd-part-4/ - Headless testing using PhantomJS
http://pivotallabs.com/sencha-touch-bdd-part-5/ - Controller testing.

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.

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

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.

Related

Is that possible test flutter apps with WebdriverIO?

Can I test flutter app (for example in apk) using WebdriverIO?
I saw there is a flutter driver for Appium. Is it supported with WebriverIO as well? How is it handled?
Yes you can. You have to use Appium Automation to interact with your Flutter mobile app.
Setup your own WebdriverIO Appium project, or start from a featured boilerplate, as such.
Integrate the appium-flutter-driver into your project and start using it inside your test cases.
LE: Alternatively, you can try SauceLab's Appium-Flutter-Driver implementation using WebdriverIO. See it here.
You can find multiple examples online for configurations. A simple Google search even gives you a full video tutorial on how to setup everything.

Can the Onsen UI Javascript and CSS frameworks be used with Worklight Hybrid Applications?

Can I use Onsen UI with my Worklight hybrid applications? Specifically, while using the Worklight Studio for development?
Since it seems to be compatible with Cordova and JQuery on the surface it looks like it does.
As Idan said, you'll need to perform some manual work and you cannot use cordova tools. I was able to create a WL hybrid app project, add the references as in their Guide, deploy to WL Server and open the app in the Mobile Browser Simulator. It took 3 minutes.

Cross device testing of sencha touch application using seista

Does siesta testing framework support cross device testing? Do we have any documentation around it?
Yes, Siesta test suites can be run on any device. You just open a web page on the target device and pointing it to your harness file. Right now though we do not support automation for mobile devices, you can always run your tests in Chrome though.

How to optimize Sencha Touch 2.0 performance on iPad?

I am trying to optimize the performance of a Sencha Touch 2.0 app on iPad device.
Please point out some way for doing this.
Is any tools are available for iPad to test the performance of web app??
Thanks.
For your first question, this link may help:
PhoneGap 1.4 wrapping Sencha Touch 2.X - What about performance?
About performance inspection, you can just use Developer Tools of your iPad's Safari. Here is a good tutorial to get started: https://developer.apple.com/technologies/safari/developer-tools.html
Are you going to deploy the app as an iPad native or are you going to use it within the web browser?
Whatever the case, if you are going to deploy as native, it will automatically be optimised and no unnecessary files will be loaded.
If you are going to use it within a web browser, I suggest deploying it as production and not loading the whole source.
This can be achieved by navigating to your sencha touch 2 app and running the following sdk command:
sencha app build production
Then you should load that page within your browser.

What Sencha Touch version should I be using for a new development?

I was looking into using either jquery mobile or sencha touch to enhance a mobile web app I had been developing and after seeing some impressive Sencha Touch demos I decided it was the more refined framework.
Anyways, after looking at the Sencha Touch website I'm not sure which version I should be downloading, the current commercial version or the 2.0 developer preview release 3?
While it isn't fully complete yet, I don't want to spend time developing with version 1.1.1 and then have to migrate in 3-4 months time from now (not sure what the development timeline is so I may be way off).
I was hoping a Sencha touch developer would be able to provide some insight on what the best practice would be here.
Thanks
Also, I currently have the app developed in codeigniter with a more simplistic UI, are the two easy to integrate or not?
In my case has "Sencha Touch 2.0.0 Preview Release 3" only made ​​problems. Now I've installed the "Sencha Touch 1.1.1" and it works up to now everything. As long as I can still work with it to be seen.